summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/jpeg/encoder_libjpeg.cpp2
-rw-r--r--src/android/jpeg/thumbnailer.cpp2
-rw-r--r--src/android/yuv/post_processor_yuv.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/android/jpeg/encoder_libjpeg.cpp b/src/android/jpeg/encoder_libjpeg.cpp
index a7a63601..b8b01e20 100644
--- a/src/android/jpeg/encoder_libjpeg.cpp
+++ b/src/android/jpeg/encoder_libjpeg.cpp
@@ -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,
diff --git a/src/android/jpeg/thumbnailer.cpp b/src/android/jpeg/thumbnailer.cpp
index 79d83926..043c7b33 100644
--- a/src/android/jpeg/thumbnailer.cpp
+++ b/src/android/jpeg/thumbnailer.cpp
@@ -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;
diff --git a/src/android/yuv/post_processor_yuv.cpp b/src/android/yuv/post_processor_yuv.cpp
index 3e793a58..6952fc38 100644
--- a/src/android/yuv/post_processor_yuv.cpp
+++ b/src/android/yuv/post_processor_yuv.cpp
@@ -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(),