summaryrefslogtreecommitdiffstats
path: root/include/media/MediaProfiles.h
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-05-09 18:49:31 -0700
committerJames Dong <jdong@google.com>2011-05-10 10:32:19 -0700
commit0f056290cb16763453f18bbef80cde673041dbbc (patch)
tree8250c642980de9496f6ae88bd1b00f798dba1eb4 /include/media/MediaProfiles.h
parent70ccfd44c4bfe95ddecc2df6c3695efc48229d72 (diff)
downloadframeworks_av-0f056290cb16763453f18bbef80cde673041dbbc.zip
frameworks_av-0f056290cb16763453f18bbef80cde673041dbbc.tar.gz
frameworks_av-0f056290cb16763453f18bbef80cde673041dbbc.tar.bz2
Add support for platform-specific recording start time offset
o This start time offset is used in the media framework to eliminate the recording sound in the recorded file. Change-Id: I97926a74f0743b8a4f985d51334e8d1486a318ea related-to-bug: 4390777
Diffstat (limited to 'include/media/MediaProfiles.h')
-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