libcamera/src
Umang Jain e355ca0087 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>
2021-09-09 22:31:53 +05:30
..
android android: jpeg: Split and pass the thumbnail planes to encoder 2021-09-09 22:31:53 +05:30
cam cam: drm: Avoid importing the same dmabuf multiple times 2021-09-07 19:18:48 +03:00
gstreamer gstreamer: gstlibcameraallocator: Use offset in creating a buffer 2021-08-30 18:08:02 +03:00
ipa ipa: libipa: histogram: Fix typo 2021-08-31 22:44:10 +03:00
lc-compliance libcamera: Use simpler Signal::disconnect() function 2021-09-02 01:16:44 +03:00
libcamera libcamera: controls: Use a const ControlValidator 2021-09-09 15:58:23 +01:00
qcam qcam: viewfinder_qt: Support multi-planar buffers 2021-09-07 19:18:54 +03:00
v4l2 v4l2: Sum bytesused for all planes when dequeuing buffer 2021-09-07 19:18:55 +03:00
meson.build android: Split HAL to its own shared library 2021-06-25 16:09:46 +01:00