lavfi: add avfilter_all_channel_layouts public symbol

This list is mainly useful to be directly used as a parameter by the
audio sink buffer, when there is no need to force a specific channel
layout.

The list of formats is generated programmatically, and avoids channel
layouts not supported by libavfilter (with more than 8 channels).

We preferred to avoid compile-time generation in order to avoid some
unnecessary complexity (build hacks, generating code maintainance
etc.).

A more compact way to express this list through the use of macros
should be possible when libavfilter will support more than 8 channels,
as there will be no need to filter out channel layouts with more than
8 channels.

See thread:
Subject: [FFmpeg-devel] [PATCH] lavfi: add ff_all_channel_layouts internal symbol
Date: Sat, 20 Aug 2011 15:33:16 +0200
This commit is contained in:
Stefano Sabatini
2011-08-18 15:26:21 +02:00
committed by Stefano Sabatini
parent 9899037dc6
commit ea8de109af
5 changed files with 103 additions and 18 deletions
+3
View File
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
2011-09-16 - xxxxxxx - lavfi 2.42.0
Add avfilter_all_channel_layouts.
2011-09-16 - xxxxxxx - lavfi 2.41.0
Rename avfilter_all_* function names to avfilter_make_all_*.