summaryrefslogtreecommitdiff
path: root/src/android/jpeg/encoder_libjpeg.cpp
diff options
context:
space:
mode:
authorUmang Jain <email@uajain.com>2020-10-23 11:01:49 +0530
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-23 22:53:17 +0300
commitf9e7f55f3b2cdee93a51cf7f39a2e72b4c453e00 (patch)
tree80c4f47c2e661bbc96f524d9d133dbaeaf9f99b1 /src/android/jpeg/encoder_libjpeg.cpp
parentc77d894a8b2b441baafd7b2d689a1c668e56c382 (diff)
android: jpeg: Drop "libcamera::" namespace from functions' arguments
Drop "libcamera::" from functions' arguments for *.cpp files as they have using namespace libcamera; directive in the beginning. Signed-off-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/android/jpeg/encoder_libjpeg.cpp')
-rw-r--r--src/android/jpeg/encoder_libjpeg.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/android/jpeg/encoder_libjpeg.cpp b/src/android/jpeg/encoder_libjpeg.cpp
index 5a2f88fb..4bea10cf 100644
--- a/src/android/jpeg/encoder_libjpeg.cpp
+++ b/src/android/jpeg/encoder_libjpeg.cpp
@@ -104,7 +104,7 @@ int EncoderLibJpeg::configure(const StreamConfiguration &cfg)
return 0;
}
-void EncoderLibJpeg::compressRGB(const libcamera::MappedBuffer *frame)
+void EncoderLibJpeg::compressRGB(const MappedBuffer *frame)
{
unsigned char *src = static_cast<unsigned char *>(frame->maps()[0].data());
/* \todo Stride information should come from buffer configuration. */
@@ -122,7 +122,7 @@ void EncoderLibJpeg::compressRGB(const libcamera::MappedBuffer *frame)
* Compress the incoming buffer from a supported NV format.
* This naively unpacks the semi-planar NV12 to a YUV888 format for libjpeg.
*/
-void EncoderLibJpeg::compressNV(const libcamera::MappedBuffer *frame)
+void EncoderLibJpeg::compressNV(const MappedBuffer *frame)
{
uint8_t tmprowbuf[compress_.image_width * 3];
@@ -179,9 +179,8 @@ void EncoderLibJpeg::compressNV(const libcamera::MappedBuffer *frame)
}
}
-int EncoderLibJpeg::encode(const FrameBuffer &source,
- libcamera::Span<uint8_t> dest,
- const libcamera::Span<const uint8_t> &exifData)
+int EncoderLibJpeg::encode(const FrameBuffer &source, Span<uint8_t> dest,
+ const Span<const uint8_t> &exifData)
{
MappedFrameBuffer frame(&source, PROT_READ);
if (!frame.isValid()) {