[FFmpeg-devel] [PATCH 07/13] avcodec/hevcdec: export LCEVC metadata as frame side data

James Almer jamrial at gmail.com
Mon Sep 2 19:40:37 EEST 2024


On 9/2/2024 9:00 AM, Derek Buitenhuis wrote:
> On 8/31/2024 5:31 PM, James Almer wrote:
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>   configure                 |  1 +
>>   libavcodec/hevc/hevcdec.c |  3 +++
>>   libavcodec/hevc/refs.c    | 15 ++++++++++++++-
>>   3 files changed, 18 insertions(+), 1 deletion(-)
> 
> Maybe I've misunderstood, but doesn't requiring every possible base layer
> codec to explicitly support exporting LCEVC kind of defeat the point of
> a 'generic' enhancement layer codec like LCEVC?
We don't require that. Those codecs that have it embedded in the 
bitstream do it, like hevc here. Those who don't will require the caller 
to insert the lcevc payload (which most likely came from the container) 
into the base layer packets as side data, which decode.c will make sure 
makes it to the frame for decoding.
The last patch in this set makes ffmpeg.c (the aforementioned caller) do 
exactly that for split variants (exported by mov/mp4 for now).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240902/9180a10f/attachment.sig>


More information about the ffmpeg-devel mailing list