diff mbox

media: coda: add h.264 level 4.2

Message ID 20180621155123.21939-1-p.zabel@pengutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Philipp Zabel June 21, 2018, 3:51 p.m. UTC
This enables reordering support for h.264 main profile level 4.2
streams.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/media/platform/coda/coda-h264.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Philipp Zabel June 28, 2018, 11:03 a.m. UTC | #1
Hi,

On Thu, 2018-06-21 at 17:51 +0200, Philipp Zabel wrote:
> This enables reordering support for h.264 main profile level 4.2
> streams.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  drivers/media/platform/coda/coda-h264.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/media/platform/coda/coda-h264.c b/drivers/media/platform/coda/coda-h264.c
> index 0e27412e01f5..945c6a582e37 100644
> --- a/drivers/media/platform/coda/coda-h264.c
> +++ b/drivers/media/platform/coda/coda-h264.c
> @@ -108,6 +108,7 @@ int coda_h264_level(int level_idc)
>  	case 32: return V4L2_MPEG_VIDEO_H264_LEVEL_3_2;
>  	case 40: return V4L2_MPEG_VIDEO_H264_LEVEL_4_0;
>  	case 41: return V4L2_MPEG_VIDEO_H264_LEVEL_4_1;
> +	case 42: return V4L2_MPEG_VIDEO_H264_LEVEL_4_2;
>  	default: return -EINVAL;
>  	}
>  }

Please disregard this patch, it is superseded by
"media: coda: add missing h.264 levels" [1].

[1] https://patchwork.linuxtv.org/patch/50614/

which also adds the missing 5.0 and 5.1 levels.

regards
Philipp
diff mbox

Patch

diff --git a/drivers/media/platform/coda/coda-h264.c b/drivers/media/platform/coda/coda-h264.c
index 0e27412e01f5..945c6a582e37 100644
--- a/drivers/media/platform/coda/coda-h264.c
+++ b/drivers/media/platform/coda/coda-h264.c
@@ -108,6 +108,7 @@  int coda_h264_level(int level_idc)
 	case 32: return V4L2_MPEG_VIDEO_H264_LEVEL_3_2;
 	case 40: return V4L2_MPEG_VIDEO_H264_LEVEL_4_0;
 	case 41: return V4L2_MPEG_VIDEO_H264_LEVEL_4_1;
+	case 42: return V4L2_MPEG_VIDEO_H264_LEVEL_4_2;
 	default: return -EINVAL;
 	}
 }