uint64_t channel_layout; ///< channel layout of audio buffer
int nb_samples; ///< number of audio samples per channel
int sample_rate; ///< audio buffer sample rate
-#if FF_API_PACKING
- int planar; ///< audio buffer - planar or packed
-#endif
} AVFilterBufferRefAudioProps;
/**
*/
extern const int64_t avfilter_all_channel_layouts[];
-#if FF_API_PACKING
-/**
- * Return a list of all audio packing formats.
- */
-AVFilterFormats *avfilter_make_all_packing_formats(void);
-#endif
-
/**
* Return a format list which contains the intersection of the formats of
* a and b. Also, all the references of a, all the references of b, and
void avfilter_set_common_sample_formats(AVFilterContext *ctx, AVFilterFormats *formats);
attribute_deprecated
void avfilter_set_common_channel_layouts(AVFilterContext *ctx, AVFilterFormats *formats);
-#if FF_API_PACKING
-attribute_deprecated
-void avfilter_set_common_packing_formats(AVFilterContext *ctx, AVFilterFormats *formats);
-#endif
/**
* @}
struct AVFilterCommand *command_queue;
};
-#if FF_API_PACKING
-enum AVFilterPacking {
- AVFILTER_PACKED = 0,
- AVFILTER_PLANAR,
-};
-#endif
-
/**
* A link between two filters. This contains pointers to the source and
* destination filters between which this link exists, and the indexes of
#else
int sample_rate; ///< samples per second
#endif
-#if FF_API_PACKING
- int planar; ///< agreed upon packing mode of audio buffers. true if planar.
-#endif
-
int format; ///< agreed upon media format
/**
AVFilterFormats *in_formats;
AVFilterFormats *out_formats;
-#if FF_API_PACKING
- AVFilterFormats *in_packing;
- AVFilterFormats *out_packing;
-#endif
-
/**
* The buffer reference currently being sent across the link by the source
* filter. This is used internally by the filter system to allow
av_free(fmts);
}
}
-
-#if FF_API_PACKING
-void avfilter_set_common_packing_formats(AVFilterContext *ctx, AVFilterFormats *formats)
-{
- set_common_formats(ctx, formats, AVMEDIA_TYPE_AUDIO,
- offsetof(AVFilterLink, in_packing),
- offsetof(AVFilterLink, out_packing));
-}
-#endif
// return avfilter_make_format64_list(avfilter_all_channel_layouts);
// }
-#if FF_API_PACKING
-AVFilterFormats *avfilter_make_all_packing_formats(void)
-{
- static const int packing[] = {
- AVFILTER_PACKED,
- AVFILTER_PLANAR,
- -1,
- };
-
- return ff_make_format_list(packing);
-}
-#endif
-
AVFilterFormats *ff_planar_sample_fmts(void)
{
AVFilterFormats *ret = NULL;
#ifndef FF_API_VSRC_BUFFER_ADD_FRAME
#define FF_API_VSRC_BUFFER_ADD_FRAME (LIBAVFILTER_VERSION_MAJOR < 3)
#endif
-#ifndef FF_API_PACKING
-#define FF_API_PACKING (LIBAVFILTER_VERSION_MAJOR < 3)
-#endif
#ifndef FF_API_DEFAULT_CONFIG_OUTPUT_LINK
#define FF_API_DEFAULT_CONFIG_OUTPUT_LINK (LIBAVFILTER_VERSION_MAJOR < 3)
#endif