aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda/coda-h264.c
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2018-06-28 07:01:47 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-25 08:31:51 -0400
commit22fb5f0f8604a1e5b7d66637e5e85c195cc85cde (patch)
tree91c1ed7a21f18da0dc31ca7ce7dc74329c0a8c3f /drivers/media/platform/coda/coda-h264.c
parentmedia: coda: use encoder crop rectangle to set visible width and height (diff)
downloadlinux-dev-22fb5f0f8604a1e5b7d66637e5e85c195cc85cde.tar.xz
linux-dev-22fb5f0f8604a1e5b7d66637e5e85c195cc85cde.zip
media: coda: add missing h.264 levels
This enables reordering support for h.264 main profile level 4.2, 5.0, and 5.1 streams. Even though we likely can't play back such streams at full speed, we should still recognize them correctly. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/coda/coda-h264.c')
-rw-r--r--drivers/media/platform/coda/coda-h264.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda-h264.c b/drivers/media/platform/coda/coda-h264.c
index 0e27412e01f5..07b4c706504f 100644
--- a/drivers/media/platform/coda/coda-h264.c
+++ b/drivers/media/platform/coda/coda-h264.c
@@ -108,6 +108,9 @@ 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;
+ case 50: return V4L2_MPEG_VIDEO_H264_LEVEL_5_0;
+ case 51: return V4L2_MPEG_VIDEO_H264_LEVEL_5_1;
default: return -EINVAL;
}
}