diff options
author | Mina Nagy Zaki <mnzaki@gmail.com> | 2011-06-19 20:31:24 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-19 22:58:32 +0200 |
commit | fd2c0a5db242a3c89a89f1dd2ae9e3155e48f9e2 (patch) | |
tree | 304f7ccb5772ff319728ba6cc99ada72bd579c9e /libavfilter/formats.c | |
parent | 527ca3985c736ffe077a82fdf3616f0fd571b923 (diff) | |
download | ffmpeg-streaming-fd2c0a5db242a3c89a89f1dd2ae9e3155e48f9e2.zip ffmpeg-streaming-fd2c0a5db242a3c89a89f1dd2ae9e3155e48f9e2.tar.gz |
lavfi: add layout negotiation fields and helper functions.
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 4e101c5..49977c5 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -20,6 +20,7 @@ */ #include "libavutil/pixdesc.h" +#include "libavutil/audioconvert.h" #include "avfilter.h" /** @@ -139,6 +140,27 @@ AVFilterFormats *avfilter_all_formats(enum AVMediaType type) return ret; } +AVFilterFormats *avfilter_all_channel_layouts(void) +{ + static int64_t chlayouts[] = { + AV_CH_LAYOUT_MONO, + AV_CH_LAYOUT_STEREO, + AV_CH_LAYOUT_4POINT0, + AV_CH_LAYOUT_QUAD, + AV_CH_LAYOUT_5POINT0, + AV_CH_LAYOUT_5POINT0_BACK, + AV_CH_LAYOUT_5POINT1, + AV_CH_LAYOUT_5POINT1_BACK, + AV_CH_LAYOUT_5POINT1|AV_CH_LAYOUT_STEREO_DOWNMIX, + AV_CH_LAYOUT_7POINT1, + AV_CH_LAYOUT_7POINT1_WIDE, + AV_CH_LAYOUT_7POINT1|AV_CH_LAYOUT_STEREO_DOWNMIX, + -1, + }; + + return avfilter_make_format64_list(chlayouts); +} + void avfilter_formats_ref(AVFilterFormats *f, AVFilterFormats **ref) { *ref = f; |