History

lavfi: name anonymous structs

Vittorio Giovara committed 12 years ago

Commit 58400ac1 parent 4936ef634 files · +40 −40Browse files

Unified · Split

34 files
  1. libavfilter/buffersink.c +1 −1
  2. libavfilter/buffersrc.c +1 −1
  3. libavfilter/fifo.c +1 −1
  4. libavfilter/setpts.c +1 −1
  5. libavfilter/settb.c +1 −1
  6. libavfilter/vf_aspect.c +1 −1
  7. libavfilter/vf_blackframe.c +1 −1
  8. libavfilter/vf_boxblur.c +2 −2
  9. libavfilter/vf_crop.c +1 −1
  10. libavfilter/vf_cropdetect.c +1 −1
  11. libavfilter/vf_delogo.c +1 −1
  12. libavfilter/vf_drawbox.c +1 −1
  13. libavfilter/vf_drawtext.c +2 −2
  14. libavfilter/vf_fade.c +1 −1
  15. libavfilter/vf_fieldorder.c +1 −1
  16. libavfilter/vf_format.c +1 −1
  17. libavfilter/vf_hflip.c +1 −1
  18. libavfilter/vf_hqdn3d.h +1 −1
  19. libavfilter/vf_interlace.c +1 −1
  20. libavfilter/vf_libopencv.c +4 −4
  21. libavfilter/vf_lut.c +1 −1
  22. libavfilter/vf_overlay.c +1 −1
  23. libavfilter/vf_pad.c +1 −1
  24. libavfilter/vf_pixdesctest.c +1 −1
  25. libavfilter/vf_scale.c +1 −1
  26. libavfilter/vf_select.c +1 −1
  27. libavfilter/vf_showinfo.c +1 −1
  28. libavfilter/vf_transpose.c +1 −1
  29. libavfilter/vf_unsharp.c +1 −1
  30. libavfilter/vf_vflip.c +1 −1
  31. libavfilter/vsrc_color.c +1 −1
  32. libavfilter/vsrc_movie.c +1 −1
  33. libavfilter/vsrc_nullsrc.c +1 −1
  34. libavfilter/vsrc_testsrc.c +2 −2
libavfilter/buffersink.c+1−1
@@ -35,7 +35,7 @@ · 34 unmodified lines
3535 #include "buffersink.h"
3636 #include "internal.h"
3737
38−typedef struct {
38+typedef struct BufferSinkContext {
3939 AVFrame *cur_frame; ///< last frame delivered on the sink
4040 AVAudioFifo *audio_fifo; ///< FIFO for audio samples
4141 int64_t next_pts; ///< interpolating audio pts
libavfilter/buffersrc.c+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #include "internal.h"
4141 #include "video.h"
4242
43−typedef struct {
43+typedef struct BufferSourceContext {
4444 const AVClass *class;
4545 AVFifoBuffer *fifo;
4646 AVRational time_base; ///< time_base to set in the output link
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
@@ -73,7 +73,7 @@ enum var_name { · 72 unmodified lines
7373 VAR_VARS_NB
7474 };
7575
76−typedef struct {
76+typedef struct SetPTSContext {
7777 const AVClass *class;
7878 char *expr_str;
7979 AVExpr *expr;
libavfilter/settb.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 SetTBContext {
6161 const AVClass *class;
6262 char *tb_expr;
6363 double var_values[VAR_VARS_NB];
libavfilter/vf_aspect.c+1−1
@@ -62,7 +62,7 @@ enum var_name { · 61 unmodified lines
6262 VARS_NB
6363 };
6464
65−typedef struct {
65+typedef struct AspectContext {
6666 const AVClass *class;
6767 AVRational dar;
6868 AVRational sar;
libavfilter/vf_blackframe.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #include "internal.h"
3939 #include "video.h"
4040
41−typedef struct {
41+typedef struct BlackFrameContext {
4242 const AVClass *class;
4343 int bamount; ///< black amount
4444 int bthresh; ///< black threshold
libavfilter/vf_boxblur.c+2−2
@@ -55,12 +55,12 @@ 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 } FilterParam;
6262
63−typedef struct {
63+typedef struct BoxBlurContext {
6464 const AVClass *class;
6565 FilterParam luma_param;
6666 FilterParam chroma_param;
libavfilter/vf_crop.c+1−1
@@ -68,7 +68,7 @@ enum var_name { · 67 unmodified lines
6868 VAR_VARS_NB
6969 };
7070
71−typedef struct {
71+typedef struct CropContext {
7272 const AVClass *class;
7373 int x; ///< x offset of the non-cropped area with respect to the input area
7474 int y; ///< y offset of the non-cropped area with respect to the input area
libavfilter/vf_cropdetect.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #include "internal.h"
3535 #include "video.h"
3636
37−typedef struct {
37+typedef struct CropDetectContext {
3838 const AVClass *class;
3939 int x1, y1, x2, y2;
4040 int limit;
libavfilter/vf_delogo.c+1−1
@@ -130,7 +130,7 @@ static void apply_delogo(uint8_t *dst, int dst_linesize, · 129 unmodified lines
130130 }
131131 }
132132
133−typedef struct {
133+typedef struct DelogoContext {
134134 const AVClass *class;
135135 int x, y, w, h, band, show;
136136 } DelogoContext;
libavfilter/vf_drawbox.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
3636
3737 enum { Y, U, V, A };
3838
39−typedef struct {
39+typedef struct DrawBoxContext {
4040 const AVClass *class;
4141 int x, y, w_opt, h_opt, w, h;
4242 char *color_str;
libavfilter/vf_drawtext.c+2−2
@@ -105,7 +105,7 @@ enum var_name { · 104 unmodified lines
105105 VAR_VARS_NB
106106 };
107107
108−typedef struct {
108+typedef struct DrawTextContext {
109109 const AVClass *class;
110110 #if CONFIG_LIBFONTCONFIG
111111 uint8_t *font; ///< font to be used
@@ -223,7 +223,7 @@ struct ft_error · 111 unmodified lines
223223
224224 #define FT_ERRMSG(e) ft_errors[e].err_msg
225225
226−typedef struct {
226+typedef struct Glyph {
227227 FT_Glyph *glyph;
228228 uint32_t code;
229229 FT_Bitmap bitmap; ///< array holding bitmaps of font
libavfilter/vf_fade.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
3636 #define FADE_IN 0
3737 #define FADE_OUT 1
3838
39−typedef struct {
39+typedef struct FadeContext {
4040 const AVClass *class;
4141 int type;
4242 int factor, fade_per_frame;
libavfilter/vf_fieldorder.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 FieldOrderContext {
3939 const AVClass *class;
4040 int dst_tff; ///< output bff/tff
4141 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_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 hsub, vsub; ///< chroma subsampling
4141 } FlipContext;
libavfilter/vf_hqdn3d.h+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424
2525 #include "libavutil/opt.h"
2626
27−typedef struct {
27+typedef struct HQDN3DContext {
2828 const AVClass *class;
2929 int16_t *coefs[4];
3030 uint16_t *line;
libavfilter/vf_interlace.c+1−1
@@ -42,7 +42,7 @@ enum FieldType { · 41 unmodified lines
4242 FIELD_LOWER = 1,
4343 };
4444
45−typedef struct {
45+typedef struct InterlaceContext {
4646 const AVClass *class;
4747 enum ScanMode scan; // top or bottom field first scanning
4848 #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;
@@ -301,7 +301,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma · 49 unmodified lines
301301 cvErode(inimg, outimg, dilate->kernel, dilate->nb_iterations);
302302 }
303303
304−typedef struct {
304+typedef struct OCVFilterEntry {
305305 const char *name;
306306 size_t priv_size;
307307 int (*init)(AVFilterContext *ctx, const char *args);
libavfilter/vf_lut.c+1−1
@@ -63,7 +63,7 @@ enum var_name { · 62 unmodified lines
6363 VAR_VARS_NB
6464 };
6565
66−typedef struct {
66+typedef struct LutContext {
6767 const AVClass *class;
6868 uint8_t lut[4][256]; ///< lookup table for each component
6969 char *comp_expr_str[4];
libavfilter/vf_overlay.c+1−1
@@ -73,7 +73,7 @@ static const char *eof_action_str[] = { · 72 unmodified lines
7373 #define MAIN 0
7474 #define OVERLAY 1
7575
76−typedef struct {
76+typedef struct OverlayContext {
7777 const AVClass *class;
7878 int x, y; ///< position of overlayed picture
7979
libavfilter/vf_pad.c+1−1
@@ -94,7 +94,7 @@ static int query_formats(AVFilterContext *ctx) · 93 unmodified lines
9494 return 0;
9595 }
9696
97−typedef struct {
97+typedef struct PadContext {
9898 const AVClass *class;
9999 int w, h; ///< output dimensions, a value of 0 will result in the input size
100100 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
@@ -68,7 +68,7 @@ enum var_name { · 67 unmodified lines
6868 VARS_NB
6969 };
7070
71−typedef struct {
71+typedef struct ScaleContext {
7272 const AVClass *class;
7373 struct SwsContext *sws; ///< software scaler context
7474
libavfilter/vf_select.c+1−1
@@ -115,7 +115,7 @@ enum var_name { · 114 unmodified lines
115115
116116 #define FIFO_SIZE 8
117117
118−typedef struct {
118+typedef struct SelectContext {
119119 const AVClass *class;
120120 char *expr_str;
121121 AVExpr *expr;
libavfilter/vf_showinfo.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #include "internal.h"
3535 #include "video.h"
3636
37−typedef struct {
37+typedef struct ShowInfoContext {
3838 unsigned int frame;
3939 } ShowInfoContext;
4040
libavfilter/vf_transpose.c+1−1
@@ -45,7 +45,7 @@ enum TransposeDir { · 44 unmodified lines
4545 TRANSPOSE_CLOCK_FLIP,
4646 };
4747
48−typedef struct {
48+typedef struct TransContext {
4949 const AVClass *class;
5050 int hsub, vsub;
5151 int pixsteps[4];
libavfilter/vf_unsharp.c+1−1
@@ -62,7 +62,7 @@ typedef struct FilterParam { · 61 unmodified lines
6262 uint32_t *sc[(MAX_SIZE * MAX_SIZE) - 1]; ///< finite state machine storage
6363 } FilterParam;
6464
65−typedef struct {
65+typedef struct UnsharpContext {
6666 const AVClass *class;
6767 int lmsize_x, lmsize_y, cmsize_x, cmsize_y;
6868 float lamount, camount;
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_color.c+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #include "libavutil/parseutils.h"
4141 #include "drawutils.h"
4242
43−typedef struct {
43+typedef struct ColorContext {
4444 const AVClass *class;
4545 int w, h;
4646 uint8_t color[4];
libavfilter/vsrc_movie.c+1−1
@@ -41,7 +41,7 @@ · 40 unmodified lines
4141 #include "internal.h"
4242 #include "video.h"
4343
44−typedef struct {
44+typedef struct MovieContext {
4545 const AVClass *class;
4646 int64_t seek_point; ///< seekpoint in microseconds
4747 double seek_point_d;
libavfilter/vsrc_nullsrc.c+1−1
@@ -49,7 +49,7 @@ enum var_name { · 48 unmodified lines
4949 VAR_VARS_NB
5050 };
5151
52−typedef struct {
52+typedef struct NullContext {
5353 const AVClass *class;
5454 int w, h;
5555 char *tb_expr;
libavfilter/vsrc_testsrc.c+2−2
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242 #include "internal.h"
4343 #include "video.h"
4444
45−typedef struct {
45+typedef struct TestSourceContext {
4646 const AVClass *class;
4747 int h, w;
4848 unsigned int nb_frame;
@@ -193,7 +193,7 @@ static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize, · 144 unmodified lines
193193 #define LEFT_BOT_VBAR 16
194194 #define RIGHT_TOP_VBAR 32
195195 #define RIGHT_BOT_VBAR 64
196− struct {
196+ struct segments {
197197 int x, y, w, h;
198198 } segments[] = {
199199 { 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