[FFmpeg-devel] [PATCH 001/289 v6] Add a new channel layout API

James Almer jamrial at gmail.com
Thu Jan 20 02:09:13 EET 2022



On 1/19/2022 3:07 PM, Andreas Rheinhardt wrote:
> James Almer:
>> From: Anton Khirnov <anton at khirnov.net>
>>
>> The new API is more extensible and allows for custom layouts.
>> More accurate information is exported, eg for decoders that do not
>> set a channel layout, lavc will not make one up for them.
>>
>> Deprecate the old API working with just uint64_t bitmasks.
>>
>> Expanded and completed by Vittorio Giovara <vittorio.giovara at gmail.com>
>> and James Almer <jamrial at gmail.com>.
>> Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>> Changes since last version:
>>
>> *av_channel_layout_from_string() and av_channel_layout_describe() now support
>>   a "designation at name" syntax, effectively making both functions reciprocal
>>   when there are custom names in some or all channels.
>>   It's the syntax suggested by Marton and is both extensible if required and
>>   not too ulgy in human readable output if the string is printed verbatim.
>>
>> *av_channel_layout_index_from_string() and
>>   av_channel_layout_channel_from_string() also support this syntax now.
>>
>> I plan to push this version soon. Any extension to the syntax supported by these
>> helpers can be written by whoever needs it.
> 
> You forgot the examples and the tools; and ffplay. And do you really

Ported ffplay. Will port the rest later.

> intend for the deprecation warnings in ffmpeg_opt.c to stay?

Ok, I'll silence them.

> 
> - Andreas
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list