aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/audio.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-05-12 17:38:47 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-05-16 13:16:05 +0200
commit4d4098da009c8340997b8d1abedbf2062e4aa991 (patch)
tree2a2398b82a55b8a5feeaa87ece2fefbd5c83036d /libavfilter/audio.h
parent183596fa081cc283c61ba3c0bb8386f9139f761f (diff)
downloadffmpeg-4d4098da009c8340997b8d1abedbf2062e4aa991.tar.gz
lavfi: drop planar/packed negotiation support
The planar/packed switch and the packing_formats list is no longer required, since the planar/packed information is now stored in the sample format enum. This is technically a major API break, possibly it should be not too painful as we marked the audio filtering API as unstable.
Diffstat (limited to 'libavfilter/audio.h')
-rw-r--r--libavfilter/audio.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libavfilter/audio.h b/libavfilter/audio.h
index 051efb2024..b63f85f45c 100644
--- a/libavfilter/audio.h
+++ b/libavfilter/audio.h
@@ -24,6 +24,23 @@
#include "avfilter.h"
+static const enum AVSampleFormat ff_packed_sample_fmts[] = {
+ AV_SAMPLE_FMT_U8,
+ AV_SAMPLE_FMT_S16,
+ AV_SAMPLE_FMT_S32,
+ AV_SAMPLE_FMT_FLT,
+ AV_SAMPLE_FMT_DBL,
+ AV_SAMPLE_FMT_NONE
+};
+
+static const enum AVSampleFormat ff_planar_sample_fmts[] = {
+ AV_SAMPLE_FMT_U8P,
+ AV_SAMPLE_FMT_S16P,
+ AV_SAMPLE_FMT_S32P,
+ AV_SAMPLE_FMT_FLTP,
+ AV_SAMPLE_FMT_DBLP,
+ AV_SAMPLE_FMT_NONE
+};
/** default handler for get_audio_buffer() for audio inputs */
AVFilterBufferRef *ff_default_get_audio_buffer(AVFilterLink *link, int perms,