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

Commit b6629353 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9981223 from f4cff0ec to udc-release

Change-Id: I06f5855511c599b64d3f36dbddb5526380f4839e
parents d4008dc7 f4cff0ec
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -334,7 +334,10 @@ public:
        // By default needsUpdate = false in case the supplied level does meet
        // By default needsUpdate = false in case the supplied level does meet
        // the requirements. For Level 1b, we want to update the level anyway,
        // the requirements. For Level 1b, we want to update the level anyway,
        // so we set it to true in that case.
        // so we set it to true in that case.
        bool needsUpdate = (me.v.level == LEVEL_AVC_1B);
        bool needsUpdate = false;
        if (me.v.level == LEVEL_AVC_1B || !me.F(me.v.level).supportsAtAll(me.v.level)) {
            needsUpdate = true;
        }
        for (const LevelLimits &limit : kLimits) {
        for (const LevelLimits &limit : kLimits) {
            if (mbs <= limit.mbs && mbsPerSec <= limit.mbsPerSec &&
            if (mbs <= limit.mbs && mbsPerSec <= limit.mbsPerSec &&
                    bitrate.v.value <= limit.bitrate) {
                    bitrate.v.value <= limit.bitrate) {
+3 −0
Original line number Original line Diff line number Diff line
@@ -341,6 +341,9 @@ class C2SoftHevcEnc::IntfImpl : public SimpleInterface<void>::BaseParams {
        // By default needsUpdate = false in case the supplied level does meet
        // By default needsUpdate = false in case the supplied level does meet
        // the requirements.
        // the requirements.
        bool needsUpdate = false;
        bool needsUpdate = false;
        if (!me.F(me.v.level).supportsAtAll(me.v.level)) {
            needsUpdate = true;
        }
        for (const LevelLimits &limit : kLimits) {
        for (const LevelLimits &limit : kLimits) {
            if (samples <= limit.samples && samplesPerSec <= limit.samplesPerSec &&
            if (samples <= limit.samples && samplesPerSec <= limit.samplesPerSec &&
                    bitrate.v.value <= limit.bitrate) {
                    bitrate.v.value <= limit.bitrate) {
+3 −0
Original line number Original line Diff line number Diff line
@@ -243,6 +243,9 @@ class C2SoftMpeg4Enc::IntfImpl : public SimpleInterface<void>::BaseParams {
            needsUpdate = true;
            needsUpdate = true;
        }
        }
#endif
#endif
        if (!me.F(me.v.level).supportsAtAll(me.v.level)) {
            needsUpdate = true;
        }
        for (const LevelLimits &limit : kLimits) {
        for (const LevelLimits &limit : kLimits) {
            if (sampleRate <= limit.sampleRate && size.v.width <= limit.width &&
            if (sampleRate <= limit.sampleRate && size.v.width <= limit.width &&
                    vbvSize <= limit.vbvSize && size.v.height <= limit.height &&
                    vbvSize <= limit.vbvSize && size.v.height <= limit.height &&
+3 −0
Original line number Original line Diff line number Diff line
@@ -263,6 +263,9 @@ C2R C2SoftVpxEnc::IntfImpl::ProfileLevelSetter(bool mayBlock,
    // By default needsUpdate = false in case the supplied level does meet
    // By default needsUpdate = false in case the supplied level does meet
    // the requirements.
    // the requirements.
    bool needsUpdate = false;
    bool needsUpdate = false;
    if (!me.F(me.v.level).supportsAtAll(me.v.level)) {
        needsUpdate = true;
    }
    for (const LevelLimits& limit : kLimits) {
    for (const LevelLimits& limit : kLimits) {
        if (samples <= limit.samples && samplesPerSec <= limit.samplesPerSec &&
        if (samples <= limit.samples && samplesPerSec <= limit.samplesPerSec &&
            bitrate.v.value <= limit.bitrate && dimension <= limit.dimension) {
            bitrate.v.value <= limit.bitrate && dimension <= limit.dimension) {
+5 −2
Original line number Original line Diff line number Diff line
@@ -2096,7 +2096,10 @@ bool CCodecBufferChannel::handleWork(
    // csd cannot be re-ordered and will always arrive first.
    // csd cannot be re-ordered and will always arrive first.
    if (initData != nullptr) {
    if (initData != nullptr) {
        Mutexed<Output>::Locked output(mOutput);
        Mutexed<Output>::Locked output(mOutput);
        if (output->buffers && outputFormat) {
        if (!output->buffers) {
            return false;
        }
        if (outputFormat) {
            output->buffers->updateSkipCutBuffer(outputFormat);
            output->buffers->updateSkipCutBuffer(outputFormat);
            output->buffers->setFormat(outputFormat);
            output->buffers->setFormat(outputFormat);
        }
        }
@@ -2105,7 +2108,7 @@ bool CCodecBufferChannel::handleWork(
        }
        }
        size_t index;
        size_t index;
        sp<MediaCodecBuffer> outBuffer;
        sp<MediaCodecBuffer> outBuffer;
        if (output->buffers && output->buffers->registerCsd(initData, &index, &outBuffer) == OK) {
        if (output->buffers->registerCsd(initData, &index, &outBuffer) == OK) {
            outBuffer->meta()->setInt64("timeUs", timestamp.peek());
            outBuffer->meta()->setInt64("timeUs", timestamp.peek());
            outBuffer->meta()->setInt32("flags", BUFFER_FLAG_CODEC_CONFIG);
            outBuffer->meta()->setInt32("flags", BUFFER_FLAG_CODEC_CONFIG);
            ALOGV("[%s] onWorkDone: csd index = %zu [%p]", mName, index, outBuffer.get());
            ALOGV("[%s] onWorkDone: csd index = %zu [%p]", mName, index, outBuffer.get());
Loading