aboutsummaryrefslogtreecommitdiffstats
path: root/android/camera/camera-capture-linux.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-09-21 14:58:10 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-09-21 15:01:27 -0700
commitddd59b14583126d6282d2fab3142171934981e85 (patch)
treecb51af33fc226d18f49b8a9b2cf5db518dc63aca /android/camera/camera-capture-linux.c
parenta8559e023df6c94eee98d90a6689f421873d91f7 (diff)
downloadexternal_qemu-ddd59b14583126d6282d2fab3142171934981e85.zip
external_qemu-ddd59b14583126d6282d2fab3142171934981e85.tar.gz
external_qemu-ddd59b14583126d6282d2fab3142171934981e85.tar.bz2
Fix NV12, and NV21 format descriptors
Also adds support for YU12 pixel format that is used in video frames Change-Id: I613beef8b3e2296fd1fab7e2b9d2956fba1ac788
Diffstat (limited to 'android/camera/camera-capture-linux.c')
-rw-r--r--android/camera/camera-capture-linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/camera/camera-capture-linux.c b/android/camera/camera-capture-linux.c
index 50324f0..895690d 100644
--- a/android/camera/camera-capture-linux.c
+++ b/android/camera/camera-capture-linux.c
@@ -123,6 +123,7 @@ struct LinuxCameraDevice {
static const uint32_t _preferred_formats[] =
{
/* Native format for the emulated camera: no conversion at all. */
+ V4L2_PIX_FMT_YUV420,
V4L2_PIX_FMT_YVU420,
/* Continue with YCbCr: less math than with RGB */
V4L2_PIX_FMT_NV12,