mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter: don't anonymously typedef structs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
0fbc7a2169
commit
ed93ed5ee3
@ -53,7 +53,7 @@ enum var_name {
|
|||||||
VAR_VARS_NB
|
VAR_VARS_NB
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct EvalContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
char *sample_rate_str;
|
char *sample_rate_str;
|
||||||
int sample_rate;
|
int sample_rate;
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct AudioFadeContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int type;
|
int type;
|
||||||
int curve, curve2;
|
int curve, curve2;
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
#define SWR_CH_MAX 64
|
#define SWR_CH_MAX 64
|
||||||
|
|
||||||
typedef struct {
|
typedef struct AMergeContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int nb_inputs;
|
int nb_inputs;
|
||||||
int route[SWR_CH_MAX]; /**< channels routing, see copy_samples */
|
int route[SWR_CH_MAX]; /**< channels routing, see copy_samples */
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "audio.h"
|
#include "audio.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct APadContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int64_t next_pts;
|
int64_t next_pts;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "audio.h"
|
#include "audio.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct AResampleContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int sample_rate_arg;
|
int sample_rate_arg;
|
||||||
double ratio;
|
double ratio;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ASNSContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int nb_out_samples; ///< how many samples to output
|
int nb_out_samples; ///< how many samples to output
|
||||||
AVAudioFifo *fifo; ///< samples are queued here
|
AVAudioFifo *fifo; ///< samples are queued here
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ASetRateContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int sample_rate;
|
int sample_rate;
|
||||||
int rescale_pts;
|
int rescale_pts;
|
||||||
|
@ -42,7 +42,7 @@ typedef struct ChannelStats {
|
|||||||
uint64_t nb_samples;
|
uint64_t nb_samples;
|
||||||
} ChannelStats;
|
} ChannelStats;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct AudioStatsContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
ChannelStats *chstats;
|
ChannelStats *chstats;
|
||||||
int nb_channels;
|
int nb_channels;
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
/**
|
/**
|
||||||
* A fragment of audio waveform
|
* A fragment of audio waveform
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct AudioFragment {
|
||||||
// index of the first sample of this fragment in the overall waveform;
|
// index of the first sample of this fragment in the overall waveform;
|
||||||
// 0: input sample position
|
// 0: input sample position
|
||||||
// 1: output sample position
|
// 1: output sample position
|
||||||
@ -84,7 +84,7 @@ typedef enum {
|
|||||||
/**
|
/**
|
||||||
* Filter state machine
|
* Filter state machine
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct ATempoContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
// ring-buffer of input samples, necessary because some times
|
// ring-buffer of input samples, necessary because some times
|
||||||
|
@ -71,7 +71,7 @@ static const int8_t filt[NUMTAPS] = {
|
|||||||
0, -5,
|
0, -5,
|
||||||
4, 0};
|
4, 0};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct EarwaxContext {
|
||||||
int16_t taps[NUMTAPS * 2];
|
int16_t taps[NUMTAPS * 2];
|
||||||
} EarwaxContext;
|
} EarwaxContext;
|
||||||
|
|
||||||
|
@ -52,17 +52,17 @@ enum Scale {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define NB_GAIN_ENTRY_MAX 4096
|
#define NB_GAIN_ENTRY_MAX 4096
|
||||||
typedef struct {
|
typedef struct GainEntry {
|
||||||
double freq;
|
double freq;
|
||||||
double gain;
|
double gain;
|
||||||
} GainEntry;
|
} GainEntry;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct OverlapIndex {
|
||||||
int buf_idx;
|
int buf_idx;
|
||||||
int overlap_idx;
|
int overlap_idx;
|
||||||
} OverlapIndex;
|
} OverlapIndex;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FIREqualizerContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
RDFTContext *analysis_rdft;
|
RDFTContext *analysis_rdft;
|
||||||
|
@ -837,7 +837,7 @@ static const int32_t gaintab[] = {
|
|||||||
/** tone generator: sample_number, frequency, sample_rate, amplitude */
|
/** tone generator: sample_number, frequency, sample_rate, amplitude */
|
||||||
#define TONEGEN16(sn, f, sr, a) (int16_t)(sin((6.28318530718 * (sn) * (f)) /(sr)) * (a) * 0x7fff)
|
#define TONEGEN16(sn, f, sr, a) (int16_t)(sin((6.28318530718 * (sn) * (f)) /(sr)) * (a) * 0x7fff)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct hdcd_state {
|
||||||
uint64_t window;
|
uint64_t window;
|
||||||
unsigned char readahead;
|
unsigned char readahead;
|
||||||
|
|
||||||
@ -904,7 +904,7 @@ static const char * const pf_str[] = {
|
|||||||
"?", "A", "B", "A+B"
|
"?", "A", "B", "A+B"
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct hdcd_detection_data {
|
||||||
hdcd_dv hdcd_detected;
|
hdcd_dv hdcd_detected;
|
||||||
hdcd_pf packet_type;
|
hdcd_pf packet_type;
|
||||||
int total_packets; /**< valid packets */
|
int total_packets; /**< valid packets */
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct VolDetectContext {
|
||||||
/**
|
/**
|
||||||
* Number of samples at each PCM value.
|
* Number of samples at each PCM value.
|
||||||
* histogram[0x8000 + i] is the number of samples at value i.
|
* histogram[0x8000 + i] is the number of samples at value i.
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "libavutil/lfg.h"
|
#include "libavutil/lfg.h"
|
||||||
#include "libavutil/random_seed.h"
|
#include "libavutil/random_seed.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ANoiseSrcContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int sample_rate;
|
int sample_rate;
|
||||||
double amplitude;
|
double amplitude;
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ANullContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
char *channel_layout_str;
|
char *channel_layout_str;
|
||||||
uint64_t channel_layout;
|
uint64_t channel_layout;
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FliteContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
char *voice_str;
|
char *voice_str;
|
||||||
char *textfile;
|
char *textfile;
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SineContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
double frequency;
|
double frequency;
|
||||||
double beep_factor;
|
double beep_factor;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#define TYPE_ALL 2
|
#define TYPE_ALL 2
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ConcatContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
unsigned nb_streams[TYPE_ALL]; /**< number of out streams of each type */
|
unsigned nb_streams[TYPE_ALL]; /**< number of out streams of each type */
|
||||||
unsigned nb_segments;
|
unsigned nb_segments;
|
||||||
|
@ -25,16 +25,16 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Coeffs {
|
||||||
FFTSample *val;
|
FFTSample *val;
|
||||||
int start, len;
|
int start, len;
|
||||||
} Coeffs;
|
} Coeffs;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct RGBFloat {
|
||||||
float r, g, b;
|
float r, g, b;
|
||||||
} RGBFloat;
|
} RGBFloat;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct YUVFloat {
|
||||||
float y, u, v;
|
float y, u, v;
|
||||||
} YUVFloat;
|
} YUVFloat;
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ typedef union {
|
|||||||
YUVFloat yuv;
|
YUVFloat yuv;
|
||||||
} ColorFloat;
|
} ColorFloat;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ShowCQTContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
AVFilterContext *ctx;
|
AVFilterContext *ctx;
|
||||||
AVFrame *axis_frame;
|
AVFrame *axis_frame;
|
||||||
|
@ -48,7 +48,7 @@ enum ColorMode { CHANNEL, INTENSITY, RAINBOW, MORELAND, NEBULAE, FIRE, FIERY,
|
|||||||
enum SlideMode { REPLACE, SCROLL, FULLFRAME, RSCROLL, NB_SLIDES };
|
enum SlideMode { REPLACE, SCROLL, FULLFRAME, RSCROLL, NB_SLIDES };
|
||||||
enum Orientation { VERTICAL, HORIZONTAL, NB_ORIENTATIONS };
|
enum Orientation { VERTICAL, HORIZONTAL, NB_ORIENTATIONS };
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ShowSpectrumContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int w, h;
|
int w, h;
|
||||||
AVFrame *outpicref;
|
AVFrame *outpicref;
|
||||||
|
@ -55,7 +55,7 @@ struct frame_node {
|
|||||||
struct frame_node *next;
|
struct frame_node *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ShowWavesContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int w, h;
|
int w, h;
|
||||||
AVRational rate;
|
AVRational rate;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FFBoundingBox {
|
||||||
int x1, x2, y1, y2;
|
int x1, x2, y1, y2;
|
||||||
} FFBoundingBox;
|
} FFBoundingBox;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flag
|
|||||||
/**
|
/**
|
||||||
* Struct to use for initializing a buffersink context.
|
* Struct to use for initializing a buffersink context.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct AVBufferSinkParams {
|
||||||
const enum AVPixelFormat *pixel_fmts; ///< list of allowed pixel formats, terminated by AV_PIX_FMT_NONE
|
const enum AVPixelFormat *pixel_fmts; ///< list of allowed pixel formats, terminated by AV_PIX_FMT_NONE
|
||||||
} AVBufferSinkParams;
|
} AVBufferSinkParams;
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ AVBufferSinkParams *av_buffersink_params_alloc(void);
|
|||||||
/**
|
/**
|
||||||
* Struct to use for initializing an abuffersink context.
|
* Struct to use for initializing an abuffersink context.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct AVABufferSinkParams {
|
||||||
const enum AVSampleFormat *sample_fmts; ///< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE
|
const enum AVSampleFormat *sample_fmts; ///< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE
|
||||||
const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1
|
const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1
|
||||||
const int *channel_counts; ///< list of allowed channel counts, terminated by -1
|
const int *channel_counts; ///< list of allowed channel counts, terminated by -1
|
||||||
|
@ -37,17 +37,17 @@ enum SearchMethod {
|
|||||||
SEARCH_COUNT
|
SEARCH_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct IntMotionVector {
|
||||||
int x; ///< Horizontal shift
|
int x; ///< Horizontal shift
|
||||||
int y; ///< Vertical shift
|
int y; ///< Vertical shift
|
||||||
} IntMotionVector;
|
} IntMotionVector;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct MotionVector {
|
||||||
double x; ///< Horizontal shift
|
double x; ///< Horizontal shift
|
||||||
double y; ///< Vertical shift
|
double y; ///< Vertical shift
|
||||||
} MotionVector;
|
} MotionVector;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Transform {
|
||||||
MotionVector vec; ///< Motion vector
|
MotionVector vec; ///< Motion vector
|
||||||
double angle; ///< Angle of rotation
|
double angle; ///< Angle of rotation
|
||||||
double zoom; ///< Zoom percentage
|
double zoom; ///< Zoom percentage
|
||||||
@ -55,7 +55,7 @@ typedef struct {
|
|||||||
|
|
||||||
#if CONFIG_OPENCL
|
#if CONFIG_OPENCL
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DeshakeOpenclContext {
|
||||||
cl_command_queue command_queue;
|
cl_command_queue command_queue;
|
||||||
cl_program program;
|
cl_program program;
|
||||||
cl_kernel kernel_luma;
|
cl_kernel kernel_luma;
|
||||||
@ -73,7 +73,7 @@ typedef struct {
|
|||||||
|
|
||||||
#define MAX_R 64
|
#define MAX_R 64
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DeshakeContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search
|
int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search
|
||||||
double *angles; ///< Scratch buffer for block angles
|
double *angles; ///< Scratch buffer for block angles
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "deshake.h"
|
#include "deshake.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct float4 {
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
float z;
|
float z;
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "framesync.h"
|
#include "framesync.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FFDualInputContext {
|
||||||
FFFrameSync fs;
|
FFFrameSync fs;
|
||||||
|
|
||||||
AVFrame *(*process)(AVFilterContext *ctx, AVFrame *main, const AVFrame *second);
|
AVFrame *(*process)(AVFilterContext *ctx, AVFrame *main, const AVFrame *second);
|
||||||
|
@ -100,7 +100,7 @@ struct FFEBUR128StateInternal;
|
|||||||
*
|
*
|
||||||
* You should not need to modify this struct directly.
|
* You should not need to modify this struct directly.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct FFEBUR128State {
|
||||||
int mode; /**< The current mode. */
|
int mode; /**< The current mode. */
|
||||||
unsigned int channels; /**< The number of channels. */
|
unsigned int channels; /**< The number of channels. */
|
||||||
unsigned long samplerate; /**< The sample rate. */
|
unsigned long samplerate; /**< The sample rate. */
|
||||||
|
@ -28,7 +28,7 @@ enum BenchAction {
|
|||||||
NB_ACTION
|
NB_ACTION
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct BenchContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int action;
|
int action;
|
||||||
int64_t max, min;
|
int64_t max, min;
|
||||||
|
@ -90,7 +90,7 @@ struct integrator {
|
|||||||
|
|
||||||
struct rect { int x, y, w, h; };
|
struct rect { int x, y, w, h; };
|
||||||
|
|
||||||
typedef struct {
|
typedef struct EBUR128Context {
|
||||||
const AVClass *class; ///< AVClass context for log and options purpose
|
const AVClass *class; ///< AVClass context for log and options purpose
|
||||||
|
|
||||||
/* peak metering */
|
/* peak metering */
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "audio.h"
|
#include "audio.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct InterleaveContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int nb_inputs;
|
int nb_inputs;
|
||||||
struct FFBufQueue *queues;
|
struct FFBufQueue *queues;
|
||||||
|
@ -33,7 +33,7 @@ enum mode {
|
|||||||
NB_MODES
|
NB_MODES
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct PermsContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
AVLFG lfg;
|
AVLFG lfg;
|
||||||
int64_t random_seed;
|
int64_t random_seed;
|
||||||
|
@ -55,13 +55,13 @@ static inline char *make_command_flags_str(AVBPrint *pbuf, int flags)
|
|||||||
return pbuf->str;
|
return pbuf->str;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Command {
|
||||||
int flags;
|
int flags;
|
||||||
char *target, *command, *arg;
|
char *target, *command, *arg;
|
||||||
int index;
|
int index;
|
||||||
} Command;
|
} Command;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Interval {
|
||||||
int64_t start_ts; ///< start timestamp expressed as microseconds units
|
int64_t start_ts; ///< start timestamp expressed as microseconds units
|
||||||
int64_t end_ts; ///< end timestamp expressed as microseconds units
|
int64_t end_ts; ///< end timestamp expressed as microseconds units
|
||||||
int index; ///< unique index for these interval commands
|
int index; ///< unique index for these interval commands
|
||||||
@ -70,7 +70,7 @@ typedef struct {
|
|||||||
int enabled; ///< current time detected inside this interval
|
int enabled; ///< current time detected inside this interval
|
||||||
} Interval;
|
} Interval;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SendCmdContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
Interval *intervals;
|
Interval *intervals;
|
||||||
int nb_intervals;
|
int nb_intervals;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "audio.h"
|
#include "audio.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ZMQContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
void *zmq;
|
void *zmq;
|
||||||
void *responder;
|
void *responder;
|
||||||
@ -86,7 +86,7 @@ static void av_cold uninit(AVFilterContext *ctx)
|
|||||||
zmq_ctx_destroy(zmq->zmq);
|
zmq_ctx_destroy(zmq->zmq);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Command {
|
||||||
char *target, *command, *arg;
|
char *target, *command, *arg;
|
||||||
} Command;
|
} Command;
|
||||||
|
|
||||||
|
@ -51,17 +51,17 @@ enum formats {
|
|||||||
NB_FORMATS
|
NB_FORMATS
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Point {
|
||||||
uint8_t x;
|
uint8_t x;
|
||||||
uint8_t y;
|
uint8_t y;
|
||||||
} Point;
|
} Point;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Block {
|
||||||
Point up;
|
Point up;
|
||||||
Point to;
|
Point to;
|
||||||
} Block;
|
} Block;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ElemCat {
|
||||||
int av_elem; /* average element category */
|
int av_elem; /* average element category */
|
||||||
short left_count; /* count of blocks that will be added together */
|
short left_count; /* count of blocks that will be added together */
|
||||||
short block_count; /* count of blocks per element */
|
short block_count; /* count of blocks per element */
|
||||||
@ -99,7 +99,7 @@ typedef struct MatchingInfo {
|
|||||||
struct MatchingInfo* next;
|
struct MatchingInfo* next;
|
||||||
} MatchingInfo;
|
} MatchingInfo;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct StreamContext {
|
||||||
AVRational time_base;
|
AVRational time_base;
|
||||||
/* needed for xml_export */
|
/* needed for xml_export */
|
||||||
int w; /* height */
|
int w; /* height */
|
||||||
@ -124,7 +124,7 @@ typedef struct {
|
|||||||
int exported; /* boolean whether stream already exported */
|
int exported; /* boolean whether stream already exported */
|
||||||
} StreamContext;
|
} StreamContext;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SignatureContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
/* input parameters */
|
/* input parameters */
|
||||||
int mode;
|
int mode;
|
||||||
|
@ -187,7 +187,7 @@ static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont
|
|||||||
FineSignature *b[COARSE_SIZE];
|
FineSignature *b[COARSE_SIZE];
|
||||||
} pairs[COARSE_SIZE];
|
} pairs[COARSE_SIZE];
|
||||||
|
|
||||||
typedef struct {
|
typedef struct hspace_elem {
|
||||||
int dist;
|
int dist;
|
||||||
size_t score;
|
size_t score;
|
||||||
FineSignature *a;
|
FineSignature *a;
|
||||||
|
@ -46,7 +46,7 @@ enum TInterlaceMode {
|
|||||||
MODE_NB,
|
MODE_NB,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct TInterlaceContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int mode; ///< TInterlaceMode, interlace mode selected
|
int mode; ///< TInterlaceMode, interlace mode selected
|
||||||
AVRational preout_time_base;
|
AVRational preout_time_base;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#if CONFIG_OPENCL
|
#if CONFIG_OPENCL
|
||||||
|
|
||||||
typedef struct {
|
typedef struct UnsharpOpenclContext {
|
||||||
cl_command_queue command_queue;
|
cl_command_queue command_queue;
|
||||||
cl_program program;
|
cl_program program;
|
||||||
cl_kernel kernel_default;
|
cl_kernel kernel_default;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
enum { Y, U, V, A };
|
enum { Y, U, V, A };
|
||||||
|
|
||||||
typedef struct {
|
typedef struct AlphaMergeContext {
|
||||||
int is_packed_rgb;
|
int is_packed_rgb;
|
||||||
uint8_t rgba_map[4];
|
uint8_t rgba_map[4];
|
||||||
struct FFBufQueue queue_main;
|
struct FFBufQueue queue_main;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "bbox.h"
|
#include "bbox.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct BBoxContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int min_val;
|
int min_val;
|
||||||
} BBoxContext;
|
} BBoxContext;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct BlackDetectContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
double black_min_duration_time; ///< minimum duration of detected black, in seconds
|
double black_min_duration_time; ///< minimum duration of detected black, in seconds
|
||||||
int64_t black_min_duration; ///< minimum duration of detected black, expressed in timebase units
|
int64_t black_min_duration; ///< minimum duration of detected black, expressed in timebase units
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#define FRAME_TYPE_P (1<<1)
|
#define FRAME_TYPE_P (1<<1)
|
||||||
#define FRAME_TYPE_B (1<<2)
|
#define FRAME_TYPE_B (1<<2)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct CodecViewContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
unsigned mv;
|
unsigned mv;
|
||||||
unsigned frame_type;
|
unsigned frame_type;
|
||||||
|
@ -31,13 +31,13 @@
|
|||||||
#define B 2
|
#define B 2
|
||||||
#define A 3
|
#define A 3
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Range {
|
||||||
double shadows;
|
double shadows;
|
||||||
double midtones;
|
double midtones;
|
||||||
double highlights;
|
double highlights;
|
||||||
} Range;
|
} Range;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ColorBalanceContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
Range cyan_red;
|
Range cyan_red;
|
||||||
Range magenta_green;
|
Range magenta_green;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#define B 2
|
#define B 2
|
||||||
#define A 3
|
#define A 3
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ColorChannelMixerContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
double rr, rg, rb, ra;
|
double rr, rg, rb, ra;
|
||||||
double gr, gg, gb, ga;
|
double gr, gg, gb, ga;
|
||||||
|
@ -32,12 +32,12 @@
|
|||||||
#define B 2
|
#define B 2
|
||||||
#define A 3
|
#define A 3
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Range {
|
||||||
double in_min, in_max;
|
double in_min, in_max;
|
||||||
double out_min, out_max;
|
double out_min, out_max;
|
||||||
} Range;
|
} Range;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ColorLevelsContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
Range range[4];
|
Range range[4];
|
||||||
int nb_comp;
|
int nb_comp;
|
||||||
|
@ -58,7 +58,7 @@ enum ColorMode {
|
|||||||
COLOR_MODE_COUNT
|
COLOR_MODE_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ColorMatrixContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int yuv_convert[25][3][3];
|
int yuv_convert[25][3][3];
|
||||||
int interlaced;
|
int interlaced;
|
||||||
|
@ -58,7 +58,7 @@ enum preset {
|
|||||||
NB_PRESETS,
|
NB_PRESETS,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct CurvesContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int preset;
|
int preset;
|
||||||
char *comp_points_str[NB_COMP + 1];
|
char *comp_points_str[NB_COMP + 1];
|
||||||
|
@ -34,7 +34,7 @@ struct qitem {
|
|||||||
int64_t totdiff;
|
int64_t totdiff;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DecimateContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
struct qitem *queue; ///< window of cycle frames and the associated data diff
|
struct qitem *queue; ///< window of cycle frames and the associated data diff
|
||||||
int fid; ///< current frame id in the queue
|
int fid; ///< current frame id in the queue
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DejudderContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int64_t *ringbuff;
|
int64_t *ringbuff;
|
||||||
int i1, i2, i3, i4;
|
int i1, i2, i3, i4;
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DetelecineContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int first_field;
|
int first_field;
|
||||||
char *pattern;
|
char *pattern;
|
||||||
|
@ -44,7 +44,7 @@ struct plane_info {
|
|||||||
char *directions;
|
char *directions;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct EdgeDetectContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
struct plane_info planes[3];
|
struct plane_info planes[3];
|
||||||
int nb_planes;
|
int nb_planes;
|
||||||
|
@ -55,7 +55,7 @@ typedef struct EQParameters {
|
|||||||
|
|
||||||
} EQParameters;
|
} EQParameters;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct EQContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
EQParameters param[3];
|
EQParameters param[3];
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#define PLANE_U 0x20
|
#define PLANE_U 0x20
|
||||||
#define PLANE_V 0x40
|
#define PLANE_V 0x40
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ExtractPlanesContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int requested_planes;
|
int requested_planes;
|
||||||
int map[4];
|
int map[4];
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#define MAX_PLANES 4
|
#define MAX_PLANES 4
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FFTFILTContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
RDFTContext *rdft;
|
RDFTContext *rdft;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
enum FieldType { FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM };
|
enum FieldType { FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM };
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FieldContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int type; ///< FieldType
|
int type; ///< FieldType
|
||||||
int nb_planes; ///< number of planes of the current format
|
int nb_planes; ///< number of planes of the current format
|
||||||
|
@ -72,7 +72,7 @@ enum comb_dbg {
|
|||||||
NB_COMBDBG
|
NB_COMBDBG
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FieldMatchContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
AVFrame *prv, *src, *nxt; ///< main sliding window of 3 frames
|
AVFrame *prv, *src, *nxt; ///< main sliding window of 3 frames
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "libavutil/pixdesc.h"
|
#include "libavutil/pixdesc.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct GEQContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
AVExpr *e[4]; ///< expressions for each plane
|
AVExpr *e[4]; ///< expressions for each plane
|
||||||
char *expr_str[4+3]; ///< expression strings for each plane
|
char *expr_str[4+3]; ///< expression strings for each plane
|
||||||
|
@ -54,7 +54,7 @@ enum HisteqAntibanding {
|
|||||||
HISTEQ_ANTIBANDING_NB,
|
HISTEQ_ANTIBANDING_NB,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct HisteqContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
float strength;
|
float strength;
|
||||||
float intensity;
|
float intensity;
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
|
typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct HQXContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int n;
|
int n;
|
||||||
hqxfunc_t func;
|
hqxfunc_t func;
|
||||||
|
@ -57,7 +57,7 @@ enum var_name {
|
|||||||
VAR_NB
|
VAR_NB
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct HueContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
float hue_deg; /* hue expressed in degrees */
|
float hue_deg; /* hue expressed in degrees */
|
||||||
float hue; /* hue expressed in radians */
|
float hue; /* hue expressed in radians */
|
||||||
|
@ -39,7 +39,7 @@ typedef enum {
|
|||||||
REPEAT_BOTTOM,
|
REPEAT_BOTTOM,
|
||||||
} RepeatedField;
|
} RepeatedField;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct IDETContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
float interlace_threshold;
|
float interlace_threshold;
|
||||||
float progressive_threshold;
|
float progressive_threshold;
|
||||||
|
@ -36,7 +36,7 @@ enum FilterMode {
|
|||||||
MODE_DEINTERLEAVE
|
MODE_DEINTERLEAVE
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct IlContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int luma_mode, chroma_mode, alpha_mode; ///<FilterMode
|
int luma_mode, chroma_mode, alpha_mode; ///<FilterMode
|
||||||
int luma_swap, chroma_swap, alpha_swap;
|
int luma_swap, chroma_swap, alpha_swap;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct KerndeintContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int frame; ///< frame count, starting from 0
|
int frame; ///< frame count, starting from 0
|
||||||
int thresh, map, order, sharp, twoway;
|
int thresh, map, order, sharp, twoway;
|
||||||
|
@ -69,7 +69,7 @@ enum MCDeintParity {
|
|||||||
PARITY_BFF = 1, ///< bottom field first
|
PARITY_BFF = 1, ///< bottom field first
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct MCDeintContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int mode; ///< MCDeintMode
|
int mode; ///< MCDeintMode
|
||||||
int parity; ///< MCDeintParity
|
int parity; ///< MCDeintParity
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DecimateContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int lo, hi; ///< lower and higher threshold number of differences
|
int lo, hi; ///< lower and higher threshold number of differences
|
||||||
///< values for 8x8 blocks
|
///< values for 8x8 blocks
|
||||||
|
@ -47,7 +47,7 @@ struct weighted_avg {
|
|||||||
#define WEIGHT_LUT_NBITS 9
|
#define WEIGHT_LUT_NBITS 9
|
||||||
#define WEIGHT_LUT_SIZE (1<<WEIGHT_LUT_NBITS)
|
#define WEIGHT_LUT_SIZE (1<<WEIGHT_LUT_NBITS)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct NLMeansContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int nb_planes;
|
int nb_planes;
|
||||||
int chroma_w, chroma_h;
|
int chroma_w, chroma_h;
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#define NOISE_AVERAGED 8
|
#define NOISE_AVERAGED 8
|
||||||
#define NOISE_PATTERN 16
|
#define NOISE_PATTERN 16
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FilterParams {
|
||||||
int strength;
|
int strength;
|
||||||
unsigned flags;
|
unsigned flags;
|
||||||
AVLFG lfg;
|
AVLFG lfg;
|
||||||
@ -45,7 +45,7 @@ typedef struct {
|
|||||||
int rand_shift_init;
|
int rand_shift_init;
|
||||||
} FilterParams;
|
} FilterParams;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct NoiseContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int nb_planes;
|
int nb_planes;
|
||||||
int bytewidth[4];
|
int bytewidth[4];
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct OWDenoiseContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
double luma_strength;
|
double luma_strength;
|
||||||
double chroma_strength;
|
double chroma_strength;
|
||||||
|
@ -60,7 +60,7 @@ enum {
|
|||||||
#define NBITS 5
|
#define NBITS 5
|
||||||
#define HIST_SIZE (1<<(3*NBITS))
|
#define HIST_SIZE (1<<(3*NBITS))
|
||||||
|
|
||||||
typedef struct {
|
typedef struct PaletteGenContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
int max_colors;
|
int max_colors;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "libpostproc/postprocess.h"
|
#include "libpostproc/postprocess.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct PPFilterContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
char *subfilters;
|
char *subfilters;
|
||||||
int mode_id;
|
int mode_id;
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
#include "lavfutils.h"
|
#include "lavfutils.h"
|
||||||
#include "lswsutils.h"
|
#include "lswsutils.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct RemovelogoContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
char *filename;
|
char *filename;
|
||||||
/* Stores our collection of masks. The first is for an array of
|
/* Stores our collection of masks. The first is for an array of
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FilterParam {
|
||||||
float radius;
|
float radius;
|
||||||
float pre_filter_radius;
|
float pre_filter_radius;
|
||||||
float strength;
|
float strength;
|
||||||
@ -46,7 +46,7 @@ typedef struct {
|
|||||||
int color_diff_coeff[COLOR_DIFF_COEFF_SIZE];
|
int color_diff_coeff[COLOR_DIFF_COEFF_SIZE];
|
||||||
} FilterParam;
|
} FilterParam;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SabContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
FilterParam luma;
|
FilterParam luma;
|
||||||
FilterParam chroma;
|
FilterParam chroma;
|
||||||
|
@ -77,7 +77,7 @@ typedef struct ThreadData {
|
|||||||
AVFrame *in, *out;
|
AVFrame *in, *out;
|
||||||
} ThreadData;
|
} ThreadData;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SelectiveColorContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int correction_method;
|
int correction_method;
|
||||||
char *opt_cmyk_adjust[NB_RANGES];
|
char *opt_cmyk_adjust[NB_RANGES];
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SeparateFieldsContext {
|
||||||
int nb_planes;
|
int nb_planes;
|
||||||
AVFrame *second;
|
AVFrame *second;
|
||||||
} SeparateFieldsContext;
|
} SeparateFieldsContext;
|
||||||
|
@ -35,7 +35,7 @@ enum SetFieldMode {
|
|||||||
MODE_PROG,
|
MODE_PROG,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SetFieldContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int mode; ///< SetFieldMode
|
int mode; ///< SetFieldMode
|
||||||
} SetFieldContext;
|
} SetFieldContext;
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ShowPaletteContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int size;
|
int size;
|
||||||
} ShowPaletteContext;
|
} ShowPaletteContext;
|
||||||
|
@ -33,7 +33,7 @@ enum FilterMode {
|
|||||||
FILT_NUMB
|
FILT_NUMB
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SignalstatsContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int chromah; // height of chroma plane
|
int chromah; // height of chroma plane
|
||||||
int chromaw; // width of chroma plane
|
int chromaw; // width of chroma plane
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
#define THRESHOLD_MIN -30
|
#define THRESHOLD_MIN -30
|
||||||
#define THRESHOLD_MAX 30
|
#define THRESHOLD_MAX 30
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FilterParam {
|
||||||
float radius;
|
float radius;
|
||||||
float strength;
|
float strength;
|
||||||
int threshold;
|
int threshold;
|
||||||
@ -50,7 +50,7 @@ typedef struct {
|
|||||||
struct SwsContext *filter_context;
|
struct SwsContext *filter_context;
|
||||||
} FilterParam;
|
} FilterParam;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SmartblurContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
FilterParam luma;
|
FilterParam luma;
|
||||||
FilterParam chroma;
|
FilterParam chroma;
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#define MAX_LEVEL 6 /* quality levels */
|
#define MAX_LEVEL 6 /* quality levels */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct SPPContext {
|
||||||
const AVClass *av_class;
|
const AVClass *av_class;
|
||||||
|
|
||||||
int log2_count;
|
int log2_count;
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct AssContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
ASS_Library *library;
|
ASS_Library *library;
|
||||||
ASS_Renderer *renderer;
|
ASS_Renderer *renderer;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct Super2xSaIContext {
|
||||||
/* masks used for two pixels interpolation */
|
/* masks used for two pixels interpolation */
|
||||||
uint32_t hi_pixel_mask;
|
uint32_t hi_pixel_mask;
|
||||||
uint32_t lo_pixel_mask;
|
uint32_t lo_pixel_mask;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct TelecineContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int first_field;
|
int first_field;
|
||||||
char *pattern;
|
char *pattern;
|
||||||
|
@ -38,7 +38,7 @@ struct thumb_frame {
|
|||||||
int histogram[HIST_SIZE]; ///< RGB color distribution histogram of the frame
|
int histogram[HIST_SIZE]; ///< RGB color distribution histogram of the frame
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ThumbContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int n; ///< current frame
|
int n; ///< current frame
|
||||||
int n_frames; ///< number of frames for analysis
|
int n_frames; ///< number of frames for analysis
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "video.h"
|
#include "video.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct TileContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
unsigned w, h;
|
unsigned w, h;
|
||||||
unsigned margin;
|
unsigned margin;
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#define MAX_LEVEL 8 /* quality levels */
|
#define MAX_LEVEL 8 /* quality levels */
|
||||||
#define BLOCK 16
|
#define BLOCK 16
|
||||||
|
|
||||||
typedef struct {
|
typedef struct USPPContext {
|
||||||
const AVClass *av_class;
|
const AVClass *av_class;
|
||||||
int log2_count;
|
int log2_count;
|
||||||
int hsub, vsub;
|
int hsub, vsub;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "vidstabutils.h"
|
#include "vidstabutils.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct StabData {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
VSMotionDetect md;
|
VSMotionDetect md;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "vidstabutils.h"
|
#include "vidstabutils.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct TransformContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
|
|
||||||
VSTransformData td;
|
VSTransformData td;
|
||||||
|
@ -57,7 +57,7 @@ enum EvalMode {
|
|||||||
EVAL_MODE_NB
|
EVAL_MODE_NB
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct VignetteContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
const AVPixFmtDescriptor *desc;
|
const AVPixFmtDescriptor *desc;
|
||||||
int backward;
|
int backward;
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
|
typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct XBRContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int n;
|
int n;
|
||||||
xbrfunc_t func;
|
xbrfunc_t func;
|
||||||
|
@ -42,7 +42,7 @@ VSPixelFormat ff_av2vs_pixfmt(AVFilterContext *ctx, enum AVPixelFormat pf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** struct to hold a valid context for logging from within vid.stab lib */
|
/** struct to hold a valid context for logging from within vid.stab lib */
|
||||||
typedef struct {
|
typedef struct VS2AVLogCtx {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
} VS2AVLogCtx;
|
} VS2AVLogCtx;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct CellAutoContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int w, h;
|
int w, h;
|
||||||
char *filename;
|
char *filename;
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct LifeContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int w, h;
|
int w, h;
|
||||||
char *filename;
|
char *filename;
|
||||||
|
@ -57,7 +57,7 @@ typedef struct Point {
|
|||||||
uint32_t val;
|
uint32_t val;
|
||||||
} Point;
|
} Point;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct MBContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int w, h;
|
int w, h;
|
||||||
AVRational frame_rate;
|
AVRational frame_rate;
|
||||||
|
Loading…
Reference in New Issue
Block a user