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

Commit c61bdcf5 authored by Praveen Chavan's avatar Praveen Chavan Committed by Lajos Molnar
Browse files

ACodec: Update max temporal layer count

Update max temporal layer count when client
uses ts-schema for temporal settings. The max
count is set same as the layer count when codec
hasn't started. After codec starts, ts-schema
settings are used to dynamically change the actual
layer count

CRs-Fixed: 2151883
Author: Saurabh Kothawade <skothawa@codeaurora.org>

Bug: 111198040
Change-Id: I3eeeb077064b03bbcebf5643e873729ff092729c
parent 2f5f0ace
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2580,6 +2580,8 @@ status_t ACodec::configureTemporalLayers(
        layerParams.nPLayerCountActual = numLayers - numBLayers;
        layerParams.nBLayerCountActual = numBLayers;
        layerParams.bBitrateRatiosSpecified = OMX_FALSE;
        layerParams.nLayerCountMax = numLayers;
        layerParams.nBLayerCountMax = numBLayers;

        err = mOMXNode->setParameter(
                (OMX_INDEXTYPE)OMX_IndexParamAndroidVideoTemporalLayering,