History

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

Michael Niedermayer committed 12 years ago

Commit 74a8dbe2 parents 010732b 58400ac33 files · +40 −40Browse files

Unified · Split

33 files
  1. libavfilter/buffersink.c +1 −1
  2. libavfilter/buffersrc.c +1 −1
  3. libavfilter/f_select.c +1 −1
  4. libavfilter/fifo.c +1 −1
  5. libavfilter/setpts.c +1 −1
  6. libavfilter/settb.c +1 −1
  7. libavfilter/src_movie.c +2 −2
  8. libavfilter/unsharp.h +1 −1
  9. libavfilter/vf_aspect.c +1 −1
  10. libavfilter/vf_blackframe.c +1 −1
  11. libavfilter/vf_boxblur.c +2 −2
  12. libavfilter/vf_crop.c +1 −1
  13. libavfilter/vf_cropdetect.c +1 −1
  14. libavfilter/vf_delogo.c +1 −1
  15. libavfilter/vf_drawbox.c +1 −1
  16. libavfilter/vf_drawtext.c +2 −2
  17. libavfilter/vf_elbg.c +1 −1
  18. libavfilter/vf_fade.c +1 −1
  19. libavfilter/vf_fieldorder.c +1 −1
  20. libavfilter/vf_format.c +1 −1
  21. libavfilter/vf_framestep.c +1 −1
  22. libavfilter/vf_hflip.c +1 −1
  23. libavfilter/vf_hqdn3d.h +1 −1
  24. libavfilter/vf_interlace.c +1 −1
  25. libavfilter/vf_libopencv.c +4 −4
  26. libavfilter/vf_lut.c +1 −1
  27. libavfilter/vf_overlay.c +1 −1
  28. libavfilter/vf_pad.c +1 −1
  29. libavfilter/vf_pixdesctest.c +1 −1
  30. libavfilter/vf_scale.c +1 −1
  31. libavfilter/vf_transpose.c +1 −1
  32. libavfilter/vf_vflip.c +1 −1
  33. libavfilter/vsrc_testsrc.c +2 −2
libavfilter/buffersink.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
3636 #include "buffersink.h"
3737 #include "internal.h"
3838
39−typedef struct {
39+typedef struct BufferSinkContext {
4040 const AVClass *class;
4141 AVFifoBuffer *fifo; ///< FIFO buffer of video frame references
4242 unsigned warning_limit;
libavfilter/buffersrc.c+1−1
@@ -41,7 +41,7 @@ · 40 unmodified lines
4141 #include "video.h"
4242 #include "avcodec.h"
4343
44−typedef struct {
44+typedef struct BufferSourceContext {
4545 const AVClass *class;
4646 AVFifoBuffer *fifo;
4747 AVRational time_base; ///< time_base to set in the output link
libavfilter/f_select.c+1−1
@@ -138,7 +138,7 @@ enum var_name { · 137 unmodified lines
138138 VAR_VARS_NB
139139 };
140140
141−typedef struct {
141+typedef struct SelectContext {
142142 const AVClass *class;
143143 char *expr_str;
144144 AVExpr *expr;
libavfilter/fifo.c+1−1
@@ -39,7 +39,7 @@ typedef struct Buf { · 38 unmodified lines
3939 struct Buf *next;
4040 } Buf;
4141
42−typedef struct {
42+typedef struct FifoContext {
4343 Buf root;
4444 Buf *last; ///< last buffered frame
4545
libavfilter/setpts.c+1−1
@@ -82,7 +82,7 @@ enum var_name { · 81 unmodified lines
8282 VAR_VARS_NB
8383 };
8484
85−typedef struct {
85+typedef struct SetPTSContext {
8686 const AVClass *class;
8787 char *expr_str;
8888 AVExpr *expr;
libavfilter/settb.c+1−1
@@ -51,7 +51,7 @@ enum var_name { · 50 unmodified lines
5151 VAR_VARS_NB
5252 };
5353
54−typedef struct {
54+typedef struct SetTBContext {
5555 const AVClass *class;
5656 char *tb_expr;
5757 double var_values[VAR_VARS_NB];
libavfilter/src_movie.c+2−2
@@ -44,12 +44,12 @@ · 43 unmodified lines
4444 #include "internal.h"
4545 #include "video.h"
4646
47−typedef struct {
47+typedef struct MovieStream {
4848 AVStream *st;
4949 int done;
5050 } MovieStream;
5151
52−typedef struct {
52+typedef struct MovieContext {
5353 /* common A/V fields */
5454 const AVClass *class;
5555 int64_t seek_point; ///< seekpoint in microseconds
libavfilter/unsharp.h+1−1
@@ -64,7 +64,7 @@ typedef struct UnsharpFilterParam { · 63 unmodified lines
6464 uint32_t *sc[MAX_MATRIX_SIZE - 1]; ///< finite state machine storage
6565 } UnsharpFilterParam;
6666
67−typedef struct {
67+typedef struct UnsharpContext {
6868 const AVClass *class;
6969 int lmsize_x, lmsize_y, cmsize_x, cmsize_y;
7070 float lamount, camount;
libavfilter/vf_aspect.c+1−1
@@ -56,7 +56,7 @@ enum var_name { · 55 unmodified lines
5656 VARS_NB
5757 };
5858
59−typedef struct {
59+typedef struct AspectContext {
6060 const AVClass *class;
6161 AVRational dar;
6262 AVRational sar;
libavfilter/vf_blackframe.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737 #include "internal.h"
3838 #include "video.h"
3939
40−typedef struct {
40+typedef struct BlackFrameContext {
4141 const AVClass *class;
4242 int bamount; ///< black amount
4343 int bthresh; ///< black threshold
libavfilter/vf_boxblur.c+2−2
@@ -55,13 +55,13 @@ enum var_name { · 54 unmodified lines
5555 VARS_NB
5656 };
5757
58−typedef struct {
58+typedef struct FilterParam {
5959 int radius;
6060 int power;
6161 char *radius_expr;
6262 } FilterParam;
6363
64−typedef struct {
64+typedef struct BoxBlurContext {
6565 const AVClass *class;
6666 FilterParam luma_param;
6767 FilterParam chroma_param;
libavfilter/vf_crop.c+1−1
@@ -73,7 +73,7 @@ enum var_name { · 72 unmodified lines
7373 VAR_VARS_NB
7474 };
7575
76−typedef struct {
76+typedef struct CropContext {
7777 const AVClass *class;
7878 int x; ///< x offset of the non-cropped area with respect to the input area
7979 int y; ///< y offset of the non-cropped area with respect to the input area
libavfilter/vf_cropdetect.c+1−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
3232 #include "internal.h"
3333 #include "video.h"
3434
35−typedef struct {
35+typedef struct CropDetectContext {
3636 const AVClass *class;
3737 int x1, y1, x2, y2;
3838 int limit;
libavfilter/vf_delogo.c+1−1
@@ -148,7 +148,7 @@ static void apply_delogo(uint8_t *dst, int dst_linesize, · 147 unmodified lines
148148 }
149149 }
150150
151−typedef struct {
151+typedef struct DelogoContext {
152152 const AVClass *class;
153153 int x, y, w, h, band, show;
154154 } DelogoContext;
libavfilter/vf_drawbox.c+1−1
@@ -66,7 +66,7 @@ enum var_name { · 65 unmodified lines
6666 VARS_NB
6767 };
6868
69−typedef struct {
69+typedef struct DrawBoxContext {
7070 const AVClass *class;
7171 int x, y, w, h;
7272 int thickness;
libavfilter/vf_drawtext.c+2−2
@@ -126,7 +126,7 @@ enum expansion_mode { · 125 unmodified lines
126126 EXP_STRFTIME,
127127 };
128128
129−typedef struct {
129+typedef struct DrawTextContext {
130130 const AVClass *class;
131131 enum expansion_mode exp_mode; ///< expansion mode to use for the text
132132 int reinit; ///< tells if the filter is being reinited
@@ -260,7 +260,7 @@ struct ft_error · 127 unmodified lines
260260
261261 #define FT_ERRMSG(e) ft_errors[e].err_msg
262262
263−typedef struct {
263+typedef struct Glyph {
264264 FT_Glyph *glyph;
265265 uint32_t code;
266266 FT_Bitmap bitmap; ///< array holding bitmaps of font
libavfilter/vf_elbg.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "internal.h"
3434 #include "video.h"
3535
36−typedef struct {
36+typedef struct ColorContext {
3737 const AVClass *class;
3838 AVLFG lfg;
3939 unsigned int lfg_seed;
libavfilter/vf_fade.c+1−1
@@ -49,7 +49,7 @@ · 48 unmodified lines
4949 #define FADE_IN 0
5050 #define FADE_OUT 1
5151
52−typedef struct {
52+typedef struct FadeContext {
5353 const AVClass *class;
5454 int type;
5555 int factor, fade_per_frame;
libavfilter/vf_fieldorder.c+1−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
3232 #include "internal.h"
3333 #include "video.h"
3434
35−typedef struct {
35+typedef struct FieldOrderContext {
3636 const AVClass *class;
3737 int dst_tff; ///< output bff/tff
3838 int line_size[4]; ///< bytes of pixel data per line for each plane
libavfilter/vf_format.c+1−1
@@ -35,7 +35,7 @@ · 34 unmodified lines
3535 #include "internal.h"
3636 #include "video.h"
3737
38−typedef struct {
38+typedef struct FormatContext {
3939 const AVClass *class;
4040 char *pix_fmts;
4141 /**
libavfilter/vf_framestep.c+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "internal.h"
2929 #include "video.h"
3030
31−typedef struct {
31+typedef struct NullContext {
3232 const AVClass *class;
3333 int frame_step;
3434 } FrameStepContext;
libavfilter/vf_hflip.c+1−1
@@ -35,7 +35,7 @@ · 34 unmodified lines
3535 #include "libavutil/intreadwrite.h"
3636 #include "libavutil/imgutils.h"
3737
38−typedef struct {
38+typedef struct FlipContext {
3939 int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes
4040 int planewidth[4]; ///< width of each plane
4141 int planeheight[4]; ///< height of each plane
libavfilter/vf_hqdn3d.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828
2929 #include "libavutil/opt.h"
3030
31−typedef struct {
31+typedef struct HQDN3DContext {
3232 const AVClass *class;
3333 int16_t *coefs[4];
3434 uint16_t *line;
libavfilter/vf_interlace.c+1−1
@@ -47,7 +47,7 @@ enum FieldType { · 46 unmodified lines
4747 FIELD_LOWER = 1,
4848 };
4949
50−typedef struct {
50+typedef struct InterlaceContext {
5151 const AVClass *class;
5252 enum ScanMode scan; // top or bottom field first scanning
5353 #if FF_API_INTERLACE_LOWPASS_SET
libavfilter/vf_libopencv.c+4−4
@@ -68,7 +68,7 @@ static int query_formats(AVFilterContext *ctx) · 67 unmodified lines
6868 return 0;
6969 }
7070
71−typedef struct {
71+typedef struct OCVContext {
7272 const AVClass *class;
7373 char *name;
7474 char *params;
@@ -78,7 +78,7 @@ typedef struct { · 3 unmodified lines
7878 void *priv;
7979 } OCVContext;
8080
81−typedef struct {
81+typedef struct SmoothContext {
8282 int type;
8383 int param1, param2;
8484 double param3, param4;
@@ -245,7 +245,7 @@ static int parse_iplconvkernel(IplConvKernel **kernel, char *buf, void *log_ctx) · 160 unmodified lines
245245 return 0;
246246 }
247247
248−typedef struct {
248+typedef struct DilateContext {
249249 int nb_iterations;
250250 IplConvKernel *kernel;
251251 } DilateContext;
@@ -302,7 +302,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma · 50 unmodified lines
302302 cvErode(inimg, outimg, dilate->kernel, dilate->nb_iterations);
303303 }
304304
305−typedef struct {
305+typedef struct OCVFilterEntry {
306306 const char *name;
307307 size_t priv_size;
308308 int (*init)(AVFilterContext *ctx, const char *args);
libavfilter/vf_lut.c+1−1
@@ -57,7 +57,7 @@ enum var_name { · 56 unmodified lines
5757 VAR_VARS_NB
5858 };
5959
60−typedef struct {
60+typedef struct LutContext {
6161 const AVClass *class;
6262 uint8_t lut[4][256]; ///< lookup table for each component
6363 char *comp_expr_str[4];
libavfilter/vf_overlay.c+1−1
@@ -91,7 +91,7 @@ static const char *eof_action_str[] = { · 90 unmodified lines
9191 #define U 1
9292 #define V 2
9393
94−typedef struct {
94+typedef struct OverlayContext {
9595 const AVClass *class;
9696 int x, y; ///< position of overlayed picture
9797
libavfilter/vf_pad.c+1−1
@@ -77,7 +77,7 @@ static int query_formats(AVFilterContext *ctx) · 76 unmodified lines
7777 return 0;
7878 }
7979
80−typedef struct {
80+typedef struct PadContext {
8181 const AVClass *class;
8282 int w, h; ///< output dimensions, a value of 0 will result in the input size
8383 int x, y; ///< offsets of the input area with respect to the padded area
libavfilter/vf_pixdesctest.c+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "internal.h"
3030 #include "video.h"
3131
32−typedef struct {
32+typedef struct PixdescTestContext {
3333 const AVPixFmtDescriptor *pix_desc;
3434 uint16_t *line;
3535 } PixdescTestContext;
libavfilter/vf_scale.c+1−1
@@ -71,7 +71,7 @@ enum var_name { · 70 unmodified lines
7171 VARS_NB
7272 };
7373
74−typedef struct {
74+typedef struct ScaleContext {
7575 const AVClass *class;
7676 struct SwsContext *sws; ///< software scaler context
7777 struct SwsContext *isws[2]; ///< software scaler context for interlaced material
libavfilter/vf_transpose.c+1−1
@@ -51,7 +51,7 @@ enum TransposeDir { · 50 unmodified lines
5151 TRANSPOSE_CLOCK_FLIP,
5252 };
5353
54−typedef struct {
54+typedef struct TransContext {
5555 const AVClass *class;
5656 int hsub, vsub;
5757 int pixsteps[4];
libavfilter/vf_vflip.c+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "internal.h"
3030 #include "video.h"
3131
32−typedef struct {
32+typedef struct FlipContext {
3333 int vsub; ///< vertical chroma subsampling
3434 } FlipContext;
3535
libavfilter/vsrc_testsrc.c+2−2
@@ -47,7 +47,7 @@ · 46 unmodified lines
4747 #include "internal.h"
4848 #include "video.h"
4949
50−typedef struct {
50+typedef struct TestSourceContext {
5151 const AVClass *class;
5252 int w, h;
5353 unsigned int nb_frame;
@@ -488,7 +488,7 @@ static void draw_digit(int digit, uint8_t *dst, int dst_linesize, · 434 unmodified lines
488488 #define LEFT_BOT_VBAR 16
489489 #define RIGHT_TOP_VBAR 32
490490 #define RIGHT_BOT_VBAR 64
491− struct {
491+ struct segments {
492492 int x, y, w, h;
493493 } segments[] = {
494494 { 1, 0, 5, 1 }, /* TOP_HBAR */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t