diff options
| author | James Dong <jdong@google.com> | 2010-08-03 17:19:23 -0700 |
|---|---|---|
| committer | James Dong <jdong@google.com> | 2010-08-05 13:47:01 -0700 |
| commit | afd97e82cf28d72048c44f78c211a3e9ac6e11e5 (patch) | |
| tree | a93d77e520ffb6b6e3cb799f33c02b683adfa978 /include/media | |
| parent | 2c37f3d3a09188f3dc66e177547709e4828918be (diff) | |
| download | frameworks_base-afd97e82cf28d72048c44f78c211a3e9ac6e11e5.zip frameworks_base-afd97e82cf28d72048c44f78c211a3e9ac6e11e5.tar.gz frameworks_base-afd97e82cf28d72048c44f78c211a3e9ac6e11e5.tar.bz2 | |
Use the target color format from the camera source if possible
- If the target color format is unavailable, the default
platform-dependent color format will be used.
- Also add some logic to prevent looping forever if the
omx component is buggy supporting color format enumeration.
Change-Id: I119a78f0d6201b4c3621235cca2f523ec14e24e3
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/stagefright/OMXCodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 6c6949b..010ded1 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -181,6 +181,11 @@ private: status_t setupH263EncoderParameters(const sp<MetaData>& meta); status_t setupMPEG4EncoderParameters(const sp<MetaData>& meta); status_t setupAVCEncoderParameters(const sp<MetaData>& meta); + status_t findTargetColorFormat( + const sp<MetaData>& meta, OMX_COLOR_FORMATTYPE *colorFormat); + + status_t isColorFormatSupported( + OMX_COLOR_FORMATTYPE colorFormat, int portIndex); // If profile/level is set in the meta data, its value in the meta // data will be used; otherwise, the default value will be used. |
