Commit ed6e8dbe authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

omxil: Try to enable YUV420p mode on Samsung Galaxy S II

This is similar to the ThumbnailMode on Nexus S, except that
the index doesn't seem to be queryable dynamically
(I don't seem to find any string in the binaries that
would be the right one at least).
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 95b27424)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 51ad7ca7
...@@ -692,6 +692,14 @@ static OMX_ERRORTYPE InitialiseComponent(decoder_t *p_dec, ...@@ -692,6 +692,14 @@ static OMX_ERRORTYPE InitialiseComponent(decoder_t *p_dec,
OMX_BOOL enable = OMX_TRUE; OMX_BOOL enable = OMX_TRUE;
omx_error = OMX_SetConfig(omx_handle, index, &enable); omx_error = OMX_SetConfig(omx_handle, index, &enable);
CHECK_ERROR(omx_error, "Unable to set ThumbnailMode"); CHECK_ERROR(omx_error, "Unable to set ThumbnailMode");
} else {
OMX_BOOL enable = OMX_TRUE;
/* Needed on Samsung Galaxy S II */
omx_error = OMX_SetConfig(omx_handle, OMX_IndexVendorSetYUV420pMode, &enable);
if (omx_error == OMX_ErrorNone)
msg_Dbg(p_dec, "Set OMX_IndexVendorSetYUV420pMode successfully");
else
msg_Dbg(p_dec, "Unable to set OMX_IndexVendorSetYUV420pMode: %x", omx_error);
} }
} }
......
...@@ -185,3 +185,5 @@ unsigned int GetAudioParamSize(OMX_INDEXTYPE index); ...@@ -185,3 +185,5 @@ unsigned int GetAudioParamSize(OMX_INDEXTYPE index);
* Vendor specific color formats * Vendor specific color formats
*****************************************************************************/ *****************************************************************************/
#define OMX_QCOM_COLOR_FormatYVU420SemiPlanar 0x7FA30C00 #define OMX_QCOM_COLOR_FormatYVU420SemiPlanar 0x7FA30C00
#define OMX_IndexVendorSetYUV420pMode 0x7f000003
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment