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

Commit deb35d32 authored by Ray Essick's avatar Ray Essick Committed by Gerrit Code Review
Browse files

Merge "benchmark: Exclude format delete from deInit time calculation"

parents f27d1e47 68db4f6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -225,12 +225,12 @@ int32_t Decoder::decode(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &fra
}

void Decoder::deInitCodec() {
    int64_t sTime = mStats->getCurTime();
    if (mFormat) {
        AMediaFormat_delete(mFormat);
        mFormat = nullptr;
    }
    if (!mCodec) return;
    int64_t sTime = mStats->getCurTime();
    AMediaCodec_stop(mCodec);
    AMediaCodec_delete(mCodec);
    int64_t eTime = mStats->getCurTime();
+1 −1
Original line number Diff line number Diff line
@@ -154,12 +154,12 @@ void Encoder::setupEncoder() {
}

void Encoder::deInitCodec() {
    int64_t sTime = mStats->getCurTime();
    if (mFormat) {
        AMediaFormat_delete(mFormat);
        mFormat = nullptr;
    }
    if (!mCodec) return;
    int64_t sTime = mStats->getCurTime();
    AMediaCodec_stop(mCodec);
    AMediaCodec_delete(mCodec);
    int64_t eTime = mStats->getCurTime();
+1 −1
Original line number Diff line number Diff line
@@ -49,12 +49,12 @@ int32_t Muxer::initMuxer(int32_t fd, MUXER_OUTPUT_T outputFormat) {
}

void Muxer::deInitMuxer() {
    int64_t sTime = mStats->getCurTime();
    if (mFormat) {
        AMediaFormat_delete(mFormat);
        mFormat = nullptr;
    }
    if (!mMuxer) return;
    int64_t sTime = mStats->getCurTime();
    AMediaMuxer_stop(mMuxer);
    AMediaMuxer_delete(mMuxer);
    int64_t eTime = mStats->getCurTime();