diff options
| author | Eino-Ville Talvala <etalvala@google.com> | 2015-05-14 17:26:24 -0700 | 
|---|---|---|
| committer | Eino-Ville Talvala <etalvala@google.com> | 2015-06-08 13:21:50 -0700 | 
| commit | d46a6b9fd8b2a4f9098757384711e2cd03a91651 (patch) | |
| tree | 6a292d7d4948ad40719925c82ee95945a6ccb99d /include | |
| parent | b4b4cd11c9b95af613f5c0f14f93e3c9590fda7c (diff) | |
| download | frameworks_av-d46a6b9fd8b2a4f9098757384711e2cd03a91651.zip frameworks_av-d46a6b9fd8b2a4f9098757384711e2cd03a91651.tar.gz frameworks_av-d46a6b9fd8b2a4f9098757384711e2cd03a91651.tar.bz2  | |
Camera1 API: Support SW encoders for new camera HALs
- Support new set video format/dataspace command in camera service
  - HALv3: Select gralloc usage flags based on format
  - HALv1: Pass format command directly to HAL layer
- Use format/dataspace command in CameraSource
- Switch all API1 recording to use metadata mode
- Switch all >= HALv2 API1 recording to use kMetadataBufferTypeANWBuffer
Bug: 13222807
Change-Id: I2e609b92c65792611bb1dab09e0c41c363ebbc42
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/stagefright/CameraSource.h | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/stagefright/CameraSource.h b/include/media/stagefright/CameraSource.h index 96dfd7e..069e897 100644 --- a/include/media/stagefright/CameraSource.h +++ b/include/media/stagefright/CameraSource.h @@ -83,7 +83,7 @@ public:                                            Size videoSize,                                            int32_t frameRate,                                            const sp<IGraphicBufferProducer>& surface, -                                          bool storeMetaDataInVideoBuffers = false); +                                          bool storeMetaDataInVideoBuffers = true);      virtual ~CameraSource(); @@ -149,6 +149,8 @@ protected:      int32_t  mNumInputBuffers;      int32_t  mVideoFrameRate;      int32_t  mColorFormat; +    int32_t  mEncoderFormat; +    int32_t  mEncoderDataSpace;      status_t mInitCheck;      sp<Camera>   mCamera;  | 
