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
35#include "buffersink.h"35#include "buffersink.h"
36#include "internal.h"36#include "internal.h"
37 37
38typedef struct {38typedef struct BufferSinkContext {
39 AVFrame *cur_frame; ///< last frame delivered on the sink39 AVFrame *cur_frame; ///< last frame delivered on the sink
40 AVAudioFifo *audio_fifo; ///< FIFO for audio samples40 AVAudioFifo *audio_fifo; ///< FIFO for audio samples
41 int64_t next_pts; ///< interpolating audio pts41 int64_t next_pts; ///< interpolating audio pts
libavfilter/buffersrc.c+1−1
@@ -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
43typedef struct {43typedef 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 link46 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
39 struct Buf *next;39 struct Buf *next;
40} Buf;40} Buf;
41 41
42typedef struct {42typedef struct FifoContext {
43 Buf root;43 Buf root;
44 Buf *last; ///< last buffered frame44 Buf *last; ///< last buffered frame
45 45
libavfilter/setpts.c+1−1
@@ -73,7 +73,7 @@ enum var_name { · 72 unmodified lines
73 VAR_VARS_NB73 VAR_VARS_NB
74};74};
75 75
76typedef struct {76typedef struct SetPTSContext {
77 const AVClass *class;77 const AVClass *class;
78 char *expr_str;78 char *expr_str;
79 AVExpr *expr;79 AVExpr *expr;
libavfilter/settb.c+1−1
@@ -57,7 +57,7 @@ enum var_name { · 56 unmodified lines
57 VAR_VARS_NB57 VAR_VARS_NB
58};58};
59 59
60typedef struct {60typedef 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];
libavfilter/vf_aspect.c+1−1
@@ -62,7 +62,7 @@ enum var_name { · 61 unmodified lines
62 VARS_NB62 VARS_NB
63};63};
64 64
65typedef struct {65typedef struct AspectContext {
66 const AVClass *class;66 const AVClass *class;
67 AVRational dar;67 AVRational dar;
68 AVRational sar;68 AVRational sar;
libavfilter/vf_blackframe.c+1−1
@@ -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
41typedef struct {41typedef struct BlackFrameContext {
42 const AVClass *class;42 const AVClass *class;
43 int bamount; ///< black amount43 int bamount; ///< black amount
44 int bthresh; ///< black threshold44 int bthresh; ///< black threshold
libavfilter/vf_boxblur.c+2−2
@@ -55,12 +55,12 @@ enum var_name { · 54 unmodified lines
55 VARS_NB55 VARS_NB
56};56};
57 57
58typedef struct {58typedef struct FilterParam {
59 int radius;59 int radius;
60 int power;60 int power;
61} FilterParam;61} FilterParam;
62 62
63typedef struct {63typedef 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;
libavfilter/vf_crop.c+1−1
@@ -68,7 +68,7 @@ enum var_name { · 67 unmodified lines
68 VAR_VARS_NB68 VAR_VARS_NB
69};69};
70 70
71typedef struct {71typedef 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 area73 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 area74 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
34#include "internal.h"34#include "internal.h"
35#include "video.h"35#include "video.h"
36 36
37typedef struct {37typedef 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;
libavfilter/vf_delogo.c+1−1
@@ -130,7 +130,7 @@ static void apply_delogo(uint8_t *dst, int dst_linesize, · 129 unmodified lines
130 }130 }
131}131}
132 132
133typedef struct {133typedef 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;
libavfilter/vf_drawbox.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
36 36
37enum { Y, U, V, A };37enum { Y, U, V, A };
38 38
39typedef struct {39typedef 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;
libavfilter/vf_drawtext.c+2−2
@@ -105,7 +105,7 @@ enum var_name { · 104 unmodified lines
105 VAR_VARS_NB105 VAR_VARS_NB
106};106};
107 107
108typedef struct {108typedef struct DrawTextContext {
109 const AVClass *class;109 const AVClass *class;
110#if CONFIG_LIBFONTCONFIG110#if CONFIG_LIBFONTCONFIG
111 uint8_t *font; ///< font to be used111 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_msg224#define FT_ERRMSG(e) ft_errors[e].err_msg
225 225
226typedef struct {226typedef 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 font229 FT_Bitmap bitmap; ///< array holding bitmaps of font
libavfilter/vf_fade.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
36#define FADE_IN 036#define FADE_IN 0
37#define FADE_OUT 137#define FADE_OUT 1
38 38
39typedef struct {39typedef 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;
libavfilter/vf_fieldorder.c+1−1
@@ -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
38typedef struct {38typedef struct FieldOrderContext {
39 const AVClass *class;39 const AVClass *class;
40 int dst_tff; ///< output bff/tff40 int dst_tff; ///< output bff/tff
41 int line_size[4]; ///< bytes of pixel data per line for each plane41 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
35#include "internal.h"35#include "internal.h"
36#include "video.h"36#include "video.h"
37 37
38typedef struct {38typedef struct FormatContext {
39 const AVClass *class;39 const AVClass *class;
40 char *pix_fmts;40 char *pix_fmts;
41 /**41 /**
libavfilter/vf_hflip.c+1−1
@@ -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
38typedef struct {38typedef struct FlipContext {
39 int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes39 int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes
40 int hsub, vsub; ///< chroma subsampling40 int hsub, vsub; ///< chroma subsampling
41} FlipContext;41} FlipContext;
libavfilter/vf_hqdn3d.h+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
24 24
25#include "libavutil/opt.h"25#include "libavutil/opt.h"
26 26
27typedef struct {27typedef 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;
libavfilter/vf_interlace.c+1−1
@@ -42,7 +42,7 @@ enum FieldType { · 41 unmodified lines
42 FIELD_LOWER = 1,42 FIELD_LOWER = 1,
43};43};
44 44
45typedef struct {45typedef struct InterlaceContext {
46 const AVClass *class;46 const AVClass *class;
47 enum ScanMode scan; // top or bottom field first scanning47 enum ScanMode scan; // top or bottom field first scanning
48#if FF_API_INTERLACE_LOWPASS_SET48#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
68 return 0;68 return 0;
69}69}
70 70
71typedef struct {71typedef 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
81typedef struct {81typedef 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
248typedef struct {248typedef 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
304typedef struct {304typedef 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);
libavfilter/vf_lut.c+1−1
@@ -63,7 +63,7 @@ enum var_name { · 62 unmodified lines
63 VAR_VARS_NB63 VAR_VARS_NB
64};64};
65 65
66typedef struct {66typedef struct LutContext {
67 const AVClass *class;67 const AVClass *class;
68 uint8_t lut[4][256]; ///< lookup table for each component68 uint8_t lut[4][256]; ///< lookup table for each component
69 char *comp_expr_str[4];69 char *comp_expr_str[4];
libavfilter/vf_overlay.c+1−1
@@ -73,7 +73,7 @@ static const char *eof_action_str[] = { · 72 unmodified lines
73#define MAIN 073#define MAIN 0
74#define OVERLAY 174#define OVERLAY 1
75 75
76typedef struct {76typedef struct OverlayContext {
77 const AVClass *class;77 const AVClass *class;
78 int x, y; ///< position of overlayed picture78 int x, y; ///< position of overlayed picture
79 79
libavfilter/vf_pad.c+1−1
@@ -94,7 +94,7 @@ static int query_formats(AVFilterContext *ctx) · 93 unmodified lines
94 return 0;94 return 0;
95}95}
96 96
97typedef struct {97typedef 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 size99 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 area100 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
29#include "internal.h"29#include "internal.h"
30#include "video.h"30#include "video.h"
31 31
32typedef struct {32typedef struct PixdescTestContext {
33 const AVPixFmtDescriptor *pix_desc;33 const AVPixFmtDescriptor *pix_desc;
34 uint16_t *line;34 uint16_t *line;
35} PixdescTestContext;35} PixdescTestContext;
libavfilter/vf_scale.c+1−1
@@ -68,7 +68,7 @@ enum var_name { · 67 unmodified lines
68 VARS_NB68 VARS_NB
69};69};
70 70
71typedef struct {71typedef struct ScaleContext {
72 const AVClass *class;72 const AVClass *class;
73 struct SwsContext *sws; ///< software scaler context73 struct SwsContext *sws; ///< software scaler context
74 74
libavfilter/vf_select.c+1−1
@@ -115,7 +115,7 @@ enum var_name { · 114 unmodified lines
115 115
116#define FIFO_SIZE 8116#define FIFO_SIZE 8
117 117
118typedef struct {118typedef struct SelectContext {
119 const AVClass *class;119 const AVClass *class;
120 char *expr_str;120 char *expr_str;
121 AVExpr *expr;121 AVExpr *expr;
libavfilter/vf_showinfo.c+1−1
@@ -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
37typedef struct {37typedef struct ShowInfoContext {
38 unsigned int frame;38 unsigned int frame;
39} ShowInfoContext;39} ShowInfoContext;
40 40
libavfilter/vf_transpose.c+1−1
@@ -45,7 +45,7 @@ enum TransposeDir { · 44 unmodified lines
45 TRANSPOSE_CLOCK_FLIP,45 TRANSPOSE_CLOCK_FLIP,
46};46};
47 47
48typedef struct {48typedef 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];
libavfilter/vf_unsharp.c+1−1
@@ -62,7 +62,7 @@ typedef struct FilterParam { · 61 unmodified lines
62 uint32_t *sc[(MAX_SIZE * MAX_SIZE) - 1]; ///< finite state machine storage62 uint32_t *sc[(MAX_SIZE * MAX_SIZE) - 1]; ///< finite state machine storage
63} FilterParam;63} FilterParam;
64 64
65typedef struct {65typedef 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;
libavfilter/vf_vflip.c+1−1
@@ -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
32typedef struct {32typedef struct FlipContext {
33 int vsub; ///< vertical chroma subsampling33 int vsub; ///< vertical chroma subsampling
34} FlipContext;34} FlipContext;
35 35
libavfilter/vsrc_color.c+1−1
@@ -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
43typedef struct {43typedef 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];
libavfilter/vsrc_movie.c+1−1
@@ -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
44typedef struct {44typedef struct MovieContext {
45 const AVClass *class;45 const AVClass *class;
46 int64_t seek_point; ///< seekpoint in microseconds46 int64_t seek_point; ///< seekpoint in microseconds
47 double seek_point_d;47 double seek_point_d;
libavfilter/vsrc_nullsrc.c+1−1
@@ -49,7 +49,7 @@ enum var_name { · 48 unmodified lines
49 VAR_VARS_NB49 VAR_VARS_NB
50};50};
51 51
52typedef struct {52typedef 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;
libavfilter/vsrc_testsrc.c+2−2
@@ -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
45typedef struct {45typedef 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 16193#define LEFT_BOT_VBAR 16
194#define RIGHT_TOP_VBAR 32194#define RIGHT_TOP_VBAR 32
195#define RIGHT_BOT_VBAR 64195#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 */

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