summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-08-03 17:19:23 -0700
committerJames Dong <jdong@google.com>2010-08-05 13:47:01 -0700
commit299766cdbf93fba14634e364b177b7f4d5811453 (patch)
tree4cb3f2fe756d43164ce2268cbed23ed28354388b /include
parentcf168132b4e4ac8d9c29d02d8dfed89c33d06e9a (diff)
downloadframeworks_av-299766cdbf93fba14634e364b177b7f4d5811453.zip
frameworks_av-299766cdbf93fba14634e364b177b7f4d5811453.tar.gz
frameworks_av-299766cdbf93fba14634e364b177b7f4d5811453.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')
-rw-r--r--include/media/stagefright/OMXCodec.h5
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.