summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/filters/SimpleFilter.h
diff options
context:
space:
mode:
authorDavid Smith <davidas@google.com>2014-08-28 17:45:31 -0700
committerDavid Smith <davidas@google.com>2014-09-05 15:22:08 -0700
commite7f4e676bb88b17241d71731f9ea50c18cfcb039 (patch)
tree0e558d280cb9742392926c1c566bd4883ff47e42 /media/libstagefright/filters/SimpleFilter.h
parentb5f9ccfa2f8ddcd2e0c391d15fededc66533c9dd (diff)
downloadframeworks_av-e7f4e676bb88b17241d71731f9ea50c18cfcb039.zip
frameworks_av-e7f4e676bb88b17241d71731f9ea50c18cfcb039.tar.gz
frameworks_av-e7f4e676bb88b17241d71731f9ea50c18cfcb039.tar.bz2
stagefright: filter surface input, config cacheDir
Bug: 17203044 Change-Id: Ifb927429568fe68807143e8511065fea1a25b3a5
Diffstat (limited to 'media/libstagefright/filters/SimpleFilter.h')
-rw-r--r--media/libstagefright/filters/SimpleFilter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/media/libstagefright/filters/SimpleFilter.h b/media/libstagefright/filters/SimpleFilter.h
index a99ca05..26be742 100644
--- a/media/libstagefright/filters/SimpleFilter.h
+++ b/media/libstagefright/filters/SimpleFilter.h
@@ -31,16 +31,19 @@ public:
SimpleFilter() : mWidth(0), mHeight(0), mStride(0), mSliceHeight(0),
mColorFormatIn(0), mColorFormatOut(0) {};
+ // TODO: change this to take the configure AMessage so that parameters
+ // aren't hardcoded for all filters
virtual status_t configure(
int32_t srcWidth, int32_t srcHeight,
int32_t srcStride, int32_t srcSliceHeight,
- int32_t srcColorFormat) {
+ int32_t srcColorFormat, AString cacheDir) {
mWidth = srcWidth;
mHeight = srcHeight;
mStride = srcStride;
mSliceHeight = srcSliceHeight;
mColorFormatIn = srcColorFormat;
mColorFormatOut = mColorFormatIn;
+ mCacheDir = cacheDir;
return OK;
}
@@ -55,6 +58,7 @@ protected:
int32_t mWidth, mHeight;
int32_t mStride, mSliceHeight;
int32_t mColorFormatIn, mColorFormatOut;
+ AString mCacheDir;
virtual ~SimpleFilter() {};
};