summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJackson.lee <jackson.lee@chipsnmedia.com>2024-08-12 16:08:22 +0900
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-10-08 14:49:38 +0200
commit88ff31fd01811c4257e0354a4a761692f1fecbc8 (patch)
tree8bdbbcb5e7dc10da08ea79b392e1389f372cbade /include/linux
parent2092b3833487e5ce138f4303f98e46ba0f87f1d0 (diff)
media: chips-media: wave5: Use helpers to calculate bytesperline and sizeimage.
Use v4l2-common helper functions to calculate bytesperline and sizeimage, instead of calculating in a wave5 driver directly. In case of raw(YUV) v4l2_pix_format, the wave5 driver updates v4l2_pix_format_mplane struct through v4l2_fill_pixfmt_mp() function. Encoder and Decoder need the same bytesperline and sizeimage values for the same v4l2_pix_format. So, wave5_update_pix_fmt function is refactored to support both together. Signed-off-by: Jackson.lee <jackson.lee@chipsnmedia.com> Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions