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

Commit f1b3ee26 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Added number of encoded frames and duration to the MPEG4Writer::Track::dump"

parents 68ea6cab 13210f33
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -91,7 +91,6 @@ private:
    int64_t mMaxChunkDurationUs;
    int64_t mMaxChunkDurationUs;


    bool mIsRealTimeRecording;
    bool mIsRealTimeRecording;
    int64_t mMaxTimeStampUs;
    int64_t mEstimatedTrackSizeBytes;
    int64_t mEstimatedTrackSizeBytes;
    int64_t mMdatSizeBytes;
    int64_t mMdatSizeBytes;
    int32_t mTimeScale;
    int32_t mTimeScale;
@@ -334,6 +333,10 @@ status_t MPEG4Writer::Track::dump(
    snprintf(buffer, SIZE, "       reached EOS: %s\n",
    snprintf(buffer, SIZE, "       reached EOS: %s\n",
            mReachedEOS? "true": "false");
            mReachedEOS? "true": "false");
    result.append(buffer);
    result.append(buffer);
    snprintf(buffer, SIZE, "       frames encoded : %d\n", mNumSamples);
    result.append(buffer);
    snprintf(buffer, SIZE, "       duration encoded : %lld us\n", mTrackDurationUs);
    result.append(buffer);
    ::write(fd, result.string(), result.size());
    ::write(fd, result.string(), result.size());
    return OK;
    return OK;
}
}
@@ -1147,6 +1150,7 @@ MPEG4Writer::Track::Track(
      mStarted(false),
      mStarted(false),
      mTrackId(trackId),
      mTrackId(trackId),
      mTrackDurationUs(0),
      mTrackDurationUs(0),
      mNumSamples(0),
      mEstimatedTrackSizeBytes(0),
      mEstimatedTrackSizeBytes(0),
      mSamplesHaveSameSize(true),
      mSamplesHaveSameSize(true),
      mCodecSpecificData(NULL),
      mCodecSpecificData(NULL),