Unified · Split
| @@ -35,7 +35,7 @@ · 34 unmodified lines | |||
| 35 | #include "buffersink.h" | 35 | #include "buffersink.h" |
| 36 | #include "internal.h" | 36 | #include "internal.h" |
| 37 | 37 | ||
| 38 | typedef struct { | 38 | typedef struct BufferSinkContext { |
| 39 | AVFrame *cur_frame; ///< last frame delivered on the sink | 39 | AVFrame *cur_frame; ///< last frame delivered on the sink |
| 40 | AVAudioFifo *audio_fifo; ///< FIFO for audio samples | 40 | AVAudioFifo *audio_fifo; ///< FIFO for audio samples |
| 41 | int64_t next_pts; ///< interpolating audio pts | 41 | int64_t next_pts; ///< interpolating audio pts |
| @@ -40,7 +40,7 @@ · 39 unmodified lines | |||
| 40 | #include "internal.h" | 40 | #include "internal.h" |
| 41 | #include "video.h" | 41 | #include "video.h" |
| 42 | 42 | ||
| 43 | typedef struct { | 43 | typedef struct BufferSourceContext { |
| 44 | const AVClass *class; | 44 | const AVClass *class; |
| 45 | AVFifoBuffer *fifo; | 45 | AVFifoBuffer *fifo; |
| 46 | AVRational time_base; ///< time_base to set in the output link | 46 | AVRational time_base; ///< time_base to set in the output link |
| @@ -39,7 +39,7 @@ typedef struct Buf { · 38 unmodified lines | |||
| 39 | struct Buf *next; | 39 | struct Buf *next; |
| 40 | } Buf; | 40 | } Buf; |
| 41 | 41 | ||
| 42 | typedef struct { | 42 | typedef struct FifoContext { |
| 43 | Buf root; | 43 | Buf root; |
| 44 | Buf *last; ///< last buffered frame | 44 | Buf *last; ///< last buffered frame |
| 45 | 45 | ||
| @@ -73,7 +73,7 @@ enum var_name { · 72 unmodified lines | |||
| 73 | VAR_VARS_NB | 73 | VAR_VARS_NB |
| 74 | }; | 74 | }; |
| 75 | 75 | ||
| 76 | typedef struct { | 76 | typedef struct SetPTSContext { |
| 77 | const AVClass *class; | 77 | const AVClass *class; |
| 78 | char *expr_str; | 78 | char *expr_str; |
| 79 | AVExpr *expr; | 79 | AVExpr *expr; |
| @@ -57,7 +57,7 @@ enum var_name { · 56 unmodified lines | |||
| 57 | VAR_VARS_NB | 57 | VAR_VARS_NB |
| 58 | }; | 58 | }; |
| 59 | 59 | ||
| 60 | typedef struct { | 60 | typedef struct SetTBContext { |
| 61 | const AVClass *class; | 61 | const AVClass *class; |
| 62 | char *tb_expr; | 62 | char *tb_expr; |
| 63 | double var_values[VAR_VARS_NB]; | 63 | double var_values[VAR_VARS_NB]; |
| @@ -62,7 +62,7 @@ enum var_name { · 61 unmodified lines | |||
| 62 | VARS_NB | 62 | VARS_NB |
| 63 | }; | 63 | }; |
| 64 | 64 | ||
| 65 | typedef struct { | 65 | typedef struct AspectContext { |
| 66 | const AVClass *class; | 66 | const AVClass *class; |
| 67 | AVRational dar; | 67 | AVRational dar; |
| 68 | AVRational sar; | 68 | AVRational sar; |
| @@ -38,7 +38,7 @@ · 37 unmodified lines | |||
| 38 | #include "internal.h" | 38 | #include "internal.h" |
| 39 | #include "video.h" | 39 | #include "video.h" |
| 40 | 40 | ||
| 41 | typedef struct { | 41 | typedef struct BlackFrameContext { |
| 42 | const AVClass *class; | 42 | const AVClass *class; |
| 43 | int bamount; ///< black amount | 43 | int bamount; ///< black amount |
| 44 | int bthresh; ///< black threshold | 44 | int bthresh; ///< black threshold |
| @@ -55,12 +55,12 @@ enum var_name { · 54 unmodified lines | |||
| 55 | VARS_NB | 55 | VARS_NB |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | typedef struct { | 58 | typedef struct FilterParam { |
| 59 | int radius; | 59 | int radius; |
| 60 | int power; | 60 | int power; |
| 61 | } FilterParam; | 61 | } FilterParam; |
| 62 | 62 | ||
| 63 | typedef struct { | 63 | typedef struct BoxBlurContext { |
| 64 | const AVClass *class; | 64 | const AVClass *class; |
| 65 | FilterParam luma_param; | 65 | FilterParam luma_param; |
| 66 | FilterParam chroma_param; | 66 | FilterParam chroma_param; |
| @@ -68,7 +68,7 @@ enum var_name { · 67 unmodified lines | |||
| 68 | VAR_VARS_NB | 68 | VAR_VARS_NB |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | typedef struct { | 71 | typedef struct CropContext { |
| 72 | const AVClass *class; | 72 | const AVClass *class; |
| 73 | int x; ///< x offset of the non-cropped area with respect to the input area | 73 | int x; ///< x offset of the non-cropped area with respect to the input area |
| 74 | int y; ///< y offset of the non-cropped area with respect to the input area | 74 | int y; ///< y offset of the non-cropped area with respect to the input area |
| @@ -34,7 +34,7 @@ · 33 unmodified lines | |||
| 34 | #include "internal.h" | 34 | #include "internal.h" |
| 35 | #include "video.h" | 35 | #include "video.h" |
| 36 | 36 | ||
| 37 | typedef struct { | 37 | typedef struct CropDetectContext { |
| 38 | const AVClass *class; | 38 | const AVClass *class; |
| 39 | int x1, y1, x2, y2; | 39 | int x1, y1, x2, y2; |
| 40 | int limit; | 40 | int limit; |
| @@ -130,7 +130,7 @@ static void apply_delogo(uint8_t *dst, int dst_linesize, · 129 unmodified lines | |||
| 130 | } | 130 | } |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | typedef struct { | 133 | typedef struct DelogoContext { |
| 134 | const AVClass *class; | 134 | const AVClass *class; |
| 135 | int x, y, w, h, band, show; | 135 | int x, y, w, h, band, show; |
| 136 | } DelogoContext; | 136 | } DelogoContext; |
| @@ -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 DrawBoxContext { |
| 40 | const AVClass *class; | 40 | const AVClass *class; |
| 41 | int x, y, w_opt, h_opt, w, h; | 41 | int x, y, w_opt, h_opt, w, h; |
| 42 | char *color_str; | 42 | char *color_str; |
| @@ -105,7 +105,7 @@ enum var_name { · 104 unmodified lines | |||
| 105 | VAR_VARS_NB | 105 | VAR_VARS_NB |
| 106 | }; | 106 | }; |
| 107 | 107 | ||
| 108 | typedef struct { | 108 | typedef struct DrawTextContext { |
| 109 | const AVClass *class; | 109 | const AVClass *class; |
| 110 | #if CONFIG_LIBFONTCONFIG | 110 | #if CONFIG_LIBFONTCONFIG |
| 111 | uint8_t *font; ///< font to be used | 111 | uint8_t *font; ///< font to be used |
| @@ -223,7 +223,7 @@ struct ft_error · 111 unmodified lines | |||
| 223 | 223 | ||
| 224 | #define FT_ERRMSG(e) ft_errors[e].err_msg | 224 | #define FT_ERRMSG(e) ft_errors[e].err_msg |
| 225 | 225 | ||
| 226 | typedef struct { | 226 | typedef struct Glyph { |
| 227 | FT_Glyph *glyph; | 227 | FT_Glyph *glyph; |
| 228 | uint32_t code; | 228 | uint32_t code; |
| 229 | FT_Bitmap bitmap; ///< array holding bitmaps of font | 229 | FT_Bitmap bitmap; ///< array holding bitmaps of font |
| @@ -36,7 +36,7 @@ · 35 unmodified lines | |||
| 36 | #define FADE_IN 0 | 36 | #define FADE_IN 0 |
| 37 | #define FADE_OUT 1 | 37 | #define FADE_OUT 1 |
| 38 | 38 | ||
| 39 | typedef struct { | 39 | typedef struct FadeContext { |
| 40 | const AVClass *class; | 40 | const AVClass *class; |
| 41 | int type; | 41 | int type; |
| 42 | int factor, fade_per_frame; | 42 | int factor, fade_per_frame; |
| @@ -35,7 +35,7 @@ · 34 unmodified lines | |||
| 35 | #include "internal.h" | 35 | #include "internal.h" |
| 36 | #include "video.h" | 36 | #include "video.h" |
| 37 | 37 | ||
| 38 | typedef struct { | 38 | typedef struct FieldOrderContext { |
| 39 | const AVClass *class; | 39 | const AVClass *class; |
| 40 | int dst_tff; ///< output bff/tff | 40 | int dst_tff; ///< output bff/tff |
| 41 | int line_size[4]; ///< bytes of pixel data per line for each plane | 41 | int line_size[4]; ///< bytes of pixel data per line for each plane |
| @@ -35,7 +35,7 @@ · 34 unmodified lines | |||
| 35 | #include "internal.h" | 35 | #include "internal.h" |
| 36 | #include "video.h" | 36 | #include "video.h" |
| 37 | 37 | ||
| 38 | typedef struct { | 38 | typedef struct FormatContext { |
| 39 | const AVClass *class; | 39 | const AVClass *class; |
| 40 | char *pix_fmts; | 40 | char *pix_fmts; |
| 41 | /** | 41 | /** |
| @@ -35,7 +35,7 @@ · 34 unmodified lines | |||
| 35 | #include "libavutil/intreadwrite.h" | 35 | #include "libavutil/intreadwrite.h" |
| 36 | #include "libavutil/imgutils.h" | 36 | #include "libavutil/imgutils.h" |
| 37 | 37 | ||
| 38 | typedef struct { | 38 | typedef struct FlipContext { |
| 39 | int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes | 39 | int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes |
| 40 | int hsub, vsub; ///< chroma subsampling | 40 | int hsub, vsub; ///< chroma subsampling |
| 41 | } FlipContext; | 41 | } FlipContext; |
| @@ -24,7 +24,7 @@ · 23 unmodified lines | |||
| 24 | 24 | ||
| 25 | #include "libavutil/opt.h" | 25 | #include "libavutil/opt.h" |
| 26 | 26 | ||
| 27 | typedef struct { | 27 | typedef struct HQDN3DContext { |
| 28 | const AVClass *class; | 28 | const AVClass *class; |
| 29 | int16_t *coefs[4]; | 29 | int16_t *coefs[4]; |
| 30 | uint16_t *line; | 30 | uint16_t *line; |
| @@ -42,7 +42,7 @@ enum FieldType { · 41 unmodified lines | |||
| 42 | FIELD_LOWER = 1, | 42 | FIELD_LOWER = 1, |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | typedef struct { | 45 | typedef struct InterlaceContext { |
| 46 | const AVClass *class; | 46 | const AVClass *class; |
| 47 | enum ScanMode scan; // top or bottom field first scanning | 47 | enum ScanMode scan; // top or bottom field first scanning |
| 48 | #if FF_API_INTERLACE_LOWPASS_SET | 48 | #if FF_API_INTERLACE_LOWPASS_SET |
| @@ -68,7 +68,7 @@ static int query_formats(AVFilterContext *ctx) · 67 unmodified lines | |||
| 68 | return 0; | 68 | return 0; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | typedef struct { | 71 | typedef struct OCVContext { |
| 72 | const AVClass *class; | 72 | const AVClass *class; |
| 73 | char *name; | 73 | char *name; |
| 74 | char *params; | 74 | char *params; |
| @@ -78,7 +78,7 @@ typedef struct { · 3 unmodified lines | |||
| 78 | void *priv; | 78 | void *priv; |
| 79 | } OCVContext; | 79 | } OCVContext; |
| 80 | 80 | ||
| 81 | typedef struct { | 81 | typedef struct SmoothContext { |
| 82 | int type; | 82 | int type; |
| 83 | int param1, param2; | 83 | int param1, param2; |
| 84 | double param3, param4; | 84 | double param3, param4; |
| @@ -245,7 +245,7 @@ static int parse_iplconvkernel(IplConvKernel **kernel, char *buf, void *log_ctx) · 160 unmodified lines | |||
| 245 | return 0; | 245 | return 0; |
| 246 | } | 246 | } |
| 247 | 247 | ||
| 248 | typedef struct { | 248 | typedef struct DilateContext { |
| 249 | int nb_iterations; | 249 | int nb_iterations; |
| 250 | IplConvKernel *kernel; | 250 | IplConvKernel *kernel; |
| 251 | } DilateContext; | 251 | } DilateContext; |
| @@ -301,7 +301,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma · 49 unmodified lines | |||
| 301 | cvErode(inimg, outimg, dilate->kernel, dilate->nb_iterations); | 301 | cvErode(inimg, outimg, dilate->kernel, dilate->nb_iterations); |
| 302 | } | 302 | } |
| 303 | 303 | ||
| 304 | typedef struct { | 304 | typedef struct OCVFilterEntry { |
| 305 | const char *name; | 305 | const char *name; |
| 306 | size_t priv_size; | 306 | size_t priv_size; |
| 307 | int (*init)(AVFilterContext *ctx, const char *args); | 307 | int (*init)(AVFilterContext *ctx, const char *args); |
| @@ -63,7 +63,7 @@ enum var_name { · 62 unmodified lines | |||
| 63 | VAR_VARS_NB | 63 | VAR_VARS_NB |
| 64 | }; | 64 | }; |
| 65 | 65 | ||
| 66 | typedef struct { | 66 | typedef struct LutContext { |
| 67 | const AVClass *class; | 67 | const AVClass *class; |
| 68 | uint8_t lut[4][256]; ///< lookup table for each component | 68 | uint8_t lut[4][256]; ///< lookup table for each component |
| 69 | char *comp_expr_str[4]; | 69 | char *comp_expr_str[4]; |
| @@ -73,7 +73,7 @@ static const char *eof_action_str[] = { · 72 unmodified lines | |||
| 73 | #define MAIN 0 | 73 | #define MAIN 0 |
| 74 | #define OVERLAY 1 | 74 | #define OVERLAY 1 |
| 75 | 75 | ||
| 76 | typedef struct { | 76 | typedef struct OverlayContext { |
| 77 | const AVClass *class; | 77 | const AVClass *class; |
| 78 | int x, y; ///< position of overlayed picture | 78 | int x, y; ///< position of overlayed picture |
| 79 | 79 | ||
| @@ -94,7 +94,7 @@ static int query_formats(AVFilterContext *ctx) · 93 unmodified lines | |||
| 94 | return 0; | 94 | return 0; |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | typedef struct { | 97 | typedef struct PadContext { |
| 98 | const AVClass *class; | 98 | const AVClass *class; |
| 99 | int w, h; ///< output dimensions, a value of 0 will result in the input size | 99 | int w, h; ///< output dimensions, a value of 0 will result in the input size |
| 100 | int x, y; ///< offsets of the input area with respect to the padded area | 100 | int x, y; ///< offsets of the input area with respect to the padded area |
| @@ -29,7 +29,7 @@ · 28 unmodified lines | |||
| 29 | #include "internal.h" | 29 | #include "internal.h" |
| 30 | #include "video.h" | 30 | #include "video.h" |
| 31 | 31 | ||
| 32 | typedef struct { | 32 | typedef struct PixdescTestContext { |
| 33 | const AVPixFmtDescriptor *pix_desc; | 33 | const AVPixFmtDescriptor *pix_desc; |
| 34 | uint16_t *line; | 34 | uint16_t *line; |
| 35 | } PixdescTestContext; | 35 | } PixdescTestContext; |
| @@ -68,7 +68,7 @@ enum var_name { · 67 unmodified lines | |||
| 68 | VARS_NB | 68 | VARS_NB |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | typedef struct { | 71 | typedef struct ScaleContext { |
| 72 | const AVClass *class; | 72 | const AVClass *class; |
| 73 | struct SwsContext *sws; ///< software scaler context | 73 | struct SwsContext *sws; ///< software scaler context |
| 74 | 74 | ||
| @@ -115,7 +115,7 @@ enum var_name { · 114 unmodified lines | |||
| 115 | 115 | ||
| 116 | #define FIFO_SIZE 8 | 116 | #define FIFO_SIZE 8 |
| 117 | 117 | ||
| 118 | typedef struct { | 118 | typedef struct SelectContext { |
| 119 | const AVClass *class; | 119 | const AVClass *class; |
| 120 | char *expr_str; | 120 | char *expr_str; |
| 121 | AVExpr *expr; | 121 | AVExpr *expr; |
| @@ -34,7 +34,7 @@ · 33 unmodified lines | |||
| 34 | #include "internal.h" | 34 | #include "internal.h" |
| 35 | #include "video.h" | 35 | #include "video.h" |
| 36 | 36 | ||
| 37 | typedef struct { | 37 | typedef struct ShowInfoContext { |
| 38 | unsigned int frame; | 38 | unsigned int frame; |
| 39 | } ShowInfoContext; | 39 | } ShowInfoContext; |
| 40 | 40 | ||
| @@ -45,7 +45,7 @@ enum TransposeDir { · 44 unmodified lines | |||
| 45 | TRANSPOSE_CLOCK_FLIP, | 45 | TRANSPOSE_CLOCK_FLIP, |
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| 48 | typedef struct { | 48 | typedef struct TransContext { |
| 49 | const AVClass *class; | 49 | const AVClass *class; |
| 50 | int hsub, vsub; | 50 | int hsub, vsub; |
| 51 | int pixsteps[4]; | 51 | int pixsteps[4]; |
| @@ -62,7 +62,7 @@ typedef struct FilterParam { · 61 unmodified lines | |||
| 62 | uint32_t *sc[(MAX_SIZE * MAX_SIZE) - 1]; ///< finite state machine storage | 62 | uint32_t *sc[(MAX_SIZE * MAX_SIZE) - 1]; ///< finite state machine storage |
| 63 | } FilterParam; | 63 | } FilterParam; |
| 64 | 64 | ||
| 65 | typedef struct { | 65 | typedef struct UnsharpContext { |
| 66 | const AVClass *class; | 66 | const AVClass *class; |
| 67 | int lmsize_x, lmsize_y, cmsize_x, cmsize_y; | 67 | int lmsize_x, lmsize_y, cmsize_x, cmsize_y; |
| 68 | float lamount, camount; | 68 | float lamount, camount; |
| @@ -29,7 +29,7 @@ · 28 unmodified lines | |||
| 29 | #include "internal.h" | 29 | #include "internal.h" |
| 30 | #include "video.h" | 30 | #include "video.h" |
| 31 | 31 | ||
| 32 | typedef struct { | 32 | typedef struct FlipContext { |
| 33 | int vsub; ///< vertical chroma subsampling | 33 | int vsub; ///< vertical chroma subsampling |
| 34 | } FlipContext; | 34 | } FlipContext; |
| 35 | 35 | ||
| @@ -40,7 +40,7 @@ · 39 unmodified lines | |||
| 40 | #include "libavutil/parseutils.h" | 40 | #include "libavutil/parseutils.h" |
| 41 | #include "drawutils.h" | 41 | #include "drawutils.h" |
| 42 | 42 | ||
| 43 | typedef struct { | 43 | typedef struct ColorContext { |
| 44 | const AVClass *class; | 44 | const AVClass *class; |
| 45 | int w, h; | 45 | int w, h; |
| 46 | uint8_t color[4]; | 46 | uint8_t color[4]; |
| @@ -41,7 +41,7 @@ · 40 unmodified lines | |||
| 41 | #include "internal.h" | 41 | #include "internal.h" |
| 42 | #include "video.h" | 42 | #include "video.h" |
| 43 | 43 | ||
| 44 | typedef struct { | 44 | typedef struct MovieContext { |
| 45 | const AVClass *class; | 45 | const AVClass *class; |
| 46 | int64_t seek_point; ///< seekpoint in microseconds | 46 | int64_t seek_point; ///< seekpoint in microseconds |
| 47 | double seek_point_d; | 47 | double seek_point_d; |
| @@ -49,7 +49,7 @@ enum var_name { · 48 unmodified lines | |||
| 49 | VAR_VARS_NB | 49 | VAR_VARS_NB |
| 50 | }; | 50 | }; |
| 51 | 51 | ||
| 52 | typedef struct { | 52 | typedef struct NullContext { |
| 53 | const AVClass *class; | 53 | const AVClass *class; |
| 54 | int w, h; | 54 | int w, h; |
| 55 | char *tb_expr; | 55 | char *tb_expr; |
| @@ -42,7 +42,7 @@ · 41 unmodified lines | |||
| 42 | #include "internal.h" | 42 | #include "internal.h" |
| 43 | #include "video.h" | 43 | #include "video.h" |
| 44 | 44 | ||
| 45 | typedef struct { | 45 | typedef struct TestSourceContext { |
| 46 | const AVClass *class; | 46 | const AVClass *class; |
| 47 | int h, w; | 47 | int h, w; |
| 48 | unsigned int nb_frame; | 48 | unsigned int nb_frame; |
| @@ -193,7 +193,7 @@ static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize, · 144 unmodified lines | |||
| 193 | #define LEFT_BOT_VBAR 16 | 193 | #define LEFT_BOT_VBAR 16 |
| 194 | #define RIGHT_TOP_VBAR 32 | 194 | #define RIGHT_TOP_VBAR 32 |
| 195 | #define RIGHT_BOT_VBAR 64 | 195 | #define RIGHT_BOT_VBAR 64 |
| 196 | struct { | 196 | struct segments { |
| 197 | int x, y, w, h; | 197 | int x, y, w, h; |
| 198 | } segments[] = { | 198 | } segments[] = { |
| 199 | { 1, 0, 5, 1 }, /* TOP_HBAR */ | 199 | { 1, 0, 5, 1 }, /* TOP_HBAR */ |