Some instrumentation of OMXCodec for future investigation and a possibly temporary fix for the green tinge on video playback.
Change-Id: Iee9cd7b0c326bac96382007b4ea077d4368d7d01 related-to-bug: 3051572
This commit is contained in:
@@ -1838,8 +1838,31 @@ void OMXCodec::onEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2) {
|
||||
|
||||
case OMX_EventPortSettingsChanged:
|
||||
{
|
||||
CODEC_LOGV("OMX_EventPortSettingsChanged(port=%ld, data2=0x%08lx)",
|
||||
data1, data2);
|
||||
|
||||
if (data2 == 0 || data2 == OMX_IndexParamPortDefinition) {
|
||||
onPortSettingsChanged(data1);
|
||||
} else if (data1 == kPortIndexOutput
|
||||
&& data2 == OMX_IndexConfigCommonOutputCrop) {
|
||||
|
||||
OMX_CONFIG_RECTTYPE rect;
|
||||
rect.nPortIndex = kPortIndexOutput;
|
||||
InitOMXParams(&rect);
|
||||
|
||||
status_t err =
|
||||
mOMX->getConfig(
|
||||
mNode, OMX_IndexConfigCommonOutputCrop,
|
||||
&rect, sizeof(rect));
|
||||
|
||||
if (err == OK) {
|
||||
CODEC_LOGV(
|
||||
"output crop (%ld, %ld, %ld, %ld)",
|
||||
rect.nLeft, rect.nTop, rect.nWidth, rect.nHeight);
|
||||
} else {
|
||||
CODEC_LOGE("getConfig(OMX_IndexConfigCommonOutputCrop) "
|
||||
"returned error 0x%08x", err);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ SoftwareRenderer::SoftwareRenderer(
|
||||
LOGI("display = %d x %d, decoded = %d x %d",
|
||||
mDisplayWidth, mDisplayHeight, mDecodedWidth, mDecodedHeight);
|
||||
|
||||
mDecodedWidth = mDisplayWidth;
|
||||
mDecodedHeight = mDisplayHeight;
|
||||
|
||||
int halFormat;
|
||||
switch (mColorFormat) {
|
||||
#if HAS_YCBCR420_SP_ADRENO
|
||||
|
||||
Reference in New Issue
Block a user