From afd97e82cf28d72048c44f78c211a3e9ac6e11e5 Mon Sep 17 00:00:00 2001 From: James Dong Date: Tue, 3 Aug 2010 17:19:23 -0700 Subject: 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 --- include/media/stagefright/OMXCodec.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/media') 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& meta); status_t setupMPEG4EncoderParameters(const sp& meta); status_t setupAVCEncoderParameters(const sp& meta); + status_t findTargetColorFormat( + const sp& 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. -- cgit v1.1