diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-19 18:20:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-19 18:20:17 +0200 |
commit | 74a8dbe1c405e041a16c44050d9dfc92aca90d33 (patch) | |
tree | 49fa40ab5ebb4dc10ac88c1f11bc84337aaa2c11 /libavfilter | |
parent | 010732b73a0869d222cb281431a9a4aae89355e6 (diff) | |
parent | 58400ac133bcfb6bf8196b4e5208bc178307739b (diff) | |
download | ffmpeg-74a8dbe1c405e041a16c44050d9dfc92aca90d33.tar.gz |
Merge commit '58400ac133bcfb6bf8196b4e5208bc178307739b'
* commit '58400ac133bcfb6bf8196b4e5208bc178307739b':
lavfi: name anonymous structs
Conflicts:
libavfilter/buffersink.c
libavfilter/f_select.c
libavfilter/src_movie.c
libavfilter/vf_drawbox.c
libavfilter/vf_drawtext.c
libavfilter/vf_overlay.c
libavfilter/vf_showinfo.c
libavfilter/vf_unsharp.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
33 files changed, 40 insertions, 40 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index a6b24adffd..5144fdaeee 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -36,7 +36,7 @@ #include "buffersink.h" #include "internal.h" -typedef struct { +typedef struct BufferSinkContext { const AVClass *class; AVFifoBuffer *fifo; ///< FIFO buffer of video frame references unsigned warning_limit; diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index ae7cea2c6b..30d3a3742e 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -41,7 +41,7 @@ #include "video.h" #include "avcodec.h" -typedef struct { +typedef struct BufferSourceContext { const AVClass *class; AVFifoBuffer *fifo; AVRational time_base; ///< time_base to set in the output link diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index 1ffc00652c..4d18cbc237 100644 --- a/libavfilter/f_select.c +++ b/libavfilter/f_select.c @@ -138,7 +138,7 @@ enum var_name { VAR_VARS_NB }; -typedef struct { +typedef struct SelectContext { const AVClass *class; char *expr_str; AVExpr *expr; diff --git a/libavfilter/fifo.c b/libavfilter/fifo.c index 5310af24de..e477cff4cd 100644 --- a/libavfilter/fifo.c +++ b/libavfilter/fifo.c @@ -39,7 +39,7 @@ typedef struct Buf { struct Buf *next; } Buf; -typedef struct { +typedef struct FifoContext { Buf root; Buf *last; ///< last buffered frame diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c index cb6b2b9aab..0db021814d 100644 --- a/libavfilter/setpts.c +++ b/libavfilter/setpts.c @@ -82,7 +82,7 @@ enum var_name { VAR_VARS_NB }; -typedef struct { +typedef struct SetPTSContext { const AVClass *class; char *expr_str; AVExpr *expr; diff --git a/libavfilter/settb.c b/libavfilter/settb.c index ac8b898744..83616c1361 100644 --- a/libavfilter/settb.c +++ b/libavfilter/settb.c @@ -51,7 +51,7 @@ enum var_name { VAR_VARS_NB }; -typedef struct { +typedef struct SetTBContext { const AVClass *class; char *tb_expr; double var_values[VAR_VARS_NB]; diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 82bcc56f3d..bcc8e05495 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -44,12 +44,12 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct MovieStream { AVStream *st; int done; } MovieStream; -typedef struct { +typedef struct MovieContext { /* common A/V fields */ const AVClass *class; int64_t seek_point; ///< seekpoint in microseconds diff --git a/libavfilter/unsharp.h b/libavfilter/unsharp.h index 867892085d..c2aed64a01 100644 --- a/libavfilter/unsharp.h +++ b/libavfilter/unsharp.h @@ -64,7 +64,7 @@ typedef struct UnsharpFilterParam { uint32_t *sc[MAX_MATRIX_SIZE - 1]; ///< finite state machine storage } UnsharpFilterParam; -typedef struct { +typedef struct UnsharpContext { const AVClass *class; int lmsize_x, lmsize_y, cmsize_x, cmsize_y; float lamount, camount; diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c index 97fb216923..84dbee95d5 100644 --- a/libavfilter/vf_aspect.c +++ b/libavfilter/vf_aspect.c @@ -56,7 +56,7 @@ enum var_name { VARS_NB }; -typedef struct { +typedef struct AspectContext { const AVClass *class; AVRational dar; AVRational sar; diff --git a/libavfilter/vf_blackframe.c b/libavfilter/vf_blackframe.c index 9b0c973520..0eeda618f9 100644 --- a/libavfilter/vf_blackframe.c +++ b/libavfilter/vf_blackframe.c @@ -37,7 +37,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct BlackFrameContext { const AVClass *class; int bamount; ///< black amount int bthresh; ///< black threshold diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c index 3183f435fc..1fa5135d98 100644 --- a/libavfilter/vf_boxblur.c +++ b/libavfilter/vf_boxblur.c @@ -55,13 +55,13 @@ enum var_name { VARS_NB }; -typedef struct { +typedef struct FilterParam { int radius; int power; char *radius_expr; } FilterParam; -typedef struct { +typedef struct BoxBlurContext { const AVClass *class; FilterParam luma_param; FilterParam chroma_param; diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index 261db33771..30ee077436 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -73,7 +73,7 @@ enum var_name { VAR_VARS_NB }; -typedef struct { +typedef struct CropContext { const AVClass *class; int x; ///< x offset of the non-cropped area with respect to the input area int y; ///< y offset of the non-cropped area with respect to the input area diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index 4a6b658e02..ed8e7a8c11 100644 --- a/libavfilter/vf_cropdetect.c +++ b/libavfilter/vf_cropdetect.c @@ -32,7 +32,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct CropDetectContext { const AVClass *class; int x1, y1, x2, y2; int limit; diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c index fbc8983875..6ccdfb21d0 100644 --- a/libavfilter/vf_delogo.c +++ b/libavfilter/vf_delogo.c @@ -148,7 +148,7 @@ static void apply_delogo(uint8_t *dst, int dst_linesize, } } -typedef struct { +typedef struct DelogoContext { const AVClass *class; int x, y, w, h, band, show; } DelogoContext; diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index dd884a7449..115df884e1 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -66,7 +66,7 @@ enum var_name { VARS_NB }; -typedef struct { +typedef struct DrawBoxContext { const AVClass *class; int x, y, w, h; int thickness; diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index ef82eeda13..280abb8a82 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -126,7 +126,7 @@ enum expansion_mode { EXP_STRFTIME, }; -typedef struct { +typedef struct DrawTextContext { const AVClass *class; enum expansion_mode exp_mode; ///< expansion mode to use for the text int reinit; ///< tells if the filter is being reinited @@ -260,7 +260,7 @@ struct ft_error #define FT_ERRMSG(e) ft_errors[e].err_msg -typedef struct { +typedef struct Glyph { FT_Glyph *glyph; uint32_t code; FT_Bitmap bitmap; ///< array holding bitmaps of font diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c index f92d936714..be0885d30b 100644 --- a/libavfilter/vf_elbg.c +++ b/libavfilter/vf_elbg.c @@ -33,7 +33,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct ColorContext { const AVClass *class; AVLFG lfg; unsigned int lfg_seed; diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c index cc10b122ca..80ce75dcda 100644 --- a/libavfilter/vf_fade.c +++ b/libavfilter/vf_fade.c @@ -49,7 +49,7 @@ #define FADE_IN 0 #define FADE_OUT 1 -typedef struct { +typedef struct FadeContext { const AVClass *class; int type; int factor, fade_per_frame; diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c index 84088a0428..36189af270 100644 --- a/libavfilter/vf_fieldorder.c +++ b/libavfilter/vf_fieldorder.c @@ -32,7 +32,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct FieldOrderContext { const AVClass *class; int dst_tff; ///< output bff/tff int line_size[4]; ///< bytes of pixel data per line for each plane diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 98061e9153..8a41153c20 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -35,7 +35,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct FormatContext { const AVClass *class; char *pix_fmts; /** diff --git a/libavfilter/vf_framestep.c b/libavfilter/vf_framestep.c index 9087f4620b..09945e17ae 100644 --- a/libavfilter/vf_framestep.c +++ b/libavfilter/vf_framestep.c @@ -28,7 +28,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct NullContext { const AVClass *class; int frame_step; } FrameStepContext; diff --git a/libavfilter/vf_hflip.c b/libavfilter/vf_hflip.c index 19b66062db..faf32853ef 100644 --- a/libavfilter/vf_hflip.c +++ b/libavfilter/vf_hflip.c @@ -35,7 +35,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/imgutils.h" -typedef struct { +typedef struct FlipContext { int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes int planewidth[4]; ///< width of each plane int planeheight[4]; ///< height of each plane diff --git a/libavfilter/vf_hqdn3d.h b/libavfilter/vf_hqdn3d.h index 268ac9a259..be55400f01 100644 --- a/libavfilter/vf_hqdn3d.h +++ b/libavfilter/vf_hqdn3d.h @@ -28,7 +28,7 @@ #include "libavutil/opt.h" -typedef struct { +typedef struct HQDN3DContext { const AVClass *class; int16_t *coefs[4]; uint16_t *line; diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c index aff979bb09..0929a7107a 100644 --- a/libavfilter/vf_interlace.c +++ b/libavfilter/vf_interlace.c @@ -47,7 +47,7 @@ enum FieldType { FIELD_LOWER = 1, }; -typedef struct { +typedef struct InterlaceContext { const AVClass *class; enum ScanMode scan; // top or bottom field first scanning #if FF_API_INTERLACE_LOWPASS_SET diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index 2306b09bdb..6b4a7fcb38 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -68,7 +68,7 @@ static int query_formats(AVFilterContext *ctx) return 0; } -typedef struct { +typedef struct OCVContext { const AVClass *class; char *name; char *params; @@ -78,7 +78,7 @@ typedef struct { void *priv; } OCVContext; -typedef struct { +typedef struct SmoothContext { int type; int param1, param2; double param3, param4; @@ -245,7 +245,7 @@ static int parse_iplconvkernel(IplConvKernel **kernel, char *buf, void *log_ctx) return 0; } -typedef struct { +typedef struct DilateContext { int nb_iterations; IplConvKernel *kernel; } DilateContext; @@ -302,7 +302,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma cvErode(inimg, outimg, dilate->kernel, dilate->nb_iterations); } -typedef struct { +typedef struct OCVFilterEntry { const char *name; size_t priv_size; int (*init)(AVFilterContext *ctx, const char *args); diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index 9f30ae0cdf..fff5a2ba31 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -57,7 +57,7 @@ enum var_name { VAR_VARS_NB }; -typedef struct { +typedef struct LutContext { const AVClass *class; uint8_t lut[4][256]; ///< lookup table for each component char *comp_expr_str[4]; diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 56b2484da2..beb4e8f1ff 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -91,7 +91,7 @@ static const char *eof_action_str[] = { #define U 1 #define V 2 -typedef struct { +typedef struct OverlayContext { const AVClass *class; int x, y; ///< position of overlayed picture diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index 2962e204f0..2d9b9d0362 100644 --- a/libavfilter/vf_pad.c +++ b/libavfilter/vf_pad.c @@ -77,7 +77,7 @@ static int query_formats(AVFilterContext *ctx) return 0; } -typedef struct { +typedef struct PadContext { const AVClass *class; int w, h; ///< output dimensions, a value of 0 will result in the input size int x, y; ///< offsets of the input area with respect to the padded area diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c index bf1ca5d739..790dd0d9c2 100644 --- a/libavfilter/vf_pixdesctest.c +++ b/libavfilter/vf_pixdesctest.c @@ -29,7 +29,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct PixdescTestContext { const AVPixFmtDescriptor *pix_desc; uint16_t *line; } PixdescTestContext; diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 6b7d474aff..b1d97af4e0 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -71,7 +71,7 @@ enum var_name { VARS_NB }; -typedef struct { +typedef struct ScaleContext { const AVClass *class; struct SwsContext *sws; ///< software scaler context struct SwsContext *isws[2]; ///< software scaler context for interlaced material diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c index b5ba30e5be..58ddd2cb96 100644 --- a/libavfilter/vf_transpose.c +++ b/libavfilter/vf_transpose.c @@ -51,7 +51,7 @@ enum TransposeDir { TRANSPOSE_CLOCK_FLIP, }; -typedef struct { +typedef struct TransContext { const AVClass *class; int hsub, vsub; int pixsteps[4]; diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c index f6908e46ab..4a4ae0e5e1 100644 --- a/libavfilter/vf_vflip.c +++ b/libavfilter/vf_vflip.c @@ -29,7 +29,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct FlipContext { int vsub; ///< vertical chroma subsampling } FlipContext; diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 0ad1474193..8814440760 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -47,7 +47,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct TestSourceContext { const AVClass *class; int w, h; unsigned int nb_frame; @@ -488,7 +488,7 @@ static void draw_digit(int digit, uint8_t *dst, int dst_linesize, #define LEFT_BOT_VBAR 16 #define RIGHT_TOP_VBAR 32 #define RIGHT_BOT_VBAR 64 - struct { + struct segments { int x, y, w, h; } segments[] = { { 1, 0, 5, 1 }, /* TOP_HBAR */ |