History

avfilter: don't anonymously typedef structs

Paul B Mahol committed 9 years ago

Commit ed93ed51 parent 0fbc7a292 files · +116 −116Browse files

Unified · Split

92 files
  1. libavfilter/aeval.c +1 −1
  2. libavfilter/af_afade.c +1 −1
  3. libavfilter/af_amerge.c +1 −1
  4. libavfilter/af_apad.c +1 −1
  5. libavfilter/af_aresample.c +1 −1
  6. libavfilter/af_asetnsamples.c +1 −1
  7. libavfilter/af_asetrate.c +1 −1
  8. libavfilter/af_astats.c +1 −1
  9. libavfilter/af_atempo.c +2 −2
  10. libavfilter/af_earwax.c +1 −1
  11. libavfilter/af_firequalizer.c +3 −3
  12. libavfilter/af_hdcd.c +2 −2
  13. libavfilter/af_volumedetect.c +1 −1
  14. libavfilter/asrc_anoisesrc.c +1 −1
  15. libavfilter/asrc_anullsrc.c +1 −1
  16. libavfilter/asrc_flite.c +1 −1
  17. libavfilter/asrc_sine.c +1 −1
  18. libavfilter/avf_concat.c +1 −1
  19. libavfilter/avf_showcqt.h +4 −4
  20. libavfilter/avf_showspectrum.c +1 −1
  21. libavfilter/avf_showwaves.c +1 −1
  22. libavfilter/bbox.h +1 −1
  23. libavfilter/buffersink.h +2 −2
  24. libavfilter/deshake.h +5 −5
  25. libavfilter/deshake_opencl.h +1 −1
  26. libavfilter/dualinput.h +1 −1
  27. libavfilter/ebur128.h +1 −1
  28. libavfilter/f_bench.c +1 −1
  29. libavfilter/f_ebur128.c +1 −1
  30. libavfilter/f_interleave.c +1 −1
  31. libavfilter/f_perms.c +1 −1
  32. libavfilter/f_sendcmd.c +3 −3
  33. libavfilter/f_zmq.c +2 −2
  34. libavfilter/signature.h +5 −5
  35. libavfilter/signature_lookup.c +1 −1
  36. libavfilter/tinterlace.h +1 −1
  37. libavfilter/unsharp.h +1 −1
  38. libavfilter/vf_alphamerge.c +1 −1
  39. libavfilter/vf_bbox.c +1 −1
  40. libavfilter/vf_blackdetect.c +1 −1
  41. libavfilter/vf_codecview.c +1 −1
  42. libavfilter/vf_colorbalance.c +2 −2
  43. libavfilter/vf_colorchannelmixer.c +1 −1
  44. libavfilter/vf_colorlevels.c +2 −2
  45. libavfilter/vf_colormatrix.c +1 −1
  46. libavfilter/vf_curves.c +1 −1
  47. libavfilter/vf_decimate.c +1 −1
  48. libavfilter/vf_dejudder.c +1 −1
  49. libavfilter/vf_detelecine.c +1 −1
  50. libavfilter/vf_edgedetect.c +1 −1
  51. libavfilter/vf_eq.h +1 −1
  52. libavfilter/vf_extractplanes.c +1 −1
  53. libavfilter/vf_fftfilt.c +1 −1
  54. libavfilter/vf_field.c +1 −1
  55. libavfilter/vf_fieldmatch.c +1 −1
  56. libavfilter/vf_geq.c +1 −1
  57. libavfilter/vf_histeq.c +1 −1
  58. libavfilter/vf_hqx.c +1 −1
  59. libavfilter/vf_hue.c +1 −1
  60. libavfilter/vf_idet.h +1 −1
  61. libavfilter/vf_il.c +1 −1
  62. libavfilter/vf_kerndeint.c +1 −1
  63. libavfilter/vf_mcdeint.c +1 −1
  64. libavfilter/vf_mpdecimate.c +1 −1
  65. libavfilter/vf_nlmeans.c +1 −1
  66. libavfilter/vf_noise.h +2 −2
  67. libavfilter/vf_owdenoise.c +1 −1
  68. libavfilter/vf_palettegen.c +1 −1
  69. libavfilter/vf_pp.c +1 −1
  70. libavfilter/vf_removelogo.c +1 −1
  71. libavfilter/vf_sab.c +2 −2
  72. libavfilter/vf_selectivecolor.c +1 −1
  73. libavfilter/vf_separatefields.c +1 −1
  74. libavfilter/vf_setfield.c +1 −1
  75. libavfilter/vf_showpalette.c +1 −1
  76. libavfilter/vf_signalstats.c +1 −1
  77. libavfilter/vf_smartblur.c +2 −2
  78. libavfilter/vf_spp.h +1 −1
  79. libavfilter/vf_subtitles.c +1 −1
  80. libavfilter/vf_super2xsai.c +1 −1
  81. libavfilter/vf_telecine.c +1 −1
  82. libavfilter/vf_thumbnail.c +1 −1
  83. libavfilter/vf_tile.c +1 −1
  84. libavfilter/vf_uspp.c +1 −1
  85. libavfilter/vf_vidstabdetect.c +1 −1
  86. libavfilter/vf_vidstabtransform.c +1 −1
  87. libavfilter/vf_vignette.c +1 −1
  88. libavfilter/vf_xbr.c +1 −1
  89. libavfilter/vidstabutils.c +1 −1
  90. libavfilter/vsrc_cellauto.c +1 −1
  91. libavfilter/vsrc_life.c +1 −1
  92. libavfilter/vsrc_mandelbrot.c +1 −1
libavfilter/aeval.c+1−1
@@ -53,7 +53,7 @@ enum var_name { · 52 unmodified lines
5353 VAR_VARS_NB
5454 };
5555
56−typedef struct {
56+typedef struct EvalContext {
5757 const AVClass *class;
5858 char *sample_rate_str;
5959 int sample_rate;
libavfilter/af_afade.c+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "avfilter.h"
3030 #include "internal.h"
3131
32−typedef struct {
32+typedef struct AudioFadeContext {
3333 const AVClass *class;
3434 int type;
3535 int curve, curve2;
libavfilter/af_amerge.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737
3838 #define SWR_CH_MAX 64
3939
40−typedef struct {
40+typedef struct AMergeContext {
4141 const AVClass *class;
4242 int nb_inputs;
4343 int route[SWR_CH_MAX]; /**< channels routing, see copy_samples */
libavfilter/af_apad.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #include "audio.h"
3535 #include "internal.h"
3636
37−typedef struct {
37+typedef struct APadContext {
3838 const AVClass *class;
3939 int64_t next_pts;
4040
libavfilter/af_aresample.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #include "audio.h"
3535 #include "internal.h"
3636
37−typedef struct {
37+typedef struct AResampleContext {
3838 const AVClass *class;
3939 int sample_rate_arg;
4040 double ratio;
libavfilter/af_asetnsamples.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "internal.h"
3434 #include "formats.h"
3535
36−typedef struct {
36+typedef struct ASNSContext {
3737 const AVClass *class;
3838 int nb_out_samples; ///< how many samples to output
3939 AVAudioFifo *fifo; ///< samples are queued here
libavfilter/af_asetrate.c+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #include "avfilter.h"
2323 #include "internal.h"
2424
25−typedef struct {
25+typedef struct ASetRateContext {
2626 const AVClass *class;
2727 int sample_rate;
2828 int rescale_pts;
libavfilter/af_astats.c+1−1
@@ -42,7 +42,7 @@ typedef struct ChannelStats { · 41 unmodified lines
4242 uint64_t nb_samples;
4343 } ChannelStats;
4444
45−typedef struct {
45+typedef struct AudioStatsContext {
4646 const AVClass *class;
4747 ChannelStats *chstats;
4848 int nb_channels;
libavfilter/af_atempo.c+2−2
@@ -53,7 +53,7 @@ · 52 unmodified lines
5353 /**
5454 * A fragment of audio waveform
5555 */
56−typedef struct {
56+typedef struct AudioFragment {
5757 // index of the first sample of this fragment in the overall waveform;
5858 // 0: input sample position
5959 // 1: output sample position
@@ -84,7 +84,7 @@ typedef enum { · 24 unmodified lines
8484 /**
8585 * Filter state machine
8686 */
87−typedef struct {
87+typedef struct ATempoContext {
8888 const AVClass *class;
8989
9090 // ring-buffer of input samples, necessary because some times
libavfilter/af_earwax.c+1−1
@@ -71,7 +71,7 @@ static const int8_t filt[NUMTAPS] = { · 70 unmodified lines
7171 0, -5,
7272 4, 0};
7373
74−typedef struct {
74+typedef struct EarwaxContext {
7575 int16_t taps[NUMTAPS * 2];
7676 } EarwaxContext;
7777
libavfilter/af_firequalizer.c+3−3
@@ -52,17 +52,17 @@ enum Scale { · 51 unmodified lines
5252 };
5353
5454 #define NB_GAIN_ENTRY_MAX 4096
55−typedef struct {
55+typedef struct GainEntry {
5656 double freq;
5757 double gain;
5858 } GainEntry;
5959
60−typedef struct {
60+typedef struct OverlapIndex {
6161 int buf_idx;
6262 int overlap_idx;
6363 } OverlapIndex;
6464
65−typedef struct {
65+typedef struct FIREqualizerContext {
6666 const AVClass *class;
6767
6868 RDFTContext *analysis_rdft;
libavfilter/af_hdcd.c+2−2
@@ -837,7 +837,7 @@ static const int32_t gaintab[] = { · 836 unmodified lines
837837 /** tone generator: sample_number, frequency, sample_rate, amplitude */
838838 #define TONEGEN16(sn, f, sr, a) (int16_t)(sin((6.28318530718 * (sn) * (f)) /(sr)) * (a) * 0x7fff)
839839
840−typedef struct {
840+typedef struct hdcd_state {
841841 uint64_t window;
842842 unsigned char readahead;
843843
@@ -904,7 +904,7 @@ static const char * const pf_str[] = { · 60 unmodified lines
904904 "?", "A", "B", "A+B"
905905 };
906906
907−typedef struct {
907+typedef struct hdcd_detection_data {
908908 hdcd_dv hdcd_detected;
909909 hdcd_pf packet_type;
910910 int total_packets; /**< valid packets */
libavfilter/af_volumedetect.c+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 #include "avfilter.h"
2525 #include "internal.h"
2626
27−typedef struct {
27+typedef struct VolDetectContext {
2828 /**
2929 * Number of samples at each PCM value.
3030 * histogram[0x8000 + i] is the number of samples at value i.
libavfilter/asrc_anoisesrc.c+1−1
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include "libavutil/lfg.h"
2626 #include "libavutil/random_seed.h"
2727
28−typedef struct {
28+typedef struct ANoiseSrcContext {
2929 const AVClass *class;
3030 int sample_rate;
3131 double amplitude;
libavfilter/asrc_anullsrc.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #include "avfilter.h"
3535 #include "internal.h"
3636
37−typedef struct {
37+typedef struct ANullContext {
3838 const AVClass *class;
3939 char *channel_layout_str;
4040 uint64_t channel_layout;
libavfilter/asrc_flite.c+1−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
3232 #include "formats.h"
3333 #include "internal.h"
3434
35−typedef struct {
35+typedef struct FliteContext {
3636 const AVClass *class;
3737 char *voice_str;
3838 char *textfile;
libavfilter/asrc_sine.c+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "avfilter.h"
2929 #include "internal.h"
3030
31−typedef struct {
31+typedef struct SineContext {
3232 const AVClass *class;
3333 double frequency;
3434 double beep_factor;
libavfilter/avf_concat.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
3636
3737 #define TYPE_ALL 2
3838
39−typedef struct {
39+typedef struct ConcatContext {
4040 const AVClass *class;
4141 unsigned nb_streams[TYPE_ALL]; /**< number of out streams of each type */
4242 unsigned nb_segments;
libavfilter/avf_showcqt.h+4−4
@@ -25,16 +25,16 @@ · 24 unmodified lines
2525 #include "avfilter.h"
2626 #include "internal.h"
2727
28−typedef struct {
28+typedef struct Coeffs {
2929 FFTSample *val;
3030 int start, len;
3131 } Coeffs;
3232
33−typedef struct {
33+typedef struct RGBFloat {
3434 float r, g, b;
3535 } RGBFloat;
3636
37−typedef struct {
37+typedef struct YUVFloat {
3838 float y, u, v;
3939 } YUVFloat;
4040
@@ -43,7 +43,7 @@ typedef union { · 2 unmodified lines
4343 YUVFloat yuv;
4444 } ColorFloat;
4545
46−typedef struct {
46+typedef struct ShowCQTContext {
4747 const AVClass *class;
4848 AVFilterContext *ctx;
4949 AVFrame *axis_frame;
libavfilter/avf_showspectrum.c+1−1
@@ -48,7 +48,7 @@ enum ColorMode { CHANNEL, INTENSITY, RAINBOW, MORELAND, NEBULAE, FIRE, FIERY, · 47 unmodified lines
4848 enum SlideMode { REPLACE, SCROLL, FULLFRAME, RSCROLL, NB_SLIDES };
4949 enum Orientation { VERTICAL, HORIZONTAL, NB_ORIENTATIONS };
5050
51−typedef struct {
51+typedef struct ShowSpectrumContext {
5252 const AVClass *class;
5353 int w, h;
5454 AVFrame *outpicref;
libavfilter/avf_showwaves.c+1−1
@@ -55,7 +55,7 @@ struct frame_node { · 54 unmodified lines
5555 struct frame_node *next;
5656 };
5757
58−typedef struct {
58+typedef struct ShowWavesContext {
5959 const AVClass *class;
6060 int w, h;
6161 AVRational rate;
libavfilter/bbox.h+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323
2424 #include <stdint.h>
2525
26−typedef struct {
26+typedef struct FFBoundingBox {
2727 int x1, x2, y1, y2;
2828 } FFBoundingBox;
2929
libavfilter/buffersink.h+2−2
@@ -62,7 +62,7 @@ int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flag · 61 unmodified lines
6262 /**
6363 * Struct to use for initializing a buffersink context.
6464 */
65−typedef struct {
65+typedef struct AVBufferSinkParams {
6666 const enum AVPixelFormat *pixel_fmts; ///< list of allowed pixel formats, terminated by AV_PIX_FMT_NONE
6767 } AVBufferSinkParams;
6868
@@ -76,7 +76,7 @@ AVBufferSinkParams *av_buffersink_params_alloc(void); · 7 unmodified lines
7676 /**
7777 * Struct to use for initializing an abuffersink context.
7878 */
79−typedef struct {
79+typedef struct AVABufferSinkParams {
8080 const enum AVSampleFormat *sample_fmts; ///< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE
8181 const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1
8282 const int *channel_counts; ///< list of allowed channel counts, terminated by -1
libavfilter/deshake.h+5−5
@@ -37,17 +37,17 @@ enum SearchMethod { · 36 unmodified lines
3737 SEARCH_COUNT
3838 };
3939
40−typedef struct {
40+typedef struct IntMotionVector {
4141 int x; ///< Horizontal shift
4242 int y; ///< Vertical shift
4343 } IntMotionVector;
4444
45−typedef struct {
45+typedef struct MotionVector {
4646 double x; ///< Horizontal shift
4747 double y; ///< Vertical shift
4848 } MotionVector;
4949
50−typedef struct {
50+typedef struct Transform {
5151 MotionVector vec; ///< Motion vector
5252 double angle; ///< Angle of rotation
5353 double zoom; ///< Zoom percentage
@@ -55,7 +55,7 @@ typedef struct { · 1 unmodified line
5555
5656 #if CONFIG_OPENCL
5757
58−typedef struct {
58+typedef struct DeshakeOpenclContext {
5959 cl_command_queue command_queue;
6060 cl_program program;
6161 cl_kernel kernel_luma;
@@ -73,7 +73,7 @@ typedef struct { · 11 unmodified lines
7373
7474 #define MAX_R 64
7575
76−typedef struct {
76+typedef struct DeshakeContext {
7777 const AVClass *class;
7878 int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search
7979 double *angles; ///< Scratch buffer for block angles
libavfilter/deshake_opencl.h+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323
2424 #include "deshake.h"
2525
26−typedef struct {
26+typedef struct float4 {
2727 float x;
2828 float y;
2929 float z;
libavfilter/dualinput.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "framesync.h"
3030 #include "internal.h"
3131
32−typedef struct {
32+typedef struct FFDualInputContext {
3333 FFFrameSync fs;
3434
3535 AVFrame *(*process)(AVFilterContext *ctx, AVFrame *main, const AVFrame *second);
libavfilter/ebur128.h+1−1
@@ -100,7 +100,7 @@ struct FFEBUR128StateInternal; · 99 unmodified lines
100100 *
101101 * You should not need to modify this struct directly.
102102 */
103−typedef struct {
103+typedef struct FFEBUR128State {
104104 int mode; /**< The current mode. */
105105 unsigned int channels; /**< The number of channels. */
106106 unsigned long samplerate; /**< The sample rate. */
libavfilter/f_bench.c+1−1
@@ -28,7 +28,7 @@ enum BenchAction { · 27 unmodified lines
2828 NB_ACTION
2929 };
3030
31−typedef struct {
31+typedef struct BenchContext {
3232 const AVClass *class;
3333 int action;
3434 int64_t max, min;
libavfilter/f_ebur128.c+1−1
@@ -90,7 +90,7 @@ struct integrator { · 89 unmodified lines
9090
9191 struct rect { int x, y, w, h; };
9292
93−typedef struct {
93+typedef struct EBUR128Context {
9494 const AVClass *class; ///< AVClass context for log and options purpose
9595
9696 /* peak metering */
libavfilter/f_interleave.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737 #include "audio.h"
3838 #include "video.h"
3939
40−typedef struct {
40+typedef struct InterleaveContext {
4141 const AVClass *class;
4242 int nb_inputs;
4343 struct FFBufQueue *queues;
libavfilter/f_perms.c+1−1
@@ -33,7 +33,7 @@ enum mode { · 32 unmodified lines
3333 NB_MODES
3434 };
3535
36−typedef struct {
36+typedef struct PermsContext {
3737 const AVClass *class;
3838 AVLFG lfg;
3939 int64_t random_seed;
libavfilter/f_sendcmd.c+3−3
@@ -55,13 +55,13 @@ static inline char *make_command_flags_str(AVBPrint *pbuf, int flags) · 54 unmodified lines
5555 return pbuf->str;
5656 }
5757
58−typedef struct {
58+typedef struct Command {
5959 int flags;
6060 char *target, *command, *arg;
6161 int index;
6262 } Command;
6363
64−typedef struct {
64+typedef struct Interval {
6565 int64_t start_ts; ///< start timestamp expressed as microseconds units
6666 int64_t end_ts; ///< end timestamp expressed as microseconds units
6767 int index; ///< unique index for these interval commands
@@ -70,7 +70,7 @@ typedef struct { · 2 unmodified lines
7070 int enabled; ///< current time detected inside this interval
7171 } Interval;
7272
73−typedef struct {
73+typedef struct SendCmdContext {
7474 const AVClass *class;
7575 Interval *intervals;
7676 int nb_intervals;
libavfilter/f_zmq.c+2−2
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "audio.h"
3434 #include "video.h"
3535
36−typedef struct {
36+typedef struct ZMQContext {
3737 const AVClass *class;
3838 void *zmq;
3939 void *responder;
@@ -86,7 +86,7 @@ static void av_cold uninit(AVFilterContext *ctx) · 46 unmodified lines
8686 zmq_ctx_destroy(zmq->zmq);
8787 }
8888
89−typedef struct {
89+typedef struct Command {
9090 char *target, *command, *arg;
9191 } Command;
9292
libavfilter/signature.h+5−5
@@ -51,17 +51,17 @@ enum formats { · 50 unmodified lines
5151 NB_FORMATS
5252 };
5353
54−typedef struct {
54+typedef struct Point {
5555 uint8_t x;
5656 uint8_t y;
5757 } Point;
5858
59−typedef struct {
59+typedef struct Block {
6060 Point up;
6161 Point to;
6262 } Block;
6363
64−typedef struct {
64+typedef struct ElemCat {
6565 int av_elem; /* average element category */
6666 short left_count; /* count of blocks that will be added together */
6767 short block_count; /* count of blocks per element */
@@ -99,7 +99,7 @@ typedef struct MatchingInfo { · 31 unmodified lines
9999 struct MatchingInfo* next;
100100 } MatchingInfo;
101101
102−typedef struct {
102+typedef struct StreamContext {
103103 AVRational time_base;
104104 /* needed for xml_export */
105105 int w; /* height */
@@ -124,7 +124,7 @@ typedef struct { · 18 unmodified lines
124124 int exported; /* boolean whether stream already exported */
125125 } StreamContext;
126126
127−typedef struct {
127+typedef struct SignatureContext {
128128 const AVClass *class;
129129 /* input parameters */
130130 int mode;
libavfilter/signature_lookup.c+1−1
@@ -187,7 +187,7 @@ static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont · 186 unmodified lines
187187 FineSignature *b[COARSE_SIZE];
188188 } pairs[COARSE_SIZE];
189189
190− typedef struct {
190+ typedef struct hspace_elem {
191191 int dist;
192192 size_t score;
193193 FineSignature *a;
libavfilter/tinterlace.h+1−1
@@ -46,7 +46,7 @@ enum TInterlaceMode { · 45 unmodified lines
4646 MODE_NB,
4747 };
4848
49−typedef struct {
49+typedef struct TInterlaceContext {
5050 const AVClass *class;
5151 int mode; ///< TInterlaceMode, interlace mode selected
5252 AVRational preout_time_base;
libavfilter/unsharp.h+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333
3434 #if CONFIG_OPENCL
3535
36−typedef struct {
36+typedef struct UnsharpOpenclContext {
3737 cl_command_queue command_queue;
3838 cl_program program;
3939 cl_kernel kernel_default;
libavfilter/vf_alphamerge.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
3636
3737 enum { Y, U, V, A };
3838
39−typedef struct {
39+typedef struct AlphaMergeContext {
4040 int is_packed_rgb;
4141 uint8_t rgba_map[4];
4242 struct FFBufQueue queue_main;
libavfilter/vf_bbox.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "bbox.h"
3131 #include "internal.h"
3232
33−typedef struct {
33+typedef struct BBoxContext {
3434 const AVClass *class;
3535 int min_val;
3636 } BBoxContext;
libavfilter/vf_blackdetect.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "avfilter.h"
3131 #include "internal.h"
3232
33−typedef struct {
33+typedef struct BlackDetectContext {
3434 const AVClass *class;
3535 double black_min_duration_time; ///< minimum duration of detected black, in seconds
3636 int64_t black_min_duration; ///< minimum duration of detected black, expressed in timebase units
libavfilter/vf_codecview.c+1−1
@@ -44,7 +44,7 @@ · 43 unmodified lines
4444 #define FRAME_TYPE_P (1<<1)
4545 #define FRAME_TYPE_B (1<<2)
4646
47−typedef struct {
47+typedef struct CodecViewContext {
4848 const AVClass *class;
4949 unsigned mv;
5050 unsigned frame_type;
libavfilter/vf_colorbalance.c+2−2
@@ -31,13 +31,13 @@ · 30 unmodified lines
3131 #define B 2
3232 #define A 3
3333
34−typedef struct {
34+typedef struct Range {
3535 double shadows;
3636 double midtones;
3737 double highlights;
3838 } Range;
3939
40−typedef struct {
40+typedef struct ColorBalanceContext {
4141 const AVClass *class;
4242 Range cyan_red;
4343 Range magenta_green;
libavfilter/vf_colorchannelmixer.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #define B 2
3131 #define A 3
3232
33−typedef struct {
33+typedef struct ColorChannelMixerContext {
3434 const AVClass *class;
3535 double rr, rg, rb, ra;
3636 double gr, gg, gb, ga;
libavfilter/vf_colorlevels.c+2−2
@@ -32,12 +32,12 @@ · 31 unmodified lines
3232 #define B 2
3333 #define A 3
3434
35−typedef struct {
35+typedef struct Range {
3636 double in_min, in_max;
3737 double out_min, out_max;
3838 } Range;
3939
40−typedef struct {
40+typedef struct ColorLevelsContext {
4141 const AVClass *class;
4242 Range range[4];
4343 int nb_comp;
libavfilter/vf_colormatrix.c+1−1
@@ -58,7 +58,7 @@ enum ColorMode { · 57 unmodified lines
5858 COLOR_MODE_COUNT
5959 };
6060
61−typedef struct {
61+typedef struct ColorMatrixContext {
6262 const AVClass *class;
6363 int yuv_convert[25][3][3];
6464 int interlaced;
libavfilter/vf_curves.c+1−1
@@ -58,7 +58,7 @@ enum preset { · 57 unmodified lines
5858 NB_PRESETS,
5959 };
6060
61−typedef struct {
61+typedef struct CurvesContext {
6262 const AVClass *class;
6363 int preset;
6464 char *comp_points_str[NB_COMP + 1];
libavfilter/vf_decimate.c+1−1
@@ -34,7 +34,7 @@ struct qitem { · 33 unmodified lines
3434 int64_t totdiff;
3535 };
3636
37−typedef struct {
37+typedef struct DecimateContext {
3838 const AVClass *class;
3939 struct qitem *queue; ///< window of cycle frames and the associated data diff
4040 int fid; ///< current frame id in the queue
libavfilter/vf_dejudder.c+1−1
@@ -55,7 +55,7 @@ · 54 unmodified lines
5555 #include "internal.h"
5656 #include "video.h"
5757
58−typedef struct {
58+typedef struct DejudderContext {
5959 const AVClass *class;
6060 int64_t *ringbuff;
6161 int i1, i2, i3, i4;
libavfilter/vf_detelecine.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 DetelecineContext {
3636 const AVClass *class;
3737 int first_field;
3838 char *pattern;
libavfilter/vf_edgedetect.c+1−1
@@ -44,7 +44,7 @@ struct plane_info { · 43 unmodified lines
4444 char *directions;
4545 };
4646
47−typedef struct {
47+typedef struct EdgeDetectContext {
4848 const AVClass *class;
4949 struct plane_info planes[3];
5050 int nb_planes;
libavfilter/vf_eq.h+1−1
@@ -55,7 +55,7 @@ typedef struct EQParameters { · 54 unmodified lines
5555
5656 } EQParameters;
5757
58−typedef struct {
58+typedef struct EQContext {
5959 const AVClass *class;
6060
6161 EQParameters param[3];
libavfilter/vf_extractplanes.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #define PLANE_U 0x20
3939 #define PLANE_V 0x40
4040
41−typedef struct {
41+typedef struct ExtractPlanesContext {
4242 const AVClass *class;
4343 int requested_planes;
4444 int map[4];
libavfilter/vf_fftfilt.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333
3434 #define MAX_PLANES 4
3535
36−typedef struct {
36+typedef struct FFTFILTContext {
3737 const AVClass *class;
3838
3939 RDFTContext *rdft;
libavfilter/vf_field.c+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131
3232 enum FieldType { FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM };
3333
34−typedef struct {
34+typedef struct FieldContext {
3535 const AVClass *class;
3636 int type; ///< FieldType
3737 int nb_planes; ///< number of planes of the current format
libavfilter/vf_fieldmatch.c+1−1
@@ -72,7 +72,7 @@ enum comb_dbg { · 71 unmodified lines
7272 NB_COMBDBG
7373 };
7474
75−typedef struct {
75+typedef struct FieldMatchContext {
7676 const AVClass *class;
7777
7878 AVFrame *prv, *src, *nxt; ///< main sliding window of 3 frames
libavfilter/vf_geq.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "libavutil/pixdesc.h"
3434 #include "internal.h"
3535
36−typedef struct {
36+typedef struct GEQContext {
3737 const AVClass *class;
3838 AVExpr *e[4]; ///< expressions for each plane
3939 char *expr_str[4+3]; ///< expression strings for each plane
libavfilter/vf_histeq.c+1−1
@@ -54,7 +54,7 @@ enum HisteqAntibanding { · 53 unmodified lines
5454 HISTEQ_ANTIBANDING_NB,
5555 };
5656
57−typedef struct {
57+typedef struct HisteqContext {
5858 const AVClass *class;
5959 float strength;
6060 float intensity;
libavfilter/vf_hqx.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434
3535 typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
3636
37−typedef struct {
37+typedef struct HQXContext {
3838 const AVClass *class;
3939 int n;
4040 hqxfunc_t func;
libavfilter/vf_hue.c+1−1
@@ -57,7 +57,7 @@ enum var_name { · 56 unmodified lines
5757 VAR_NB
5858 };
5959
60−typedef struct {
60+typedef struct HueContext {
6161 const AVClass *class;
6262 float hue_deg; /* hue expressed in degrees */
6363 float hue; /* hue expressed in radians */
libavfilter/vf_idet.h+1−1
@@ -39,7 +39,7 @@ typedef enum { · 38 unmodified lines
3939 REPEAT_BOTTOM,
4040 } RepeatedField;
4141
42−typedef struct {
42+typedef struct IDETContext {
4343 const AVClass *class;
4444 float interlace_threshold;
4545 float progressive_threshold;
libavfilter/vf_il.c+1−1
@@ -36,7 +36,7 @@ enum FilterMode { · 35 unmodified lines
3636 MODE_DEINTERLEAVE
3737 };
3838
39−typedef struct {
39+typedef struct IlContext {
4040 const AVClass *class;
4141 int luma_mode, chroma_mode, alpha_mode; ///<FilterMode
4242 int luma_swap, chroma_swap, alpha_swap;
libavfilter/vf_kerndeint.c+1−1
@@ -35,7 +35,7 @@ · 34 unmodified lines
3535 #include "formats.h"
3636 #include "internal.h"
3737
38−typedef struct {
38+typedef struct KerndeintContext {
3939 const AVClass *class;
4040 int frame; ///< frame count, starting from 0
4141 int thresh, map, order, sharp, twoway;
libavfilter/vf_mcdeint.c+1−1
@@ -69,7 +69,7 @@ enum MCDeintParity { · 68 unmodified lines
6969 PARITY_BFF = 1, ///< bottom field first
7070 };
7171
72−typedef struct {
72+typedef struct MCDeintContext {
7373 const AVClass *class;
7474 int mode; ///< MCDeintMode
7575 int parity; ///< MCDeintParity
libavfilter/vf_mpdecimate.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "formats.h"
3434 #include "video.h"
3535
36−typedef struct {
36+typedef struct DecimateContext {
3737 const AVClass *class;
3838 int lo, hi; ///< lower and higher threshold number of differences
3939 ///< values for 8x8 blocks
libavfilter/vf_nlmeans.c+1−1
@@ -47,7 +47,7 @@ struct weighted_avg { · 46 unmodified lines
4747 #define WEIGHT_LUT_NBITS 9
4848 #define WEIGHT_LUT_SIZE (1<<WEIGHT_LUT_NBITS)
4949
50−typedef struct {
50+typedef struct NLMeansContext {
5151 const AVClass *class;
5252 int nb_planes;
5353 int chroma_w, chroma_h;
libavfilter/vf_noise.h+2−2
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #define NOISE_AVERAGED 8
3535 #define NOISE_PATTERN 16
3636
37−typedef struct {
37+typedef struct FilterParams {
3838 int strength;
3939 unsigned flags;
4040 AVLFG lfg;
@@ -45,7 +45,7 @@ typedef struct { · 4 unmodified lines
4545 int rand_shift_init;
4646 } FilterParams;
4747
48−typedef struct {
48+typedef struct NoiseContext {
4949 const AVClass *class;
5050 int nb_planes;
5151 int bytewidth[4];
libavfilter/vf_owdenoise.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #include "avfilter.h"
3535 #include "internal.h"
3636
37−typedef struct {
37+typedef struct OWDenoiseContext {
3838 const AVClass *class;
3939 double luma_strength;
4040 double chroma_strength;
libavfilter/vf_palettegen.c+1−1
@@ -60,7 +60,7 @@ enum { · 59 unmodified lines
6060 #define NBITS 5
6161 #define HIST_SIZE (1<<(3*NBITS))
6262
63−typedef struct {
63+typedef struct PaletteGenContext {
6464 const AVClass *class;
6565
6666 int max_colors;
libavfilter/vf_pp.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030
3131 #include "libpostproc/postprocess.h"
3232
33−typedef struct {
33+typedef struct PPFilterContext {
3434 const AVClass *class;
3535 char *subfilters;
3636 int mode_id;
libavfilter/vf_removelogo.c+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
7979 #include "lavfutils.h"
8080 #include "lswsutils.h"
8181
82−typedef struct {
82+typedef struct RemovelogoContext {
8383 const AVClass *class;
8484 char *filename;
8585 /* Stores our collection of masks. The first is for an array of
libavfilter/vf_sab.c+2−2
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 #include "formats.h"
3232 #include "internal.h"
3333
34−typedef struct {
34+typedef struct FilterParam {
3535 float radius;
3636 float pre_filter_radius;
3737 float strength;
@@ -46,7 +46,7 @@ typedef struct { · 8 unmodified lines
4646 int color_diff_coeff[COLOR_DIFF_COEFF_SIZE];
4747 } FilterParam;
4848
49−typedef struct {
49+typedef struct SabContext {
5050 const AVClass *class;
5151 FilterParam luma;
5252 FilterParam chroma;
libavfilter/vf_selectivecolor.c+1−1
@@ -77,7 +77,7 @@ typedef struct ThreadData { · 76 unmodified lines
7777 AVFrame *in, *out;
7878 } ThreadData;
7979
80−typedef struct {
80+typedef struct SelectiveColorContext {
8181 const AVClass *class;
8282 int correction_method;
8383 char *opt_cmyk_adjust[NB_RANGES];
libavfilter/vf_separatefields.c+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #include "avfilter.h"
2323 #include "internal.h"
2424
25−typedef struct {
25+typedef struct SeparateFieldsContext {
2626 int nb_planes;
2727 AVFrame *second;
2828 } SeparateFieldsContext;
libavfilter/vf_setfield.c+1−1
@@ -35,7 +35,7 @@ enum SetFieldMode { · 34 unmodified lines
3535 MODE_PROG,
3636 };
3737
38−typedef struct {
38+typedef struct SetFieldContext {
3939 const AVClass *class;
4040 int mode; ///< SetFieldMode
4141 } SetFieldContext;
libavfilter/vf_showpalette.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 ShowPaletteContext {
3232 const AVClass *class;
3333 int size;
3434 } ShowPaletteContext;
libavfilter/vf_signalstats.c+1−1
@@ -33,7 +33,7 @@ enum FilterMode { · 32 unmodified lines
3333 FILT_NUMB
3434 };
3535
36−typedef struct {
36+typedef struct SignalstatsContext {
3737 const AVClass *class;
3838 int chromah; // height of chroma plane
3939 int chromaw; // width of chroma plane
libavfilter/vf_smartblur.c+2−2
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242 #define THRESHOLD_MIN -30
4343 #define THRESHOLD_MAX 30
4444
45−typedef struct {
45+typedef struct FilterParam {
4646 float radius;
4747 float strength;
4848 int threshold;
@@ -50,7 +50,7 @@ typedef struct { · 1 unmodified line
5050 struct SwsContext *filter_context;
5151 } FilterParam;
5252
53−typedef struct {
53+typedef struct SmartblurContext {
5454 const AVClass *class;
5555 FilterParam luma;
5656 FilterParam chroma;
libavfilter/vf_spp.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828
2929 #define MAX_LEVEL 6 /* quality levels */
3030
31−typedef struct {
31+typedef struct SPPContext {
3232 const AVClass *av_class;
3333
3434 int log2_count;
libavfilter/vf_subtitles.c+1−1
@@ -44,7 +44,7 @@ · 43 unmodified lines
4444 #include "formats.h"
4545 #include "video.h"
4646
47−typedef struct {
47+typedef struct AssContext {
4848 const AVClass *class;
4949 ASS_Library *library;
5050 ASS_Renderer *renderer;
libavfilter/vf_super2xsai.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 Super2xSaIContext {
3737 /* masks used for two pixels interpolation */
3838 uint32_t hi_pixel_mask;
3939 uint32_t lo_pixel_mask;
libavfilter/vf_telecine.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 TelecineContext {
3737 const AVClass *class;
3838 int first_field;
3939 char *pattern;
libavfilter/vf_thumbnail.c+1−1
@@ -38,7 +38,7 @@ struct thumb_frame { · 37 unmodified lines
3838 int histogram[HIST_SIZE]; ///< RGB color distribution histogram of the frame
3939 };
4040
41−typedef struct {
41+typedef struct ThumbContext {
4242 const AVClass *class;
4343 int n; ///< current frame
4444 int n_frames; ///< number of frames for analysis
libavfilter/vf_tile.c+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 #include "video.h"
3232 #include "internal.h"
3333
34−typedef struct {
34+typedef struct TileContext {
3535 const AVClass *class;
3636 unsigned w, h;
3737 unsigned margin;
libavfilter/vf_uspp.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737 #define MAX_LEVEL 8 /* quality levels */
3838 #define BLOCK 16
3939
40−typedef struct {
40+typedef struct USPPContext {
4141 const AVClass *av_class;
4242 int log2_count;
4343 int hsub, vsub;
libavfilter/vf_vidstabdetect.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030
3131 #include "vidstabutils.h"
3232
33−typedef struct {
33+typedef struct StabData {
3434 const AVClass *class;
3535
3636 VSMotionDetect md;
libavfilter/vf_vidstabtransform.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030
3131 #include "vidstabutils.h"
3232
33−typedef struct {
33+typedef struct TransformContext {
3434 const AVClass *class;
3535
3636 VSTransformData td;
libavfilter/vf_vignette.c+1−1
@@ -57,7 +57,7 @@ enum EvalMode { · 56 unmodified lines
5757 EVAL_MODE_NB
5858 };
5959
60−typedef struct {
60+typedef struct VignetteContext {
6161 const AVClass *class;
6262 const AVPixFmtDescriptor *desc;
6363 int backward;
libavfilter/vf_xbr.c+1−1
@@ -43,7 +43,7 @@ · 42 unmodified lines
4343
4444 typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
4545
46−typedef struct {
46+typedef struct XBRContext {
4747 const AVClass *class;
4848 int n;
4949 xbrfunc_t func;
libavfilter/vidstabutils.c+1−1
@@ -42,7 +42,7 @@ VSPixelFormat ff_av2vs_pixfmt(AVFilterContext *ctx, enum AVPixelFormat pf) · 41 unmodified lines
4242 }
4343
4444 /** struct to hold a valid context for logging from within vid.stab lib */
45−typedef struct {
45+typedef struct VS2AVLogCtx {
4646 const AVClass *class;
4747 } VS2AVLogCtx;
4848
libavfilter/vsrc_cellauto.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737 #include "formats.h"
3838 #include "video.h"
3939
40−typedef struct {
40+typedef struct CellAutoContext {
4141 const AVClass *class;
4242 int w, h;
4343 char *filename;
libavfilter/vsrc_life.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #include "formats.h"
3939 #include "video.h"
4040
41−typedef struct {
41+typedef struct LifeContext {
4242 const AVClass *class;
4343 int w, h;
4444 char *filename;
libavfilter/vsrc_mandelbrot.c+1−1
@@ -57,7 +57,7 @@ typedef struct Point { · 56 unmodified lines
5757 uint32_t val;
5858 } Point;
5959
60−typedef struct {
60+typedef struct MBContext {
6161 const AVClass *class;
6262 int w, h;
6363 AVRational frame_rate;

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