Web lists-archives.com

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




Marek Vasut wrote:
> Hi!
> 
> Eric, would you mind applying ?
> 
> From 4dcbff010e996f4c6e5761b3c19f5d863ab51b39 Mon Sep 17 00:00:00 2001
> From: Marek Vasut <marek.vasut@xxxxxxxxx>
> 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 <marek.vasut@xxxxxxxxx>

Acked-by: Eric Miao <eric.y.miao@xxxxxxxxx>

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:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list