[FFmpeg-devel] [PATCH 02/10] lavfi: support unknown channel layouts.
Nicolas George
nicolas.george at normalesup.org
Mon Dec 31 01:26:21 CET 2012
Le decadi 10 nivôse, an CCXXI, Stefano Sabatini a écrit :
> What I mean: adding a specific field
> all_channel_layouts
> to mean that all channel layouts are supported, and a field:
>
> all_channel_counts
> to mean that all channel counts (and layouts) are supported.
>
> This should provide a more consistent semantic, and remove the
> arbitrary mapping:
>
> empty list -> all channel layout
> { CH_LAYOUT_UNKNOWN } -> all channel layout and counts
>
> which looks rather arbitrary to me. My supposition is that such fields
> would make the code simpler/more readable.
Ah, I see. That may be true, I will have to try to write it that way.
Unfortunately, it does not avoid the AV_CH_LAYOUT_UNKNOWN constant, for
filters that want to specify they accept 2 channels, whatever layout. Other
data structures could be possible, but nothing as simple as a flag.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121231/000cc013/attachment.asc>
More information about the ffmpeg-devel
mailing list