summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorWei-Ta Chen <weita@google.com>2011-08-31 17:18:57 -0700
committerWei-Ta Chen <weita@google.com>2011-08-31 17:29:40 -0700
commitfa45108679c51623e716acbc3301b1e4535c3267 (patch)
tree4addb25364b529006041a3d83375f5e591c11cd3 /jni
parentc2f9a6866c8c0ea970f50645c33cf6296721bd91 (diff)
downloadLegacyCamera-fa45108679c51623e716acbc3301b1e4535c3267.zip
LegacyCamera-fa45108679c51623e716acbc3301b1e4535c3267.tar.gz
LegacyCamera-fa45108679c51623e716acbc3301b1e4535c3267.tar.bz2
Fix a warping bug that makes images slant.
Change-Id: Ia580bf037de698ac4a8a8e98b649f284bb1e299b
Diffstat (limited to 'jni')
-rw-r--r--jni/feature_mos/src/mosaic/Blend.cpp2
-rw-r--r--jni/feature_mos/src/mosaic/Blend.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/jni/feature_mos/src/mosaic/Blend.cpp b/jni/feature_mos/src/mosaic/Blend.cpp
index 5d05abe..ee67d5a 100644
--- a/jni/feature_mos/src/mosaic/Blend.cpp
+++ b/jni/feature_mos/src/mosaic/Blend.cpp
@@ -96,7 +96,7 @@ int Blend::runBlend(MosaicFrame **frames, int frames_size,
int ret;
int numCenters;
- ComputeBlendParameters(frames, frames_size, false);
+ ComputeBlendParameters(frames, frames_size, true);
numCenters = frames_size;
if (numCenters == 0)
diff --git a/jni/feature_mos/src/mosaic/Blend.h b/jni/feature_mos/src/mosaic/Blend.h
index 050b485..013fbbf 100644
--- a/jni/feature_mos/src/mosaic/Blend.h
+++ b/jni/feature_mos/src/mosaic/Blend.h
@@ -110,6 +110,8 @@ protected:
void ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx);
int FillFramePyramid(MosaicFrame *mb);
+
+ // TODO: need to add documentation about the parameters
void ComputeBlendParameters(MosaicFrame **frames, int frames_size, int is360);
int PerformFinalBlending(YUVinfo &imgMos, MosaicRect &cropping_rect);