summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-05-13 16:31:10 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-13 16:31:10 -0700
commit9b1e4f1a18ac2489e24b4272a0a7ccfd0018efcc (patch)
treed8af67ab7fa0bbc023a6c01709cda812e6959830 /include
parent07b1bb529a1ae76c46a71b01338c166f9490629d (diff)
parent0f056290cb16763453f18bbef80cde673041dbbc (diff)
downloadframeworks_av-9b1e4f1a18ac2489e24b4272a0a7ccfd0018efcc.zip
frameworks_av-9b1e4f1a18ac2489e24b4272a0a7ccfd0018efcc.tar.gz
frameworks_av-9b1e4f1a18ac2489e24b4272a0a7ccfd0018efcc.tar.bz2
Merge "Add support for platform-specific recording start time offset"
Diffstat (limited to 'include')
-rw-r--r--include/media/MediaProfiles.h9
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