libcamera: mapped_framebuffer: Rename maps() to planes()
MappedFrameBuffer::maps() returns planes_. This renames the function name to planes(). Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
1c877bd868
commit
75df3c7139
@@ -188,7 +188,7 @@ int EncoderLibJpeg::encode(const FrameBuffer &source, Span<uint8_t> dest,
|
||||
return frame.error();
|
||||
}
|
||||
|
||||
return encode(frame.maps()[0], dest, exifData, quality);
|
||||
return encode(frame.planes()[0], dest, exifData, quality);
|
||||
}
|
||||
|
||||
int EncoderLibJpeg::encode(Span<const uint8_t> src, Span<uint8_t> dest,
|
||||
|
||||
@@ -62,7 +62,7 @@ void Thumbnailer::createThumbnail(const FrameBuffer &source,
|
||||
ASSERT(tw % 2 == 0 && th % 2 == 0);
|
||||
|
||||
/* Image scaling block implementing nearest-neighbour algorithm. */
|
||||
unsigned char *src = static_cast<unsigned char *>(frame.maps()[0].data());
|
||||
unsigned char *src = static_cast<unsigned char *>(frame.planes()[0].data());
|
||||
unsigned char *srcC = src + sh * sw;
|
||||
unsigned char *srcCb, *srcCr;
|
||||
unsigned char *dstY, *srcY;
|
||||
|
||||
@@ -63,9 +63,9 @@ int PostProcessorYuv::process(const FrameBuffer &source,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int ret = libyuv::NV12Scale(sourceMapped.maps()[0].data(),
|
||||
int ret = libyuv::NV12Scale(sourceMapped.planes()[0].data(),
|
||||
sourceStride_[0],
|
||||
sourceMapped.maps()[1].data(),
|
||||
sourceMapped.planes()[1].data(),
|
||||
sourceStride_[1],
|
||||
sourceSize_.width, sourceSize_.height,
|
||||
destination->plane(0).data(),
|
||||
|
||||
Reference in New Issue
Block a user