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
53 VAR_VARS_NB53 VAR_VARS_NB
54};54};
55 55
56typedef struct {56typedef struct EvalContext {
57 const AVClass *class;57 const AVClass *class;
58 char *sample_rate_str;58 char *sample_rate_str;
59 int sample_rate;59 int sample_rate;
libavfilter/af_afade.c+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
29#include "avfilter.h"29#include "avfilter.h"
30#include "internal.h"30#include "internal.h"
31 31
32typedef struct {32typedef struct AudioFadeContext {
33 const AVClass *class;33 const AVClass *class;
34 int type;34 int type;
35 int curve, curve2;35 int curve, curve2;
libavfilter/af_amerge.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
37 37
38#define SWR_CH_MAX 6438#define SWR_CH_MAX 64
39 39
40typedef struct {40typedef struct AMergeContext {
41 const AVClass *class;41 const AVClass *class;
42 int nb_inputs;42 int nb_inputs;
43 int route[SWR_CH_MAX]; /**< channels routing, see copy_samples */43 int route[SWR_CH_MAX]; /**< channels routing, see copy_samples */
libavfilter/af_apad.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
34#include "audio.h"34#include "audio.h"
35#include "internal.h"35#include "internal.h"
36 36
37typedef struct {37typedef struct APadContext {
38 const AVClass *class;38 const AVClass *class;
39 int64_t next_pts;39 int64_t next_pts;
40 40
libavfilter/af_aresample.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
34#include "audio.h"34#include "audio.h"
35#include "internal.h"35#include "internal.h"
36 36
37typedef struct {37typedef struct AResampleContext {
38 const AVClass *class;38 const AVClass *class;
39 int sample_rate_arg;39 int sample_rate_arg;
40 double ratio;40 double ratio;
libavfilter/af_asetnsamples.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
33#include "internal.h"33#include "internal.h"
34#include "formats.h"34#include "formats.h"
35 35
36typedef struct {36typedef struct ASNSContext {
37 const AVClass *class;37 const AVClass *class;
38 int nb_out_samples; ///< how many samples to output38 int nb_out_samples; ///< how many samples to output
39 AVAudioFifo *fifo; ///< samples are queued here39 AVAudioFifo *fifo; ///< samples are queued here
libavfilter/af_asetrate.c+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
22#include "avfilter.h"22#include "avfilter.h"
23#include "internal.h"23#include "internal.h"
24 24
25typedef struct {25typedef struct ASetRateContext {
26 const AVClass *class;26 const AVClass *class;
27 int sample_rate;27 int sample_rate;
28 int rescale_pts;28 int rescale_pts;
libavfilter/af_astats.c+1−1
@@ -42,7 +42,7 @@ typedef struct ChannelStats { · 41 unmodified lines
42 uint64_t nb_samples;42 uint64_t nb_samples;
43} ChannelStats;43} ChannelStats;
44 44
45typedef struct {45typedef struct AudioStatsContext {
46 const AVClass *class;46 const AVClass *class;
47 ChannelStats *chstats;47 ChannelStats *chstats;
48 int nb_channels;48 int nb_channels;
libavfilter/af_atempo.c+2−2
@@ -53,7 +53,7 @@ · 52 unmodified lines
53/**53/**
54 * A fragment of audio waveform54 * A fragment of audio waveform
55 */55 */
56typedef struct {56typedef struct AudioFragment {
57 // index of the first sample of this fragment in the overall waveform;57 // index of the first sample of this fragment in the overall waveform;
58 // 0: input sample position58 // 0: input sample position
59 // 1: output sample position59 // 1: output sample position
@@ -84,7 +84,7 @@ typedef enum { · 24 unmodified lines
84/**84/**
85 * Filter state machine85 * Filter state machine
86 */86 */
87typedef struct {87typedef struct ATempoContext {
88 const AVClass *class;88 const AVClass *class;
89 89
90 // ring-buffer of input samples, necessary because some times90 // 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
71 0, -5,71 0, -5,
72 4, 0};72 4, 0};
73 73
74typedef struct {74typedef struct EarwaxContext {
75 int16_t taps[NUMTAPS * 2];75 int16_t taps[NUMTAPS * 2];
76} EarwaxContext;76} EarwaxContext;
77 77
libavfilter/af_firequalizer.c+3−3
@@ -52,17 +52,17 @@ enum Scale { · 51 unmodified lines
52};52};
53 53
54#define NB_GAIN_ENTRY_MAX 409654#define NB_GAIN_ENTRY_MAX 4096
55typedef struct {55typedef struct GainEntry {
56 double freq;56 double freq;
57 double gain;57 double gain;
58} GainEntry;58} GainEntry;
59 59
60typedef struct {60typedef struct OverlapIndex {
61 int buf_idx;61 int buf_idx;
62 int overlap_idx;62 int overlap_idx;
63} OverlapIndex;63} OverlapIndex;
64 64
65typedef struct {65typedef struct FIREqualizerContext {
66 const AVClass *class;66 const AVClass *class;
67 67
68 RDFTContext *analysis_rdft;68 RDFTContext *analysis_rdft;
libavfilter/af_hdcd.c+2−2
@@ -837,7 +837,7 @@ static const int32_t gaintab[] = { · 836 unmodified lines
837/** tone generator: sample_number, frequency, sample_rate, amplitude */837/** tone generator: sample_number, frequency, sample_rate, amplitude */
838#define TONEGEN16(sn, f, sr, a) (int16_t)(sin((6.28318530718 * (sn) * (f)) /(sr)) * (a) * 0x7fff)838#define TONEGEN16(sn, f, sr, a) (int16_t)(sin((6.28318530718 * (sn) * (f)) /(sr)) * (a) * 0x7fff)
839 839
840typedef struct {840typedef struct hdcd_state {
841 uint64_t window;841 uint64_t window;
842 unsigned char readahead;842 unsigned char readahead;
843 843
@@ -904,7 +904,7 @@ static const char * const pf_str[] = { · 60 unmodified lines
904 "?", "A", "B", "A+B"904 "?", "A", "B", "A+B"
905};905};
906 906
907typedef struct {907typedef struct hdcd_detection_data {
908 hdcd_dv hdcd_detected;908 hdcd_dv hdcd_detected;
909 hdcd_pf packet_type;909 hdcd_pf packet_type;
910 int total_packets; /**< valid packets */910 int total_packets; /**< valid packets */
libavfilter/af_volumedetect.c+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
24#include "avfilter.h"24#include "avfilter.h"
25#include "internal.h"25#include "internal.h"
26 26
27typedef struct {27typedef struct VolDetectContext {
28 /**28 /**
29 * Number of samples at each PCM value.29 * Number of samples at each PCM value.
30 * histogram[0x8000 + i] is the number of samples at value i.30 * histogram[0x8000 + i] is the number of samples at value i.
libavfilter/asrc_anoisesrc.c+1−1
@@ -25,7 +25,7 @@ · 24 unmodified lines
25#include "libavutil/lfg.h"25#include "libavutil/lfg.h"
26#include "libavutil/random_seed.h"26#include "libavutil/random_seed.h"
27 27
28typedef struct {28typedef struct ANoiseSrcContext {
29 const AVClass *class;29 const AVClass *class;
30 int sample_rate;30 int sample_rate;
31 double amplitude;31 double amplitude;
libavfilter/asrc_anullsrc.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
34#include "avfilter.h"34#include "avfilter.h"
35#include "internal.h"35#include "internal.h"
36 36
37typedef struct {37typedef struct ANullContext {
38 const AVClass *class;38 const AVClass *class;
39 char *channel_layout_str;39 char *channel_layout_str;
40 uint64_t channel_layout;40 uint64_t channel_layout;
libavfilter/asrc_flite.c+1−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
32#include "formats.h"32#include "formats.h"
33#include "internal.h"33#include "internal.h"
34 34
35typedef struct {35typedef struct FliteContext {
36 const AVClass *class;36 const AVClass *class;
37 char *voice_str;37 char *voice_str;
38 char *textfile;38 char *textfile;
libavfilter/asrc_sine.c+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
28#include "avfilter.h"28#include "avfilter.h"
29#include "internal.h"29#include "internal.h"
30 30
31typedef struct {31typedef struct SineContext {
32 const AVClass *class;32 const AVClass *class;
33 double frequency;33 double frequency;
34 double beep_factor;34 double beep_factor;
libavfilter/avf_concat.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
36 36
37#define TYPE_ALL 237#define TYPE_ALL 2
38 38
39typedef struct {39typedef struct ConcatContext {
40 const AVClass *class;40 const AVClass *class;
41 unsigned nb_streams[TYPE_ALL]; /**< number of out streams of each type */41 unsigned nb_streams[TYPE_ALL]; /**< number of out streams of each type */
42 unsigned nb_segments;42 unsigned nb_segments;
libavfilter/avf_showcqt.h+4−4
@@ -25,16 +25,16 @@ · 24 unmodified lines
25#include "avfilter.h"25#include "avfilter.h"
26#include "internal.h"26#include "internal.h"
27 27
28typedef struct {28typedef struct Coeffs {
29 FFTSample *val;29 FFTSample *val;
30 int start, len;30 int start, len;
31} Coeffs;31} Coeffs;
32 32
33typedef struct {33typedef struct RGBFloat {
34 float r, g, b;34 float r, g, b;
35} RGBFloat;35} RGBFloat;
36 36
37typedef struct {37typedef struct YUVFloat {
38 float y, u, v;38 float y, u, v;
39} YUVFloat;39} YUVFloat;
40 40
@@ -43,7 +43,7 @@ typedef union { · 2 unmodified lines
43 YUVFloat yuv;43 YUVFloat yuv;
44} ColorFloat;44} ColorFloat;
45 45
46typedef struct {46typedef struct ShowCQTContext {
47 const AVClass *class;47 const AVClass *class;
48 AVFilterContext *ctx;48 AVFilterContext *ctx;
49 AVFrame *axis_frame;49 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
48enum SlideMode { REPLACE, SCROLL, FULLFRAME, RSCROLL, NB_SLIDES };48enum SlideMode { REPLACE, SCROLL, FULLFRAME, RSCROLL, NB_SLIDES };
49enum Orientation { VERTICAL, HORIZONTAL, NB_ORIENTATIONS };49enum Orientation { VERTICAL, HORIZONTAL, NB_ORIENTATIONS };
50 50
51typedef struct {51typedef struct ShowSpectrumContext {
52 const AVClass *class;52 const AVClass *class;
53 int w, h;53 int w, h;
54 AVFrame *outpicref;54 AVFrame *outpicref;
libavfilter/avf_showwaves.c+1−1
@@ -55,7 +55,7 @@ struct frame_node { · 54 unmodified lines
55 struct frame_node *next;55 struct frame_node *next;
56};56};
57 57
58typedef struct {58typedef struct ShowWavesContext {
59 const AVClass *class;59 const AVClass *class;
60 int w, h;60 int w, h;
61 AVRational rate;61 AVRational rate;
libavfilter/bbox.h+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
23 23
24#include <stdint.h>24#include <stdint.h>
25 25
26typedef struct {26typedef struct FFBoundingBox {
27 int x1, x2, y1, y2;27 int x1, x2, y1, y2;
28} FFBoundingBox;28} FFBoundingBox;
29 29
libavfilter/buffersink.h+2−2
@@ -62,7 +62,7 @@ int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flag · 61 unmodified lines
62/**62/**
63 * Struct to use for initializing a buffersink context.63 * Struct to use for initializing a buffersink context.
64 */64 */
65typedef struct {65typedef struct AVBufferSinkParams {
66 const enum AVPixelFormat *pixel_fmts; ///< list of allowed pixel formats, terminated by AV_PIX_FMT_NONE66 const enum AVPixelFormat *pixel_fmts; ///< list of allowed pixel formats, terminated by AV_PIX_FMT_NONE
67} AVBufferSinkParams;67} AVBufferSinkParams;
68 68
@@ -76,7 +76,7 @@ AVBufferSinkParams *av_buffersink_params_alloc(void); · 7 unmodified lines
76/**76/**
77 * Struct to use for initializing an abuffersink context.77 * Struct to use for initializing an abuffersink context.
78 */78 */
79typedef struct {79typedef struct AVABufferSinkParams {
80 const enum AVSampleFormat *sample_fmts; ///< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE80 const enum AVSampleFormat *sample_fmts; ///< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE
81 const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -181 const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1
82 const int *channel_counts; ///< list of allowed channel counts, terminated by -182 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
37 SEARCH_COUNT37 SEARCH_COUNT
38};38};
39 39
40typedef struct {40typedef struct IntMotionVector {
41 int x; ///< Horizontal shift41 int x; ///< Horizontal shift
42 int y; ///< Vertical shift42 int y; ///< Vertical shift
43} IntMotionVector;43} IntMotionVector;
44 44
45typedef struct {45typedef struct MotionVector {
46 double x; ///< Horizontal shift46 double x; ///< Horizontal shift
47 double y; ///< Vertical shift47 double y; ///< Vertical shift
48} MotionVector;48} MotionVector;
49 49
50typedef struct {50typedef struct Transform {
51 MotionVector vec; ///< Motion vector51 MotionVector vec; ///< Motion vector
52 double angle; ///< Angle of rotation52 double angle; ///< Angle of rotation
53 double zoom; ///< Zoom percentage53 double zoom; ///< Zoom percentage
@@ -55,7 +55,7 @@ typedef struct { · 1 unmodified line
55 55
56#if CONFIG_OPENCL56#if CONFIG_OPENCL
57 57
58typedef struct {58typedef struct DeshakeOpenclContext {
59 cl_command_queue command_queue;59 cl_command_queue command_queue;
60 cl_program program;60 cl_program program;
61 cl_kernel kernel_luma;61 cl_kernel kernel_luma;
@@ -73,7 +73,7 @@ typedef struct { · 11 unmodified lines
73 73
74#define MAX_R 6474#define MAX_R 64
75 75
76typedef struct {76typedef struct DeshakeContext {
77 const AVClass *class;77 const AVClass *class;
78 int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search78 int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search
79 double *angles; ///< Scratch buffer for block angles79 double *angles; ///< Scratch buffer for block angles
libavfilter/deshake_opencl.h+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
23 23
24#include "deshake.h"24#include "deshake.h"
25 25
26typedef struct {26typedef struct float4 {
27 float x;27 float x;
28 float y;28 float y;
29 float z;29 float z;
libavfilter/dualinput.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
29#include "framesync.h"29#include "framesync.h"
30#include "internal.h"30#include "internal.h"
31 31
32typedef struct {32typedef struct FFDualInputContext {
33 FFFrameSync fs;33 FFFrameSync fs;
34 34
35 AVFrame *(*process)(AVFilterContext *ctx, AVFrame *main, const AVFrame *second);35 AVFrame *(*process)(AVFilterContext *ctx, AVFrame *main, const AVFrame *second);
libavfilter/ebur128.h+1−1
@@ -100,7 +100,7 @@ struct FFEBUR128StateInternal; · 99 unmodified lines
100 *100 *
101 * You should not need to modify this struct directly.101 * You should not need to modify this struct directly.
102 */102 */
103typedef struct {103typedef struct FFEBUR128State {
104 int mode; /**< The current mode. */104 int mode; /**< The current mode. */
105 unsigned int channels; /**< The number of channels. */105 unsigned int channels; /**< The number of channels. */
106 unsigned long samplerate; /**< The sample rate. */106 unsigned long samplerate; /**< The sample rate. */
libavfilter/f_bench.c+1−1
@@ -28,7 +28,7 @@ enum BenchAction { · 27 unmodified lines
28 NB_ACTION28 NB_ACTION
29};29};
30 30
31typedef struct {31typedef struct BenchContext {
32 const AVClass *class;32 const AVClass *class;
33 int action;33 int action;
34 int64_t max, min;34 int64_t max, min;
libavfilter/f_ebur128.c+1−1
@@ -90,7 +90,7 @@ struct integrator { · 89 unmodified lines
90 90
91struct rect { int x, y, w, h; };91struct rect { int x, y, w, h; };
92 92
93typedef struct {93typedef struct EBUR128Context {
94 const AVClass *class; ///< AVClass context for log and options purpose94 const AVClass *class; ///< AVClass context for log and options purpose
95 95
96 /* peak metering */96 /* peak metering */
libavfilter/f_interleave.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
37#include "audio.h"37#include "audio.h"
38#include "video.h"38#include "video.h"
39 39
40typedef struct {40typedef struct InterleaveContext {
41 const AVClass *class;41 const AVClass *class;
42 int nb_inputs;42 int nb_inputs;
43 struct FFBufQueue *queues;43 struct FFBufQueue *queues;
libavfilter/f_perms.c+1−1
@@ -33,7 +33,7 @@ enum mode { · 32 unmodified lines
33 NB_MODES33 NB_MODES
34};34};
35 35
36typedef struct {36typedef struct PermsContext {
37 const AVClass *class;37 const AVClass *class;
38 AVLFG lfg;38 AVLFG lfg;
39 int64_t random_seed;39 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
55 return pbuf->str;55 return pbuf->str;
56}56}
57 57
58typedef struct {58typedef struct Command {
59 int flags;59 int flags;
60 char *target, *command, *arg;60 char *target, *command, *arg;
61 int index;61 int index;
62} Command;62} Command;
63 63
64typedef struct {64typedef struct Interval {
65 int64_t start_ts; ///< start timestamp expressed as microseconds units65 int64_t start_ts; ///< start timestamp expressed as microseconds units
66 int64_t end_ts; ///< end timestamp expressed as microseconds units66 int64_t end_ts; ///< end timestamp expressed as microseconds units
67 int index; ///< unique index for these interval commands67 int index; ///< unique index for these interval commands
@@ -70,7 +70,7 @@ typedef struct { · 2 unmodified lines
70 int enabled; ///< current time detected inside this interval70 int enabled; ///< current time detected inside this interval
71} Interval;71} Interval;
72 72
73typedef struct {73typedef struct SendCmdContext {
74 const AVClass *class;74 const AVClass *class;
75 Interval *intervals;75 Interval *intervals;
76 int nb_intervals;76 int nb_intervals;
libavfilter/f_zmq.c+2−2
@@ -33,7 +33,7 @@ · 32 unmodified lines
33#include "audio.h"33#include "audio.h"
34#include "video.h"34#include "video.h"
35 35
36typedef struct {36typedef struct ZMQContext {
37 const AVClass *class;37 const AVClass *class;
38 void *zmq;38 void *zmq;
39 void *responder;39 void *responder;
@@ -86,7 +86,7 @@ static void av_cold uninit(AVFilterContext *ctx) · 46 unmodified lines
86 zmq_ctx_destroy(zmq->zmq);86 zmq_ctx_destroy(zmq->zmq);
87}87}
88 88
89typedef struct {89typedef struct Command {
90 char *target, *command, *arg;90 char *target, *command, *arg;
91} Command;91} Command;
92 92
libavfilter/signature.h+5−5
@@ -51,17 +51,17 @@ enum formats { · 50 unmodified lines
51 NB_FORMATS51 NB_FORMATS
52};52};
53 53
54typedef struct {54typedef struct Point {
55 uint8_t x;55 uint8_t x;
56 uint8_t y;56 uint8_t y;
57} Point;57} Point;
58 58
59typedef struct {59typedef struct Block {
60 Point up;60 Point up;
61 Point to;61 Point to;
62} Block;62} Block;
63 63
64typedef struct {64typedef struct ElemCat {
65 int av_elem; /* average element category */65 int av_elem; /* average element category */
66 short left_count; /* count of blocks that will be added together */66 short left_count; /* count of blocks that will be added together */
67 short block_count; /* count of blocks per element */67 short block_count; /* count of blocks per element */
@@ -99,7 +99,7 @@ typedef struct MatchingInfo { · 31 unmodified lines
99 struct MatchingInfo* next;99 struct MatchingInfo* next;
100} MatchingInfo;100} MatchingInfo;
101 101
102typedef struct {102typedef struct StreamContext {
103 AVRational time_base;103 AVRational time_base;
104 /* needed for xml_export */104 /* needed for xml_export */
105 int w; /* height */105 int w; /* height */
@@ -124,7 +124,7 @@ typedef struct { · 18 unmodified lines
124 int exported; /* boolean whether stream already exported */124 int exported; /* boolean whether stream already exported */
125} StreamContext;125} StreamContext;
126 126
127typedef struct {127typedef struct SignatureContext {
128 const AVClass *class;128 const AVClass *class;
129 /* input parameters */129 /* input parameters */
130 int mode;130 int mode;
libavfilter/signature_lookup.c+1−1
@@ -187,7 +187,7 @@ static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont · 186 unmodified lines
187 FineSignature *b[COARSE_SIZE];187 FineSignature *b[COARSE_SIZE];
188 } pairs[COARSE_SIZE];188 } pairs[COARSE_SIZE];
189 189
190 typedef struct {190 typedef struct hspace_elem {
191 int dist;191 int dist;
192 size_t score;192 size_t score;
193 FineSignature *a;193 FineSignature *a;
libavfilter/tinterlace.h+1−1
@@ -46,7 +46,7 @@ enum TInterlaceMode { · 45 unmodified lines
46 MODE_NB,46 MODE_NB,
47};47};
48 48
49typedef struct {49typedef struct TInterlaceContext {
50 const AVClass *class;50 const AVClass *class;
51 int mode; ///< TInterlaceMode, interlace mode selected51 int mode; ///< TInterlaceMode, interlace mode selected
52 AVRational preout_time_base;52 AVRational preout_time_base;
libavfilter/unsharp.h+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
33 33
34#if CONFIG_OPENCL34#if CONFIG_OPENCL
35 35
36typedef struct {36typedef struct UnsharpOpenclContext {
37 cl_command_queue command_queue;37 cl_command_queue command_queue;
38 cl_program program;38 cl_program program;
39 cl_kernel kernel_default;39 cl_kernel kernel_default;
libavfilter/vf_alphamerge.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 AlphaMergeContext {
40 int is_packed_rgb;40 int is_packed_rgb;
41 uint8_t rgba_map[4];41 uint8_t rgba_map[4];
42 struct FFBufQueue queue_main;42 struct FFBufQueue queue_main;
libavfilter/vf_bbox.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30#include "bbox.h"30#include "bbox.h"
31#include "internal.h"31#include "internal.h"
32 32
33typedef struct {33typedef struct BBoxContext {
34 const AVClass *class;34 const AVClass *class;
35 int min_val;35 int min_val;
36} BBoxContext;36} BBoxContext;
libavfilter/vf_blackdetect.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30#include "avfilter.h"30#include "avfilter.h"
31#include "internal.h"31#include "internal.h"
32 32
33typedef struct {33typedef struct BlackDetectContext {
34 const AVClass *class;34 const AVClass *class;
35 double black_min_duration_time; ///< minimum duration of detected black, in seconds35 double black_min_duration_time; ///< minimum duration of detected black, in seconds
36 int64_t black_min_duration; ///< minimum duration of detected black, expressed in timebase units36 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
44#define FRAME_TYPE_P (1<<1)44#define FRAME_TYPE_P (1<<1)
45#define FRAME_TYPE_B (1<<2)45#define FRAME_TYPE_B (1<<2)
46 46
47typedef struct {47typedef struct CodecViewContext {
48 const AVClass *class;48 const AVClass *class;
49 unsigned mv;49 unsigned mv;
50 unsigned frame_type;50 unsigned frame_type;
libavfilter/vf_colorbalance.c+2−2
@@ -31,13 +31,13 @@ · 30 unmodified lines
31#define B 231#define B 2
32#define A 332#define A 3
33 33
34typedef struct {34typedef struct Range {
35 double shadows;35 double shadows;
36 double midtones;36 double midtones;
37 double highlights;37 double highlights;
38} Range;38} Range;
39 39
40typedef struct {40typedef struct ColorBalanceContext {
41 const AVClass *class;41 const AVClass *class;
42 Range cyan_red;42 Range cyan_red;
43 Range magenta_green;43 Range magenta_green;
libavfilter/vf_colorchannelmixer.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30#define B 230#define B 2
31#define A 331#define A 3
32 32
33typedef struct {33typedef struct ColorChannelMixerContext {
34 const AVClass *class;34 const AVClass *class;
35 double rr, rg, rb, ra;35 double rr, rg, rb, ra;
36 double gr, gg, gb, ga;36 double gr, gg, gb, ga;
libavfilter/vf_colorlevels.c+2−2
@@ -32,12 +32,12 @@ · 31 unmodified lines
32#define B 232#define B 2
33#define A 333#define A 3
34 34
35typedef struct {35typedef struct Range {
36 double in_min, in_max;36 double in_min, in_max;
37 double out_min, out_max;37 double out_min, out_max;
38} Range;38} Range;
39 39
40typedef struct {40typedef struct ColorLevelsContext {
41 const AVClass *class;41 const AVClass *class;
42 Range range[4];42 Range range[4];
43 int nb_comp;43 int nb_comp;
libavfilter/vf_colormatrix.c+1−1
@@ -58,7 +58,7 @@ enum ColorMode { · 57 unmodified lines
58 COLOR_MODE_COUNT58 COLOR_MODE_COUNT
59};59};
60 60
61typedef struct {61typedef struct ColorMatrixContext {
62 const AVClass *class;62 const AVClass *class;
63 int yuv_convert[25][3][3];63 int yuv_convert[25][3][3];
64 int interlaced;64 int interlaced;
libavfilter/vf_curves.c+1−1
@@ -58,7 +58,7 @@ enum preset { · 57 unmodified lines
58 NB_PRESETS,58 NB_PRESETS,
59};59};
60 60
61typedef struct {61typedef struct CurvesContext {
62 const AVClass *class;62 const AVClass *class;
63 int preset;63 int preset;
64 char *comp_points_str[NB_COMP + 1];64 char *comp_points_str[NB_COMP + 1];
libavfilter/vf_decimate.c+1−1
@@ -34,7 +34,7 @@ struct qitem { · 33 unmodified lines
34 int64_t totdiff;34 int64_t totdiff;
35};35};
36 36
37typedef struct {37typedef struct DecimateContext {
38 const AVClass *class;38 const AVClass *class;
39 struct qitem *queue; ///< window of cycle frames and the associated data diff39 struct qitem *queue; ///< window of cycle frames and the associated data diff
40 int fid; ///< current frame id in the queue40 int fid; ///< current frame id in the queue
libavfilter/vf_dejudder.c+1−1
@@ -55,7 +55,7 @@ · 54 unmodified lines
55#include "internal.h"55#include "internal.h"
56#include "video.h"56#include "video.h"
57 57
58typedef struct {58typedef struct DejudderContext {
59 const AVClass *class;59 const AVClass *class;
60 int64_t *ringbuff;60 int64_t *ringbuff;
61 int i1, i2, i3, i4;61 int i1, i2, i3, i4;
libavfilter/vf_detelecine.c+1−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
32#include "internal.h"32#include "internal.h"
33#include "video.h"33#include "video.h"
34 34
35typedef struct {35typedef struct DetelecineContext {
36 const AVClass *class;36 const AVClass *class;
37 int first_field;37 int first_field;
38 char *pattern;38 char *pattern;
libavfilter/vf_edgedetect.c+1−1
@@ -44,7 +44,7 @@ struct plane_info { · 43 unmodified lines
44 char *directions;44 char *directions;
45};45};
46 46
47typedef struct {47typedef struct EdgeDetectContext {
48 const AVClass *class;48 const AVClass *class;
49 struct plane_info planes[3];49 struct plane_info planes[3];
50 int nb_planes;50 int nb_planes;
libavfilter/vf_eq.h+1−1
@@ -55,7 +55,7 @@ typedef struct EQParameters { · 54 unmodified lines
55 55
56} EQParameters;56} EQParameters;
57 57
58typedef struct {58typedef struct EQContext {
59 const AVClass *class;59 const AVClass *class;
60 60
61 EQParameters param[3];61 EQParameters param[3];
libavfilter/vf_extractplanes.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
38#define PLANE_U 0x2038#define PLANE_U 0x20
39#define PLANE_V 0x4039#define PLANE_V 0x40
40 40
41typedef struct {41typedef struct ExtractPlanesContext {
42 const AVClass *class;42 const AVClass *class;
43 int requested_planes;43 int requested_planes;
44 int map[4];44 int map[4];
libavfilter/vf_fftfilt.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
33 33
34#define MAX_PLANES 434#define MAX_PLANES 4
35 35
36typedef struct {36typedef struct FFTFILTContext {
37 const AVClass *class;37 const AVClass *class;
38 38
39 RDFTContext *rdft;39 RDFTContext *rdft;
libavfilter/vf_field.c+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
31 31
32enum FieldType { FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM };32enum FieldType { FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM };
33 33
34typedef struct {34typedef struct FieldContext {
35 const AVClass *class;35 const AVClass *class;
36 int type; ///< FieldType36 int type; ///< FieldType
37 int nb_planes; ///< number of planes of the current format37 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
72 NB_COMBDBG72 NB_COMBDBG
73};73};
74 74
75typedef struct {75typedef struct FieldMatchContext {
76 const AVClass *class;76 const AVClass *class;
77 77
78 AVFrame *prv, *src, *nxt; ///< main sliding window of 3 frames78 AVFrame *prv, *src, *nxt; ///< main sliding window of 3 frames
libavfilter/vf_geq.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
33#include "libavutil/pixdesc.h"33#include "libavutil/pixdesc.h"
34#include "internal.h"34#include "internal.h"
35 35
36typedef struct {36typedef struct GEQContext {
37 const AVClass *class;37 const AVClass *class;
38 AVExpr *e[4]; ///< expressions for each plane38 AVExpr *e[4]; ///< expressions for each plane
39 char *expr_str[4+3]; ///< expression strings for each plane39 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
54 HISTEQ_ANTIBANDING_NB,54 HISTEQ_ANTIBANDING_NB,
55};55};
56 56
57typedef struct {57typedef struct HisteqContext {
58 const AVClass *class;58 const AVClass *class;
59 float strength;59 float strength;
60 float intensity;60 float intensity;
libavfilter/vf_hqx.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
34 34
35typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);35typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
36 36
37typedef struct {37typedef struct HQXContext {
38 const AVClass *class;38 const AVClass *class;
39 int n;39 int n;
40 hqxfunc_t func;40 hqxfunc_t func;
libavfilter/vf_hue.c+1−1
@@ -57,7 +57,7 @@ enum var_name { · 56 unmodified lines
57 VAR_NB57 VAR_NB
58};58};
59 59
60typedef struct {60typedef struct HueContext {
61 const AVClass *class;61 const AVClass *class;
62 float hue_deg; /* hue expressed in degrees */62 float hue_deg; /* hue expressed in degrees */
63 float hue; /* hue expressed in radians */63 float hue; /* hue expressed in radians */
libavfilter/vf_idet.h+1−1
@@ -39,7 +39,7 @@ typedef enum { · 38 unmodified lines
39 REPEAT_BOTTOM,39 REPEAT_BOTTOM,
40} RepeatedField;40} RepeatedField;
41 41
42typedef struct {42typedef struct IDETContext {
43 const AVClass *class;43 const AVClass *class;
44 float interlace_threshold;44 float interlace_threshold;
45 float progressive_threshold;45 float progressive_threshold;
libavfilter/vf_il.c+1−1
@@ -36,7 +36,7 @@ enum FilterMode { · 35 unmodified lines
36 MODE_DEINTERLEAVE36 MODE_DEINTERLEAVE
37};37};
38 38
39typedef struct {39typedef struct IlContext {
40 const AVClass *class;40 const AVClass *class;
41 int luma_mode, chroma_mode, alpha_mode; ///<FilterMode41 int luma_mode, chroma_mode, alpha_mode; ///<FilterMode
42 int luma_swap, chroma_swap, alpha_swap;42 int luma_swap, chroma_swap, alpha_swap;
libavfilter/vf_kerndeint.c+1−1
@@ -35,7 +35,7 @@ · 34 unmodified lines
35#include "formats.h"35#include "formats.h"
36#include "internal.h"36#include "internal.h"
37 37
38typedef struct {38typedef struct KerndeintContext {
39 const AVClass *class;39 const AVClass *class;
40 int frame; ///< frame count, starting from 040 int frame; ///< frame count, starting from 0
41 int thresh, map, order, sharp, twoway;41 int thresh, map, order, sharp, twoway;
libavfilter/vf_mcdeint.c+1−1
@@ -69,7 +69,7 @@ enum MCDeintParity { · 68 unmodified lines
69 PARITY_BFF = 1, ///< bottom field first69 PARITY_BFF = 1, ///< bottom field first
70};70};
71 71
72typedef struct {72typedef struct MCDeintContext {
73 const AVClass *class;73 const AVClass *class;
74 int mode; ///< MCDeintMode74 int mode; ///< MCDeintMode
75 int parity; ///< MCDeintParity75 int parity; ///< MCDeintParity
libavfilter/vf_mpdecimate.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
33#include "formats.h"33#include "formats.h"
34#include "video.h"34#include "video.h"
35 35
36typedef struct {36typedef struct DecimateContext {
37 const AVClass *class;37 const AVClass *class;
38 int lo, hi; ///< lower and higher threshold number of differences38 int lo, hi; ///< lower and higher threshold number of differences
39 ///< values for 8x8 blocks39 ///< values for 8x8 blocks
libavfilter/vf_nlmeans.c+1−1
@@ -47,7 +47,7 @@ struct weighted_avg { · 46 unmodified lines
47#define WEIGHT_LUT_NBITS 947#define WEIGHT_LUT_NBITS 9
48#define WEIGHT_LUT_SIZE (1<<WEIGHT_LUT_NBITS)48#define WEIGHT_LUT_SIZE (1<<WEIGHT_LUT_NBITS)
49 49
50typedef struct {50typedef struct NLMeansContext {
51 const AVClass *class;51 const AVClass *class;
52 int nb_planes;52 int nb_planes;
53 int chroma_w, chroma_h;53 int chroma_w, chroma_h;
libavfilter/vf_noise.h+2−2
@@ -34,7 +34,7 @@ · 33 unmodified lines
34#define NOISE_AVERAGED 834#define NOISE_AVERAGED 8
35#define NOISE_PATTERN 1635#define NOISE_PATTERN 16
36 36
37typedef struct {37typedef struct FilterParams {
38 int strength;38 int strength;
39 unsigned flags;39 unsigned flags;
40 AVLFG lfg;40 AVLFG lfg;
@@ -45,7 +45,7 @@ typedef struct { · 4 unmodified lines
45 int rand_shift_init;45 int rand_shift_init;
46} FilterParams;46} FilterParams;
47 47
48typedef struct {48typedef struct NoiseContext {
49 const AVClass *class;49 const AVClass *class;
50 int nb_planes;50 int nb_planes;
51 int bytewidth[4];51 int bytewidth[4];
libavfilter/vf_owdenoise.c+1−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
34#include "avfilter.h"34#include "avfilter.h"
35#include "internal.h"35#include "internal.h"
36 36
37typedef struct {37typedef struct OWDenoiseContext {
38 const AVClass *class;38 const AVClass *class;
39 double luma_strength;39 double luma_strength;
40 double chroma_strength;40 double chroma_strength;
libavfilter/vf_palettegen.c+1−1
@@ -60,7 +60,7 @@ enum { · 59 unmodified lines
60#define NBITS 560#define NBITS 5
61#define HIST_SIZE (1<<(3*NBITS))61#define HIST_SIZE (1<<(3*NBITS))
62 62
63typedef struct {63typedef struct PaletteGenContext {
64 const AVClass *class;64 const AVClass *class;
65 65
66 int max_colors;66 int max_colors;
libavfilter/vf_pp.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30 30
31#include "libpostproc/postprocess.h"31#include "libpostproc/postprocess.h"
32 32
33typedef struct {33typedef struct PPFilterContext {
34 const AVClass *class;34 const AVClass *class;
35 char *subfilters;35 char *subfilters;
36 int mode_id;36 int mode_id;
libavfilter/vf_removelogo.c+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
79#include "lavfutils.h"79#include "lavfutils.h"
80#include "lswsutils.h"80#include "lswsutils.h"
81 81
82typedef struct {82typedef struct RemovelogoContext {
83 const AVClass *class;83 const AVClass *class;
84 char *filename;84 char *filename;
85 /* Stores our collection of masks. The first is for an array of85 /* 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
31#include "formats.h"31#include "formats.h"
32#include "internal.h"32#include "internal.h"
33 33
34typedef struct {34typedef struct FilterParam {
35 float radius;35 float radius;
36 float pre_filter_radius;36 float pre_filter_radius;
37 float strength;37 float strength;
@@ -46,7 +46,7 @@ typedef struct { · 8 unmodified lines
46 int color_diff_coeff[COLOR_DIFF_COEFF_SIZE];46 int color_diff_coeff[COLOR_DIFF_COEFF_SIZE];
47} FilterParam;47} FilterParam;
48 48
49typedef struct {49typedef struct SabContext {
50 const AVClass *class;50 const AVClass *class;
51 FilterParam luma;51 FilterParam luma;
52 FilterParam chroma;52 FilterParam chroma;
libavfilter/vf_selectivecolor.c+1−1
@@ -77,7 +77,7 @@ typedef struct ThreadData { · 76 unmodified lines
77 AVFrame *in, *out;77 AVFrame *in, *out;
78} ThreadData;78} ThreadData;
79 79
80typedef struct {80typedef struct SelectiveColorContext {
81 const AVClass *class;81 const AVClass *class;
82 int correction_method;82 int correction_method;
83 char *opt_cmyk_adjust[NB_RANGES];83 char *opt_cmyk_adjust[NB_RANGES];
libavfilter/vf_separatefields.c+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
22#include "avfilter.h"22#include "avfilter.h"
23#include "internal.h"23#include "internal.h"
24 24
25typedef struct {25typedef struct SeparateFieldsContext {
26 int nb_planes;26 int nb_planes;
27 AVFrame *second;27 AVFrame *second;
28} SeparateFieldsContext;28} SeparateFieldsContext;
libavfilter/vf_setfield.c+1−1
@@ -35,7 +35,7 @@ enum SetFieldMode { · 34 unmodified lines
35 MODE_PROG,35 MODE_PROG,
36};36};
37 37
38typedef struct {38typedef struct SetFieldContext {
39 const AVClass *class;39 const AVClass *class;
40 int mode; ///< SetFieldMode40 int mode; ///< SetFieldMode
41} SetFieldContext;41} SetFieldContext;
libavfilter/vf_showpalette.c+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
28#include "internal.h"28#include "internal.h"
29#include "video.h"29#include "video.h"
30 30
31typedef struct {31typedef struct ShowPaletteContext {
32 const AVClass *class;32 const AVClass *class;
33 int size;33 int size;
34} ShowPaletteContext;34} ShowPaletteContext;
libavfilter/vf_signalstats.c+1−1
@@ -33,7 +33,7 @@ enum FilterMode { · 32 unmodified lines
33 FILT_NUMB33 FILT_NUMB
34};34};
35 35
36typedef struct {36typedef struct SignalstatsContext {
37 const AVClass *class;37 const AVClass *class;
38 int chromah; // height of chroma plane38 int chromah; // height of chroma plane
39 int chromaw; // width of chroma plane39 int chromaw; // width of chroma plane
libavfilter/vf_smartblur.c+2−2
@@ -42,7 +42,7 @@ · 41 unmodified lines
42#define THRESHOLD_MIN -3042#define THRESHOLD_MIN -30
43#define THRESHOLD_MAX 3043#define THRESHOLD_MAX 30
44 44
45typedef struct {45typedef struct FilterParam {
46 float radius;46 float radius;
47 float strength;47 float strength;
48 int threshold;48 int threshold;
@@ -50,7 +50,7 @@ typedef struct { · 1 unmodified line
50 struct SwsContext *filter_context;50 struct SwsContext *filter_context;
51} FilterParam;51} FilterParam;
52 52
53typedef struct {53typedef struct SmartblurContext {
54 const AVClass *class;54 const AVClass *class;
55 FilterParam luma;55 FilterParam luma;
56 FilterParam chroma;56 FilterParam chroma;
libavfilter/vf_spp.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
28 28
29#define MAX_LEVEL 6 /* quality levels */29#define MAX_LEVEL 6 /* quality levels */
30 30
31typedef struct {31typedef struct SPPContext {
32 const AVClass *av_class;32 const AVClass *av_class;
33 33
34 int log2_count;34 int log2_count;
libavfilter/vf_subtitles.c+1−1
@@ -44,7 +44,7 @@ · 43 unmodified lines
44#include "formats.h"44#include "formats.h"
45#include "video.h"45#include "video.h"
46 46
47typedef struct {47typedef struct AssContext {
48 const AVClass *class;48 const AVClass *class;
49 ASS_Library *library;49 ASS_Library *library;
50 ASS_Renderer *renderer;50 ASS_Renderer *renderer;
libavfilter/vf_super2xsai.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
33#include "internal.h"33#include "internal.h"
34#include "video.h"34#include "video.h"
35 35
36typedef struct {36typedef struct Super2xSaIContext {
37 /* masks used for two pixels interpolation */37 /* masks used for two pixels interpolation */
38 uint32_t hi_pixel_mask;38 uint32_t hi_pixel_mask;
39 uint32_t lo_pixel_mask;39 uint32_t lo_pixel_mask;
libavfilter/vf_telecine.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
33#include "internal.h"33#include "internal.h"
34#include "video.h"34#include "video.h"
35 35
36typedef struct {36typedef struct TelecineContext {
37 const AVClass *class;37 const AVClass *class;
38 int first_field;38 int first_field;
39 char *pattern;39 char *pattern;
libavfilter/vf_thumbnail.c+1−1
@@ -38,7 +38,7 @@ struct thumb_frame { · 37 unmodified lines
38 int histogram[HIST_SIZE]; ///< RGB color distribution histogram of the frame38 int histogram[HIST_SIZE]; ///< RGB color distribution histogram of the frame
39};39};
40 40
41typedef struct {41typedef struct ThumbContext {
42 const AVClass *class;42 const AVClass *class;
43 int n; ///< current frame43 int n; ///< current frame
44 int n_frames; ///< number of frames for analysis44 int n_frames; ///< number of frames for analysis
libavfilter/vf_tile.c+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
31#include "video.h"31#include "video.h"
32#include "internal.h"32#include "internal.h"
33 33
34typedef struct {34typedef struct TileContext {
35 const AVClass *class;35 const AVClass *class;
36 unsigned w, h;36 unsigned w, h;
37 unsigned margin;37 unsigned margin;
libavfilter/vf_uspp.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
37#define MAX_LEVEL 8 /* quality levels */37#define MAX_LEVEL 8 /* quality levels */
38#define BLOCK 1638#define BLOCK 16
39 39
40typedef struct {40typedef struct USPPContext {
41 const AVClass *av_class;41 const AVClass *av_class;
42 int log2_count;42 int log2_count;
43 int hsub, vsub;43 int hsub, vsub;
libavfilter/vf_vidstabdetect.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30 30
31#include "vidstabutils.h"31#include "vidstabutils.h"
32 32
33typedef struct {33typedef struct StabData {
34 const AVClass *class;34 const AVClass *class;
35 35
36 VSMotionDetect md;36 VSMotionDetect md;
libavfilter/vf_vidstabtransform.c+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
30 30
31#include "vidstabutils.h"31#include "vidstabutils.h"
32 32
33typedef struct {33typedef struct TransformContext {
34 const AVClass *class;34 const AVClass *class;
35 35
36 VSTransformData td;36 VSTransformData td;
libavfilter/vf_vignette.c+1−1
@@ -57,7 +57,7 @@ enum EvalMode { · 56 unmodified lines
57 EVAL_MODE_NB57 EVAL_MODE_NB
58};58};
59 59
60typedef struct {60typedef struct VignetteContext {
61 const AVClass *class;61 const AVClass *class;
62 const AVPixFmtDescriptor *desc;62 const AVPixFmtDescriptor *desc;
63 int backward;63 int backward;
libavfilter/vf_xbr.c+1−1
@@ -43,7 +43,7 @@ · 42 unmodified lines
43 43
44typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);44typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
45 45
46typedef struct {46typedef struct XBRContext {
47 const AVClass *class;47 const AVClass *class;
48 int n;48 int n;
49 xbrfunc_t func;49 xbrfunc_t func;
libavfilter/vidstabutils.c+1−1
@@ -42,7 +42,7 @@ VSPixelFormat ff_av2vs_pixfmt(AVFilterContext *ctx, enum AVPixelFormat pf) · 41 unmodified lines
42}42}
43 43
44/** struct to hold a valid context for logging from within vid.stab lib */44/** struct to hold a valid context for logging from within vid.stab lib */
45typedef struct {45typedef struct VS2AVLogCtx {
46 const AVClass *class;46 const AVClass *class;
47} VS2AVLogCtx;47} VS2AVLogCtx;
48 48
libavfilter/vsrc_cellauto.c+1−1
@@ -37,7 +37,7 @@ · 36 unmodified lines
37#include "formats.h"37#include "formats.h"
38#include "video.h"38#include "video.h"
39 39
40typedef struct {40typedef struct CellAutoContext {
41 const AVClass *class;41 const AVClass *class;
42 int w, h;42 int w, h;
43 char *filename;43 char *filename;
libavfilter/vsrc_life.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
38#include "formats.h"38#include "formats.h"
39#include "video.h"39#include "video.h"
40 40
41typedef struct {41typedef struct LifeContext {
42 const AVClass *class;42 const AVClass *class;
43 int w, h;43 int w, h;
44 char *filename;44 char *filename;
libavfilter/vsrc_mandelbrot.c+1−1
@@ -57,7 +57,7 @@ typedef struct Point { · 56 unmodified lines
57 uint32_t val;57 uint32_t val;
58} Point;58} Point;
59 59
60typedef struct {60typedef struct MBContext {
61 const AVClass *class;61 const AVClass *class;
62 int w, h;62 int w, h;
63 AVRational frame_rate;63 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