lavfi: drop internal.h

All that remains in it are things that belong in avfilter_internal.h.

Move them there and remove internal.h

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Anton Khirnov 2024-08-16 22:25:47 +02:00 committed by Paul B Mahol
parent 6413626ddb
commit 5c2f7e192f
432 changed files with 24 additions and 431 deletions

View File

@ -33,7 +33,6 @@
#include "audio.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
static const char * const var_names[] = {
"ch", ///< the value of the current channel

View File

@ -28,7 +28,6 @@
#include "avfilter.h"
#include "formats.h"
#include "filters.h"
#include "internal.h"
enum OutModes {
IN_MODE,

View File

@ -19,7 +19,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{

View File

@ -33,7 +33,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#define MAX_SPLITS 16
#define MAX_BANDS MAX_SPLITS + 1

View File

@ -22,7 +22,6 @@
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "audio.h"
typedef struct LFOContext {

View File

@ -25,7 +25,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
typedef struct ChanDelay {
int64_t delay;

View File

@ -22,7 +22,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
enum FilterType {
DC_TYPE,

View File

@ -20,7 +20,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct ADerivativeContext {
const AVClass *class;

View File

@ -28,7 +28,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
static const char * const var_names[] = {
"ch", ///< the value of the current channel

View File

@ -25,7 +25,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
typedef struct AudioEchoContext {
const AVClass *class;

View File

@ -22,7 +22,6 @@
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "audio.h"
typedef struct ChannelParams {

View File

@ -29,7 +29,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct AudioFadeContext {
const AVClass *class;

View File

@ -19,7 +19,6 @@
*/
#include "libavutil/mem.h"
#include "libavfilter/internal.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/opt.h"

View File

@ -33,7 +33,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct AFormatContext {
const AVClass *class;

View File

@ -29,7 +29,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
typedef struct ThreadData {

View File

@ -32,7 +32,6 @@
#include "filters.h"
#include "audio.h"
#include "formats.h"
#include "internal.h"
#define SWR_CH_MAX 64

View File

@ -26,7 +26,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct AudioMultiplyContext {
const AVClass *class;

View File

@ -28,7 +28,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "audio.h"
#include "video.h"

View File

@ -26,7 +26,6 @@
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
typedef struct AudioNLMDNDSPContext {
float (*compute_distance_ssd)(const float *f1, const float *f2, ptrdiff_t K);

View File

@ -28,7 +28,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
enum OutModes {
IN_MODE,

View File

@ -25,7 +25,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "libavutil/internal.h"
const AVFilter ff_af_anull = {

View File

@ -32,7 +32,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
typedef struct APadContext {
const AVClass *class;

View File

@ -29,7 +29,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "generate_wave_table.h"
typedef struct AudioPhaserContext {

View File

@ -25,7 +25,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct AudioPsyClipContext {
const AVClass *class;

View File

@ -24,7 +24,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "audio.h"
enum PulsatorModes { SINE, TRIANGLE, SQUARE, SAWUP, SAWDOWN, NB_MODES };

View File

@ -34,7 +34,6 @@
#include "audio.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct AResampleContext {
const AVClass *class;

View File

@ -27,7 +27,6 @@
#include "avfilter.h"
#include "formats.h"
#include "filters.h"
#include "internal.h"
enum OutModes {
IN_MODE,

View File

@ -26,7 +26,6 @@
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct ChanStats {
double u;

View File

@ -29,7 +29,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
typedef struct ASNSContext {
const AVClass *class;

View File

@ -22,7 +22,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct ASetRateContext {
const AVClass *class;

View File

@ -39,7 +39,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct AShowInfoContext {
/**

View File

@ -27,7 +27,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "window_func.h"
#define MEASURE_ALL UINT_MAX

View File

@ -28,7 +28,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct ASRContext {
const AVClass *class;

View File

@ -48,7 +48,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
/**
* A fragment of audio waveform

View File

@ -34,7 +34,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
enum FilterType {
biquad,

View File

@ -31,7 +31,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef void (*filter_func)(t_bs2bdp bs2bdp, uint8_t *sample, int n);

View File

@ -36,7 +36,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
struct ChannelMap {
int in_channel;

View File

@ -35,7 +35,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "generate_wave_table.h"
typedef struct ChorusContext {

View File

@ -36,7 +36,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct ChanParam {
double attack;

View File

@ -24,7 +24,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
typedef struct CompensationDelayContext {
const AVClass *class;

View File

@ -24,7 +24,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
typedef struct DCShiftContext {
const AVClass *class;

View File

@ -26,7 +26,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#define BINS 32768

View File

@ -41,7 +41,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
static const char * const var_names[] = {
"ch", ///< the value of the current channel

View File

@ -27,7 +27,6 @@
#include "libavutil/tx.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "audio.h"
#define RDFT_BITS_MIN 4

View File

@ -24,7 +24,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
#include "generate_wave_table.h"
#define INTERPOLATION_LINEAR 0

View File

@ -49,7 +49,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "audio.h"
#define PEAK_EXT_LEVEL 0x5981 /* + sizeof(peaktab)-1 = 0x8000 */

View File

@ -30,7 +30,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "audio.h"
#define TIME_DOMAIN 0

View File

@ -34,7 +34,6 @@
#include "avfilter.h"
#include "formats.h"
#include "filters.h"
#include "internal.h"
typedef struct ChannelMap {
int input; ///< input stream index

View File

@ -36,7 +36,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct MetaItem {
int64_t pts;

View File

@ -39,7 +39,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct URITable {
char **uris;

View File

@ -36,7 +36,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct CompandSegment {
double x, y;

View File

@ -36,7 +36,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#define MAX_CHANNELS 64

View File

@ -32,7 +32,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#define HISTOGRAM_SLOTS 12000
#define BUTTER_ORDER 2

View File

@ -25,7 +25,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct RubberBandContext {
const AVClass *class;

View File

@ -31,7 +31,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
typedef struct SilenceDetectContext {
const AVClass *class;

View File

@ -29,7 +29,6 @@
#include "audio.h"
#include "filters.h"
#include "avfilter.h"
#include "internal.h"
enum SilenceDetect {
D_AVG,

View File

@ -37,7 +37,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "audio.h"
#define TIME_DOMAIN 0

View File

@ -26,7 +26,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#define NBANDS 17
#define M 15

View File

@ -28,7 +28,6 @@
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
#include "formats.h"
#include "window_func.h"

View File

@ -22,7 +22,6 @@
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "audio.h"
typedef struct TremoloContext {

View File

@ -22,7 +22,6 @@
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "audio.h"
#include "generate_wave_table.h"

View File

@ -24,7 +24,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include <float.h>

View File

@ -37,7 +37,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "af_volume.h"
static const char * const precision_str[] = {

View File

@ -20,7 +20,6 @@
#include "libavutil/tx.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"
#undef ctype

View File

@ -25,7 +25,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct AFDelaySrcContext {
const AVClass *class;

View File

@ -29,7 +29,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "window_func.h"
typedef struct AudioFIRSourceContext {

View File

@ -24,7 +24,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "libavutil/lfg.h"
#include "libavutil/random_seed.h"

View File

@ -34,7 +34,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct ANullContext {
const AVClass *class;

View File

@ -35,7 +35,6 @@
#include "filters.h"
#include "audio.h"
#include "formats.h"
#include "internal.h"
typedef struct FliteContext {
const AVClass *class;

View File

@ -24,7 +24,6 @@
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "filters.h"
#include "window_func.h"

View File

@ -31,7 +31,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct SincContext {
const AVClass *class;

View File

@ -29,7 +29,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
typedef struct SineContext {
const AVClass *class;

View File

@ -29,7 +29,6 @@
#include "avfilter_internal.h"
#include "filters.h"
#include "framepool.h"
#include "internal.h"
const AVFilterPad ff_audio_default_filterpad[1] = {
{

View File

@ -27,7 +27,6 @@
#include "formats.h"
#include "audio.h"
#include "video.h"
#include "internal.h"
typedef struct Audio3dScopeContext {
const AVClass *class;

View File

@ -27,7 +27,6 @@
#include "formats.h"
#include "audio.h"
#include "video.h"
#include "internal.h"
typedef struct AudioBitScopeContext {
const AVClass *class;

View File

@ -25,7 +25,6 @@
#include "filters.h"
#include "formats.h"
#include "video.h"
#include "internal.h"
enum DisplayScale { LINEAR, SQRT, CBRT, LOG, RLOG, NB_SCALES };
enum AmplitudeScale { ALINEAR, ALOG, NB_ASCALES };

View File

@ -35,7 +35,6 @@
#include "formats.h"
#include "audio.h"
#include "video.h"
#include "internal.h"
typedef struct AudioPhaseMeterContext {
const AVClass *class;

View File

@ -32,7 +32,6 @@
#include "formats.h"
#include "audio.h"
#include "video.h"
#include "internal.h"
enum VectorScopeMode {
LISSAJOUS,

View File

@ -30,7 +30,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "audio.h"

View File

@ -31,7 +31,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "lavfutils.h"
#include "lswsutils.h"
#include "video.h"

View File

@ -23,7 +23,6 @@
#include "libavutil/tx.h"
#include "avfilter.h"
#include "internal.h"
typedef struct Coeffs {
float *val;

View File

@ -33,7 +33,6 @@
#include "video.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
enum FrequencyScale {
FSCALE_LINEAR,

View File

@ -45,7 +45,6 @@
#include "video.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "window_func.h"
enum DisplayMode { COMBINED, SEPARATE, NB_MODES };

View File

@ -28,7 +28,6 @@
#include "filters.h"
#include "formats.h"
#include "video.h"
#include "internal.h"
static const char *const var_names[] = { "VOLUME", "CHANNEL", "PEAK", NULL };
enum { VAR_VOLUME, VAR_CHANNEL, VAR_PEAK, VAR_VARS_NB };

View File

@ -36,7 +36,6 @@
#include "formats.h"
#include "audio.h"
#include "video.h"
#include "internal.h"
enum ShowWavesMode {
MODE_POINT,

View File

@ -42,7 +42,6 @@
#include "formats.h"
#include "framequeue.h"
#include "framepool.h"
#include "internal.h"
#include "video.h"
static void tlog_ref(void *ctx, AVFrame *ref, int end)

View File

@ -161,4 +161,27 @@ int ff_graph_thread_init(FFFilterGraph *graph);
void ff_graph_thread_free(FFFilterGraph *graph);
/**
* Negotiate the media format, dimensions, etc of all inputs to a filter.
*
* @param filter the filter to negotiate the properties for its inputs
* @return zero on successful negotiation
*/
int ff_filter_config_links(AVFilterContext *filter);
/* misc trace functions */
#define FF_TPRINTF_START(ctx, func) ff_tlog(NULL, "%-16s: ", #func)
#ifdef TRACE
void ff_tlog_link(void *ctx, AVFilterLink *link, int end);
#else
#define ff_tlog_link(ctx, link, end) do { } while(0)
#endif
/**
* Run one round of processing on a filter graph.
*/
int ff_filter_graph_run_once(AVFilterGraph *graph);
#endif /* AVFILTER_AVFILTER_INTERNAL_H */

View File

@ -39,7 +39,6 @@
#include "filters.h"
#include "formats.h"
#include "framequeue.h"
#include "internal.h"
#include "video.h"
#define OFFSET(x) offsetof(AVFilterGraph, x)

View File

@ -21,7 +21,6 @@
#include "libavutil/common.h"
#include "libavutil/intfloat.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"
#include "blend.h"

View File

@ -37,7 +37,6 @@
#include "filters.h"
#include "formats.h"
#include "framequeue.h"
#include "internal.h"
#include "video.h"
typedef struct BufferSinkContext {

View File

@ -35,10 +35,10 @@
#include "libavutil/samplefmt.h"
#include "libavutil/timestamp.h"
#include "avfilter.h"
#include "avfilter_internal.h"
#include "buffersrc.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
typedef struct BufferSourceContext {

View File

@ -19,7 +19,6 @@
#include "libavutil/mem.h"
#include "libavutil/tx.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"
#undef ctype

View File

@ -31,7 +31,6 @@
#include "libavutil/opt.h"
#include "libavutil/avstring.h"
#include "libavutil/detection_bbox.h"
#include "../internal.h"
#include "safe_queue.h"
#if HAVE_OPENVINO2
#include <openvino/c/openvino.h>

View File

@ -30,7 +30,6 @@
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavcodec/defs.h"
#include "../internal.h"
#include "dnn_io_proc.h"
#include "dnn_backend_common.h"
#include "safe_queue.h"

View File

@ -27,7 +27,6 @@
#include <torch/script.h>
extern "C" {
#include "../internal.h"
#include "dnn_io_proc.h"
#include "dnn_backend_common.h"
#include "libavutil/opt.h"

View File

@ -29,7 +29,6 @@
#include "libavutil/opt.h"
#include "libavfilter/filters.h"
#include "libavfilter/internal.h"
extern const DNNModule ff_dnn_backend_openvino;
extern const DNNModule ff_dnn_backend_tf;

View File

@ -22,7 +22,6 @@
#include "libavutil/avassert.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"
#undef pixel

View File

@ -23,7 +23,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "video.h"
enum BenchAction {

View File

@ -25,7 +25,6 @@
#include "audio.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "video.h"
typedef struct CueContext {

View File

@ -28,7 +28,6 @@
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
typedef struct DrawGraphContext {

Some files were not shown because too many files have changed in this diff Show More