summaryrefslogtreecommitdiffstats
path: root/jni/feature_mos/src
diff options
context:
space:
mode:
Diffstat (limited to 'jni/feature_mos/src')
-rw-r--r--jni/feature_mos/src/mosaic/Blend.cpp1
-rw-r--r--jni/feature_mos/src/mosaic/ImageUtils.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/jni/feature_mos/src/mosaic/Blend.cpp b/jni/feature_mos/src/mosaic/Blend.cpp
index e8b30f3..1f3d93c 100644
--- a/jni/feature_mos/src/mosaic/Blend.cpp
+++ b/jni/feature_mos/src/mosaic/Blend.cpp
@@ -236,6 +236,7 @@ int Blend::runBlend(MosaicFrame **oframes, MosaicFrame **rframes,
return BLEND_RET_ERROR;
}
+ LOGI("Allocate mosaic image for blending - size: %d x %d", Mwidth, Mheight);
YUVinfo *imgMos = YUVinfo::allocateImage(Mwidth, Mheight);
if (imgMos == NULL)
{
diff --git a/jni/feature_mos/src/mosaic/ImageUtils.cpp b/jni/feature_mos/src/mosaic/ImageUtils.cpp
index 2671dd4..6d0aac0 100644
--- a/jni/feature_mos/src/mosaic/ImageUtils.cpp
+++ b/jni/feature_mos/src/mosaic/ImageUtils.cpp
@@ -360,7 +360,7 @@ YUVinfo *YUVinfo::allocateImage(unsigned short width, unsigned short height)
heightUV = height;
// figure out how much space to hold all pixels...
- int size = (((width * height * 32) >> 3) + 8);
+ int size = ((width * height * 3) + 8);
unsigned char *position = 0;
// VC 8 does not like calling free on yuv->Y.ptr since it is in