diff options
author | Dafna Hirschfeld | 2018-11-15 12:23:30 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2018-11-23 10:34:27 +0100 |
commit | aec89917542c60af06fb36e433dd92c4eb7d792a (patch) | |
tree | 73904c47598ea139758bedb40f48d47c54e6839a /drivers/media/platform/vicodec/codec-fwht.c | |
parent | media: vidioc-enum-fmt.rst: update list of valid buftypes (diff) | |
download | kernel-qcow2-linux-aec89917542c60af06fb36e433dd92c4eb7d792a.tar.gz kernel-qcow2-linux-aec89917542c60af06fb36e433dd92c4eb7d792a.tar.xz kernel-qcow2-linux-aec89917542c60af06fb36e433dd92c4eb7d792a.zip |
media: vicodec: prepare support for various number of planes
Add fields to the structs `fwht_raw_frame`, `v4l2_fwht_pixfmts`
to support various number of planes - formats
with alpha channel that have 4 planes and greyscale formats
that have 1 plane.
Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vicodec/codec-fwht.c')
-rw-r--r-- | drivers/media/platform/vicodec/codec-fwht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vicodec/codec-fwht.c b/drivers/media/platform/vicodec/codec-fwht.c index 36656031b295..4ee6d7e0fbe2 100644 --- a/drivers/media/platform/vicodec/codec-fwht.c +++ b/drivers/media/platform/vicodec/codec-fwht.c @@ -760,7 +760,7 @@ u32 fwht_encode_frame(struct fwht_raw_frame *frm, rlco_max = rlco + size / 2 - 256; encoding = encode_plane(frm->luma, ref_frm->luma, &rlco, rlco_max, cf, frm->height, frm->width, - frm->luma_step, is_intra, next_is_intra); + frm->luma_alpha_step, is_intra, next_is_intra); if (encoding & FWHT_FRAME_UNENCODED) encoding |= FWHT_LUMA_UNENCODED; encoding &= ~FWHT_FRAME_UNENCODED; |