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