Re: [PATCH] Add RGB555X and RGB565X formats to pxa-camera

Eric Miao <[email protected]>
Newsgroups gmane.comp.video.video4linux,gmane.linux.ports.arm.kernel
Message-ID <[email protected]>
Marek Vasut wrote:
> Hi!
> 
> Eric, would you mind applying ?
> 
> From 4dcbff010e996f4c6e5761b3c19f5d863ab51b39 Mon Sep 17 00:00:00 2001
> From: Marek Vasut <[email protected]>
> Date: Mon, 3 Aug 2009 10:27:57 +0200
> Subject: [PATCH] Add RGB555X and RGB565X formats to pxa-camera
> 
> Those formats are requiered on widely used OmniVision OV96xx cameras.
> Those formats are nothing more then endian-swapped RGB555 and RGB565.
> 
> Signed-off-by: Marek Vasut <[email protected]>

Acked-by: Eric Miao <[email protected]>

Guennadi,

Would be better if this gets merged by you, thanks.

> ---
>  drivers/media/video/pxa_camera.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/media/video/pxa_camera.c 
> b/drivers/media/video/pxa_camera.c
> index 46e0d8a..de0fc8a 100644
> --- a/drivers/media/video/pxa_camera.c
> +++ b/drivers/media/video/pxa_camera.c
> @@ -1222,6 +1222,8 @@ static int required_buswidth(const struct 
> soc_camera_data_format *fmt)
>  	case V4L2_PIX_FMT_YVYU:
>  	case V4L2_PIX_FMT_RGB565:
>  	case V4L2_PIX_FMT_RGB555:
> +	case V4L2_PIX_FMT_RGB565X:
> +	case V4L2_PIX_FMT_RGB555X:
>  		return 8;
>  	default:
>  		return fmt->depth;
> @@ -1260,6 +1262,8 @@ static int pxa_camera_get_formats(struct 
> soc_camera_device *icd, int idx,
>  	case V4L2_PIX_FMT_YVYU:
>  	case V4L2_PIX_FMT_RGB565:
>  	case V4L2_PIX_FMT_RGB555:
> +	case V4L2_PIX_FMT_RGB565X:
> +	case V4L2_PIX_FMT_RGB555X:
>  		formats++;
>  		if (xlate) {
>  			xlate->host_fmt = icd->formats + idx;

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.