Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7d0cf49 authored by Andreas Huber's avatar Andreas Huber
Browse files

The qcom decoder requires that the output buffers be allocated by the...

The qcom decoder requires that the output buffers be allocated by the component for hardware accelerated display to work.
parent c18e9ed3
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -191,7 +191,7 @@ sp<OMXCodec> OMXCodec::Create(


        status_t err = omx->allocate_node(componentName, &node);
        status_t err = omx->allocate_node(componentName, &node);
        if (err == OK) {
        if (err == OK) {
            LOGV("Successfully allocated OMX node '%s'", componentName);
            LOGI("Successfully allocated OMX node '%s'", componentName);
            break;
            break;
        }
        }
    }
    }
@@ -216,6 +216,10 @@ sp<OMXCodec> OMXCodec::Create(
        quirks |= kRequiresLoadedToIdleAfterAllocation;
        quirks |= kRequiresLoadedToIdleAfterAllocation;
        quirks |= kRequiresAllocateBufferOnInputPorts;
        quirks |= kRequiresAllocateBufferOnInputPorts;
    }
    }
    if (!strncmp(componentName, "OMX.qcom.video.decoder.", 23)) {
        // XXX Required on P....on only.
        quirks |= kRequiresAllocateBufferOnOutputPorts;
    }


    sp<OMXCodec> codec = new OMXCodec(
    sp<OMXCodec> codec = new OMXCodec(
            omx, node, quirks, createEncoder, mime, componentName,
            omx, node, quirks, createEncoder, mime, componentName,