diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-11-17 10:46:41 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-11-17 10:46:41 -0800 |
commit | f78933fdfc5bc71881b3011f921b643d90387664 (patch) | |
tree | e13d666ee10eea352fd7d3d253e1f4d96984578e /include/media/stagefright | |
parent | c77a293c4971d9f6c4e3b0c0573fb13276bedf18 (diff) | |
parent | 30ab66297501757d745b9ae10da61adcd891f497 (diff) | |
download | frameworks_av-f78933fdfc5bc71881b3011f921b643d90387664.zip frameworks_av-f78933fdfc5bc71881b3011f921b643d90387664.tar.gz frameworks_av-f78933fdfc5bc71881b3011f921b643d90387664.tar.bz2 |
Merge change Iea6a38c6 into eclair-mr2
* changes:
Squashed commit of the following:
Diffstat (limited to 'include/media/stagefright')
-rw-r--r-- | include/media/stagefright/CameraSource.h | 5 | ||||
-rw-r--r-- | include/media/stagefright/MPEG4Writer.h | 2 | ||||
-rw-r--r-- | include/media/stagefright/MetaData.h | 3 | ||||
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 1 |
4 files changed, 10 insertions, 1 deletions
diff --git a/include/media/stagefright/CameraSource.h b/include/media/stagefright/CameraSource.h index ff3ea05..ea435de 100644 --- a/include/media/stagefright/CameraSource.h +++ b/include/media/stagefright/CameraSource.h @@ -26,6 +26,7 @@ namespace android { +class ICamera; class IMemory; class ISurface; class Camera; @@ -33,9 +34,12 @@ class Camera; class CameraSource : public MediaSource { public: static CameraSource *Create(); + static CameraSource *CreateFromICamera(const sp<ICamera> &icamera); virtual ~CameraSource(); + void setPreviewSurface(const sp<ISurface> &surface); + virtual status_t start(MetaData *params = NULL); virtual status_t stop(); @@ -48,6 +52,7 @@ private: friend class CameraSourceListener; sp<Camera> mCamera; + sp<ISurface> mPreviewSurface; Mutex mLock; Condition mFrameAvailableCondition; diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h index 6b0399f..2ca04fa 100644 --- a/include/media/stagefright/MPEG4Writer.h +++ b/include/media/stagefright/MPEG4Writer.h @@ -33,6 +33,7 @@ class MetaData; class MPEG4Writer : public RefBase { public: MPEG4Writer(const char *filename); + MPEG4Writer(int fd); void addSource(const sp<MediaSource> &source); status_t start(); @@ -65,6 +66,7 @@ private: List<off_t> mBoxes; off_t addSample(MediaBuffer *buffer); + off_t addLengthPrefixedSample(MediaBuffer *buffer); MPEG4Writer(const MPEG4Writer &); MPEG4Writer &operator=(const MPEG4Writer &); diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h index c2d8f98..583128f 100644 --- a/include/media/stagefright/MetaData.h +++ b/include/media/stagefright/MetaData.h @@ -38,7 +38,8 @@ enum { kKeyESDS = 'esds', // raw data kKeyAVCC = 'avcc', // raw data kKeyWantsNALFragments = 'NALf', - kKeyIsSyncFrame = 'sync', + kKeyIsSyncFrame = 'sync', // int32_t (bool) + kKeyIsCodecConfig = 'conf', // int32_t (bool) kKeyTime = 'time', // int64_t (usecs) kKeyDuration = 'dura', // int64_t (usecs) kKeyColorFormat = 'colf', diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 7890883..4c60623 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -159,6 +159,7 @@ private: const char *mime, OMX_U32 width, OMX_U32 height); status_t setupMPEG4EncoderParameters(); + status_t setupAVCEncoderParameters(); void setVideoOutputFormat( const char *mime, OMX_U32 width, OMX_U32 height); |