diff options
author | James Dong <jdong@google.com> | 2011-05-13 16:31:10 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-05-13 16:31:10 -0700 |
commit | bfb6791934dae9888dc017f1057f5b9cf12f35d2 (patch) | |
tree | 35e63128061920b9a7ab55d86d8a59a3c2a5ef53 /include | |
parent | bf9f408b5917734ac3c07c722cc41563e04f1440 (diff) | |
parent | a403a938e9308b47f470815e49a33a7060abc69b (diff) | |
download | frameworks_base-bfb6791934dae9888dc017f1057f5b9cf12f35d2.zip frameworks_base-bfb6791934dae9888dc017f1057f5b9cf12f35d2.tar.gz frameworks_base-bfb6791934dae9888dc017f1057f5b9cf12f35d2.tar.bz2 |
Merge "Add support for platform-specific recording start time offset"
Diffstat (limited to 'include')
-rw-r--r-- | include/media/MediaProfiles.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/MediaProfiles.h b/include/media/MediaProfiles.h index f2107ec..ed26e63 100644 --- a/include/media/MediaProfiles.h +++ b/include/media/MediaProfiles.h @@ -150,6 +150,12 @@ public: */ Vector<int> getImageEncodingQualityLevels(int cameraId) const; + /** + * Returns the start time offset (in ms) for the given camera Id. + * If the given camera Id does not exist, -1 will be returned. + */ + int getStartTimeOffsetMs(int cameraId) const; + private: enum { // Camcorder profiles (high/low) and timelapse profiles (high/low) @@ -332,6 +338,8 @@ private: static int getCameraId(const char **atts); + void addStartTimeOffset(int cameraId, const char **atts); + ImageEncodingQualityLevels* findImageEncodingQualityLevels(int cameraId) const; void addImageEncodingQualityLevel(int cameraId, const char** atts); @@ -408,6 +416,7 @@ private: Vector<VideoDecoderCap*> mVideoDecoders; Vector<output_format> mEncoderOutputFileFormats; Vector<ImageEncodingQualityLevels *> mImageEncodingQualityLevels; + KeyedVector<int, int> mStartTimeOffsets; typedef struct { bool mHasRefProfile; // Refers to an existing profile |