Loading media/codec2/sfplugin/CCodecBufferChannel.cpp +23 −20 Original line number Diff line number Diff line Loading @@ -851,6 +851,10 @@ status_t CCodecBufferChannel::renderOutputBuffer( if (hdrStaticInfo || hdr10PlusInfo) { HdrMetadata hdr; if (hdrStaticInfo) { // If mastering max and min luminance fields are 0, do not use them. // It indicates the value may not be present in the stream. if (hdrStaticInfo->mastering.maxLuminance > 0.0f && hdrStaticInfo->mastering.minLuminance > 0.0f) { struct android_smpte2086_metadata smpte2086_meta = { .displayPrimaryRed = { hdrStaticInfo->mastering.red.x, hdrStaticInfo->mastering.red.y Loading @@ -867,10 +871,9 @@ status_t CCodecBufferChannel::renderOutputBuffer( .maxLuminance = hdrStaticInfo->mastering.maxLuminance, .minLuminance = hdrStaticInfo->mastering.minLuminance, }; hdr.validTypes = HdrMetadata::SMPTE2086; hdr.smpte2086 = smpte2086_meta; } // If the content light level fields are 0, do not use them, it // indicates the value may not be present in the stream. if (hdrStaticInfo->maxCll > 0.0f && hdrStaticInfo->maxFall > 0.0f) { Loading Loading
media/codec2/sfplugin/CCodecBufferChannel.cpp +23 −20 Original line number Diff line number Diff line Loading @@ -851,6 +851,10 @@ status_t CCodecBufferChannel::renderOutputBuffer( if (hdrStaticInfo || hdr10PlusInfo) { HdrMetadata hdr; if (hdrStaticInfo) { // If mastering max and min luminance fields are 0, do not use them. // It indicates the value may not be present in the stream. if (hdrStaticInfo->mastering.maxLuminance > 0.0f && hdrStaticInfo->mastering.minLuminance > 0.0f) { struct android_smpte2086_metadata smpte2086_meta = { .displayPrimaryRed = { hdrStaticInfo->mastering.red.x, hdrStaticInfo->mastering.red.y Loading @@ -867,10 +871,9 @@ status_t CCodecBufferChannel::renderOutputBuffer( .maxLuminance = hdrStaticInfo->mastering.maxLuminance, .minLuminance = hdrStaticInfo->mastering.minLuminance, }; hdr.validTypes = HdrMetadata::SMPTE2086; hdr.smpte2086 = smpte2086_meta; } // If the content light level fields are 0, do not use them, it // indicates the value may not be present in the stream. if (hdrStaticInfo->maxCll > 0.0f && hdrStaticInfo->maxFall > 0.0f) { Loading