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

Commit f2ae75dd authored by Michael Gonzalez's avatar Michael Gonzalez Committed by Shuzhen Wang
Browse files

Camera: Heic: Wait for output TS before dequeuing output buffers

During testHeicExif, the codec output buffer timestamp may rarely arrive
after the first codec output tiles arrive.

Test: vendor testing
Bug: 141169323
Change-Id: Iba1c82b087533cb87a32d69f7d6908e2c925b807
Merged-In: Iba1c82b087533cb87a32d69f7d6908e2c925b807
(cherry picked from commit 5c103f29)
parent 0017f0d7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -597,7 +597,8 @@ void HeicCompositeStream::compilePendingInputLocked() {
        // to look up timestamp.
        int64_t bufferTime = -1;
        if (mCodecOutputBufferTimestamps.empty()) {
            ALOGE("%s: Failed to find buffer timestamp for codec output buffer!", __FUNCTION__);
            ALOGV("%s: Failed to find buffer timestamp for codec output buffer!", __FUNCTION__);
            break;
        } else {
            // Direct mapping between camera timestamp (in ns) and codec timestamp (in us).
            bufferTime = mCodecOutputBufferTimestamps.front();