diff options
author | Liu Ying <b17645@freescale.com> | 2009-12-08 16:07:07 -0500 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-02-12 17:19:48 +0100 |
commit | 900a5a4bd078717b3edc56e7bb50cbe54c48d193 (patch) | |
tree | 0ad920dc7f8bd24ecfd97912dac689e10ee023fd /drivers/media/video/mxc | |
parent | 8a0fd7143e4a8b9dac559005f9d75dd0119e153c (diff) |
ENGR00119081 V4l2 capture:Support NV12 output pixel format for still capture
Support NV12 output pixel format for still capture.
Signed-off-by: Liu Ying <b17645@freescale.com>
Diffstat (limited to 'drivers/media/video/mxc')
-rw-r--r-- | drivers/media/video/mxc/capture/ipu_still.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/mxc/capture/ipu_still.c b/drivers/media/video/mxc/capture/ipu_still.c index 34cea8609c95..c95e5244b85d 100644 --- a/drivers/media/video/mxc/capture/ipu_still.c +++ b/drivers/media/video/mxc/capture/ipu_still.c @@ -90,6 +90,8 @@ static int prp_still_start(void *private) if (cam->v2f.fmt.pix.pixelformat == V4L2_PIX_FMT_YUV420) pixel_fmt = IPU_PIX_FMT_YUV420P; + else if (cam->v2f.fmt.pix.pixelformat == V4L2_PIX_FMT_NV12) + pixel_fmt = IPU_PIX_FMT_NV12; else if (cam->v2f.fmt.pix.pixelformat == V4L2_PIX_FMT_YUV422P) pixel_fmt = IPU_PIX_FMT_YUV422P; else if (cam->v2f.fmt.pix.pixelformat == V4L2_PIX_FMT_UYVY) |