summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-08-20 11:35:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-20 11:35:38 -0700
commit727f658e81acadd082d2a658ece2b0b45e62c0fc (patch)
tree7ee4792c4fd58f9bcff04081430d9e8d1661574f /include
parent437e6c49f1052184e01231e6f33ad21c91fc2d36 (diff)
parent96624731c31de41968539b7c95b124d0845929e4 (diff)
downloadframeworks_base-727f658e81acadd082d2a658ece2b0b45e62c0fc.zip
frameworks_base-727f658e81acadd082d2a658ece2b0b45e62c0fc.tar.gz
frameworks_base-727f658e81acadd082d2a658ece2b0b45e62c0fc.tar.bz2
Merge "Added downsample()"
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/YUVCanvas.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/media/stagefright/YUVCanvas.h b/include/media/stagefright/YUVCanvas.h
index 5e17046..ff70923 100644
--- a/include/media/stagefright/YUVCanvas.h
+++ b/include/media/stagefright/YUVCanvas.h
@@ -55,6 +55,18 @@ public:
int32_t destStartX, int32_t destStartY,
const YUVImage &srcImage);
+ // Downsamples the srcImage into the canvas' target image (mYUVImage)
+ // The downsampling copies pixels from the source image starting at
+ // (srcOffsetX, srcOffsetY) to the target image, starting at (0, 0).
+ // For each X increment in the target image, skipX pixels are skipped
+ // in the source image.
+ // Similarly for each Y increment in the target image, skipY pixels
+ // are skipped in the source image.
+ void downsample(
+ int32_t srcOffsetX, int32_t srcOffsetY,
+ int32_t skipX, int32_t skipY,
+ const YUVImage &srcImage);
+
private:
YUVImage& mYUVImage;