diff mbox series

media: Fix incorrect P010 chroma order description

Message ID 20220627071224.16787-1-sebastian.fricke@collabora.com (mailing list archive)
State New, archived
Headers show
Series media: Fix incorrect P010 chroma order description | expand

Commit Message

Sebastian Fricke June 27, 2022, 7:12 a.m. UTC
The chroma order of P010 is `CbCr`,
match with the descriptions in `include/uapi/linux/videodev2.h` and the
documentation.

Fixes: 5374d8fb75f31 Add P010 video format

Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
---
 drivers/media/v4l2-core/v4l2-ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart June 27, 2022, 8:42 a.m. UTC | #1
Hi Sebastian,

Thank you for the patch.

On Mon, Jun 27, 2022 at 09:12:23AM +0200, Sebastian Fricke wrote:
> The chroma order of P010 is `CbCr`,
> match with the descriptions in `include/uapi/linux/videodev2.h` and the
> documentation.
> 
> Fixes: 5374d8fb75f31 Add P010 video format

This should be

Fixes: 5374d8fb75f3 ("media: Add P010 video format")

I recommend adding the following to your ~/.gitconfig:

[pretty]
	fixes = Fixes: %h (\"%s\")

You can then use `git show --pretty=fixes -s` to generate the right
Fixes: tag. If you fix lots of bugs, an alias in your ~/.bashrc is also
useful:

gpf() {
	git show --pretty=fixes -s ${1:-HEAD} | xclip -selection clipboard
}

> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

> ---
>  drivers/media/v4l2-core/v4l2-ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
> index e2526701294e..e03362c8aef9 100644
> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
> +++ b/drivers/media/v4l2-core/v4l2-ioctl.c
> @@ -1306,7 +1306,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
>  	case V4L2_PIX_FMT_NV61:		descr = "Y/CrCb 4:2:2"; break;
>  	case V4L2_PIX_FMT_NV24:		descr = "Y/CbCr 4:4:4"; break;
>  	case V4L2_PIX_FMT_NV42:		descr = "Y/CrCb 4:4:4"; break;
> -	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CrCb 4:2:0"; break;
> +	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CbCr 4:2:0"; break;
>  	case V4L2_PIX_FMT_NV12_4L4:	descr = "Y/CbCr 4:2:0 (4x4 Linear)"; break;
>  	case V4L2_PIX_FMT_NV12_16L16:	descr = "Y/CbCr 4:2:0 (16x16 Linear)"; break;
>  	case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/CbCr 4:2:0 (32x32 Linear)"; break;
Sebastian Fricke June 27, 2022, 5:02 p.m. UTC | #2
Hey Laurent,

On 27.06.2022 11:42, Laurent Pinchart wrote:
>Hi Sebastian,
>
>Thank you for the patch.
>
>On Mon, Jun 27, 2022 at 09:12:23AM +0200, Sebastian Fricke wrote:
>> The chroma order of P010 is `CbCr`,
>> match with the descriptions in `include/uapi/linux/videodev2.h` and the
>> documentation.
>>
>> Fixes: 5374d8fb75f31 Add P010 video format
>
>This should be
>
>Fixes: 5374d8fb75f3 ("media: Add P010 video format")

I assume this can probably be fixed while merging it right? So, I don't
have to resend it.

>
>I recommend adding the following to your ~/.gitconfig:
>
>[pretty]
>	fixes = Fixes: %h (\"%s\")
>
>You can then use `git show --pretty=fixes -s` to generate the right
>Fixes: tag. If you fix lots of bugs, an alias in your ~/.bashrc is also
>useful:
>
>gpf() {
>	git show --pretty=fixes -s ${1:-HEAD} | xclip -selection clipboard
>}

Thanks a lot for the advice :).

>
>> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
>
>Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Greetings,
Sebastian

>
>> ---
>>  drivers/media/v4l2-core/v4l2-ioctl.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
>> index e2526701294e..e03362c8aef9 100644
>> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
>> +++ b/drivers/media/v4l2-core/v4l2-ioctl.c
>> @@ -1306,7 +1306,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
>>  	case V4L2_PIX_FMT_NV61:		descr = "Y/CrCb 4:2:2"; break;
>>  	case V4L2_PIX_FMT_NV24:		descr = "Y/CbCr 4:4:4"; break;
>>  	case V4L2_PIX_FMT_NV42:		descr = "Y/CrCb 4:4:4"; break;
>> -	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CrCb 4:2:0"; break;
>> +	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CbCr 4:2:0"; break;
>>  	case V4L2_PIX_FMT_NV12_4L4:	descr = "Y/CbCr 4:2:0 (4x4 Linear)"; break;
>>  	case V4L2_PIX_FMT_NV12_16L16:	descr = "Y/CbCr 4:2:0 (16x16 Linear)"; break;
>>  	case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/CbCr 4:2:0 (32x32 Linear)"; break;
>
>-- 
>Regards,
>
>Laurent Pinchart
Laurent Pinchart June 27, 2022, 7:01 p.m. UTC | #3
Hi Sebastian,

On Mon, Jun 27, 2022 at 07:02:09PM +0200, Sebastian Fricke wrote:
> On 27.06.2022 11:42, Laurent Pinchart wrote:
> > On Mon, Jun 27, 2022 at 09:12:23AM +0200, Sebastian Fricke wrote:
> >> The chroma order of P010 is `CbCr`,
> >> match with the descriptions in `include/uapi/linux/videodev2.h` and the
> >> documentation.
> >>
> >> Fixes: 5374d8fb75f31 Add P010 video format
> >
> > This should be
> >
> > Fixes: 5374d8fb75f3 ("media: Add P010 video format")
> 
> I assume this can probably be fixed while merging it right? So, I don't
> have to resend it.

No need to resend indeed, this can be fixed when merging.

> > I recommend adding the following to your ~/.gitconfig:
> >
> > [pretty]
> >	fixes = Fixes: %h (\"%s\")
> >
> > You can then use `git show --pretty=fixes -s` to generate the right
> > Fixes: tag. If you fix lots of bugs, an alias in your ~/.bashrc is also
> > useful:
> >
> > gpf() {
> >	git show --pretty=fixes -s ${1:-HEAD} | xclip -selection clipboard
> > }
> 
> Thanks a lot for the advice :).
> 
> >
> >> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
> >
> > Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> >
> >> ---
> >>  drivers/media/v4l2-core/v4l2-ioctl.c | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
> >> index e2526701294e..e03362c8aef9 100644
> >> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
> >> +++ b/drivers/media/v4l2-core/v4l2-ioctl.c
> >> @@ -1306,7 +1306,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
> >>  	case V4L2_PIX_FMT_NV61:		descr = "Y/CrCb 4:2:2"; break;
> >>  	case V4L2_PIX_FMT_NV24:		descr = "Y/CbCr 4:4:4"; break;
> >>  	case V4L2_PIX_FMT_NV42:		descr = "Y/CrCb 4:4:4"; break;
> >> -	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CrCb 4:2:0"; break;
> >> +	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CbCr 4:2:0"; break;
> >>  	case V4L2_PIX_FMT_NV12_4L4:	descr = "Y/CbCr 4:2:0 (4x4 Linear)"; break;
> >>  	case V4L2_PIX_FMT_NV12_16L16:	descr = "Y/CbCr 4:2:0 (16x16 Linear)"; break;
> >>  	case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/CbCr 4:2:0 (32x32 Linear)"; break;
Ezequiel Garcia June 28, 2022, 7:05 p.m. UTC | #4
On Mon, Jun 27, 2022 at 09:12:23AM +0200, Sebastian Fricke wrote:
> The chroma order of P010 is `CbCr`,
> match with the descriptions in `include/uapi/linux/videodev2.h` and the
> documentation.
> 
> Fixes: 5374d8fb75f31 Add P010 video format
> 
> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>

Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>

> ---
>  drivers/media/v4l2-core/v4l2-ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
> index e2526701294e..e03362c8aef9 100644
> --- a/drivers/media/v4l2-core/v4l2-ioctl.c
> +++ b/drivers/media/v4l2-core/v4l2-ioctl.c
> @@ -1306,7 +1306,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
>  	case V4L2_PIX_FMT_NV61:		descr = "Y/CrCb 4:2:2"; break;
>  	case V4L2_PIX_FMT_NV24:		descr = "Y/CbCr 4:4:4"; break;
>  	case V4L2_PIX_FMT_NV42:		descr = "Y/CrCb 4:4:4"; break;
> -	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CrCb 4:2:0"; break;
> +	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CbCr 4:2:0"; break;
>  	case V4L2_PIX_FMT_NV12_4L4:	descr = "Y/CbCr 4:2:0 (4x4 Linear)"; break;
>  	case V4L2_PIX_FMT_NV12_16L16:	descr = "Y/CbCr 4:2:0 (16x16 Linear)"; break;
>  	case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/CbCr 4:2:0 (32x32 Linear)"; break;
> -- 
> 2.25.1
>
diff mbox series

Patch

diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
index e2526701294e..e03362c8aef9 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -1306,7 +1306,7 @@  static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
 	case V4L2_PIX_FMT_NV61:		descr = "Y/CrCb 4:2:2"; break;
 	case V4L2_PIX_FMT_NV24:		descr = "Y/CbCr 4:4:4"; break;
 	case V4L2_PIX_FMT_NV42:		descr = "Y/CrCb 4:4:4"; break;
-	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CrCb 4:2:0"; break;
+	case V4L2_PIX_FMT_P010:		descr = "10-bit Y/CbCr 4:2:0"; break;
 	case V4L2_PIX_FMT_NV12_4L4:	descr = "Y/CbCr 4:2:0 (4x4 Linear)"; break;
 	case V4L2_PIX_FMT_NV12_16L16:	descr = "Y/CbCr 4:2:0 (16x16 Linear)"; break;
 	case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/CbCr 4:2:0 (32x32 Linear)"; break;