android: jpeg: Rectify variable naming style.

Rectify variable renaming style for YPlaneSize, UVPlaneSize.
libcamera uses camelCase where first letter should be in lower case.

Fixes: e355ca0087cd9("android: jpeg: Split and pass the thumbnail planes to encoder")
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Umang Jain 2021-09-13 09:31:09 +05:30
parent e7c52de5e5
commit 3e335b69b6

View file

@ -82,10 +82,10 @@ void PostProcessorJpeg::generateThumbnail(const FrameBuffer &source,
*/ */
std::vector<Span<uint8_t>> thumbnailPlanes; std::vector<Span<uint8_t>> thumbnailPlanes;
const PixelFormatInfo &formatNV12 = PixelFormatInfo::info(formats::NV12); const PixelFormatInfo &formatNV12 = PixelFormatInfo::info(formats::NV12);
size_t YPlaneSize = formatNV12.planeSize(targetSize, 0); size_t yPlaneSize = formatNV12.planeSize(targetSize, 0);
size_t UVPlaneSize = formatNV12.planeSize(targetSize, 1); size_t uvPlaneSize = formatNV12.planeSize(targetSize, 1);
thumbnailPlanes.push_back({ rawThumbnail.data(), YPlaneSize }); thumbnailPlanes.push_back({ rawThumbnail.data(), yPlaneSize });
thumbnailPlanes.push_back({ rawThumbnail.data() + YPlaneSize, UVPlaneSize }); thumbnailPlanes.push_back({ rawThumbnail.data() + yPlaneSize, uvPlaneSize });
int jpeg_size = thumbnailEncoder_.encode(thumbnailPlanes, int jpeg_size = thumbnailEncoder_.encode(thumbnailPlanes,
*thumbnail, {}, quality); *thumbnail, {}, quality);