diff options
author | Liu Ying <b17645@freescale.com> | 2009-12-08 16:07:07 -0500 |
---|---|---|
committer | Liu Ying <b17645@freescale.com> | 2009-12-18 09:35:02 -0500 |
commit | e6ad31e065caa23be70a8adb591e166b82e93302 (patch) | |
tree | 0ad920dc7f8bd24ecfd97912dac689e10ee023fd | |
parent | 6b568abb989ed30fdf1bb4ccdffe610b9439b7f2 (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>
-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) |