diff options
author | Umang Jain <umang.jain@ideasonboard.com> | 2021-09-08 15:19:49 +0530 |
---|---|---|
committer | Umang Jain <umang.jain@ideasonboard.com> | 2021-09-09 22:31:53 +0530 |
commit | e355ca0087cd93ef80f74c61018e9e9228a93313 (patch) | |
tree | ffb3da1cb03e80a2cc8f8f1ee4ced6af42056758 /src/ipa/raspberrypi/md_parser_smia.cpp | |
parent | 3d297f7ac840c3abe8e72d525f0fbc1fe607f94d (diff) |
android: jpeg: Split and pass the thumbnail planes to encoder
After multi-planar support was introduced for jpeg encoding as well,
EncoderLibJpeg::encode() expects a vector of planes as the source of
framebuffer to be encoded. Currently, we are passing a contiguous buffer
which is treated as only one plane (instead of two, as thumbnail is NV12).
Hence, split the thumbnail data into respective planes according to NV12.
This fixes a crash in encoding of thumbnails.
Fixes: 894ca69f6043("android: jpeg: Support multi-planar buffers")
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/ipa/raspberrypi/md_parser_smia.cpp')
0 files changed, 0 insertions, 0 deletions