History

Give all anonymously typedeffed structs in headers a name

Anonymous structs cannot be forward declared and have no benefit.

Diego Biurrun committed 14 years ago

Commit e4cbf751 parent 76f644d56 files · +114 −114Browse files

Unified · Split

56 files
  1. cmdutils.h +2 −2
  2. libavcodec/aac.h +11 −11
  3. libavcodec/aacadtsdec.h +1 −1
  4. libavcodec/aacps.h +1 −1
  5. libavcodec/ac3.h +1 −1
  6. libavcodec/ac3dec.h +1 −1
  7. libavcodec/acelp_vectors.h +1 −1
  8. libavcodec/adx.h +2 −2
  9. libavcodec/amrnbdata.h +2 −2
  10. libavcodec/amrwbdata.h +2 −2
  11. libavcodec/bytestream.h +2 −2
  12. libavcodec/cavs.h +1 −1
  13. libavcodec/dirac.h +1 −1
  14. libavcodec/dnxhddata.h +1 −1
  15. libavcodec/dnxhdenc.h +2 −2
  16. libavcodec/dwt.h +1 −1
  17. libavcodec/g722.h +1 −1
  18. libavcodec/gsmdec_data.h +1 −1
  19. libavcodec/huffman.h +1 −1
  20. libavcodec/indeo3data.h +1 −1
  21. libavcodec/intrax8.h +1 −1
  22. libavcodec/ivi_common.h +8 −8
  23. libavcodec/libschroedinger.h +1 −1
  24. libavcodec/mlp.h +2 −2
  25. libavcodec/mpc.h +2 −2
  26. libavcodec/mpeg4audio.h +1 −1
  27. libavcodec/proresdsp.h +1 −1
  28. libavcodec/qcelpdata.h +2 −2
  29. libavcodec/ra144.h +1 −1
  30. libavcodec/roqvideo.h +3 −3
  31. libavcodec/rtjpeg.h +1 −1
  32. libavcodec/sbr.h +3 −3
  33. libavcodec/vorbis.h +1 −1
  34. libavcodec/vp56.h +5 −5
  35. libavcodec/vp56data.h +1 −1
  36. libavcodec/vp8.h +4 −4
  37. libavcodec/w32pthreads.h +3 −3
  38. libavcodec/x86/dsputil_mmx.h +1 −1
  39. libavdevice/alsa-audio.h +1 −1
  40. libavdevice/sndio_common.h +1 −1
  41. libavfilter/gradfun.h +1 −1
  42. libavfilter/yadif.h +1 −1
  43. libavformat/asf.h +3 −3
  44. libavformat/audiointerleave.h +1 −1
  45. libavformat/httpauth.h +2 −2
  46. libavformat/isom.h +7 −7
  47. libavformat/mms.h +2 −2
  48. libavformat/movenc.h +2 −2
  49. libavformat/mpegts.h +2 −2
  50. libavformat/mxf.h +2 −2
  51. libavformat/nut.h +6 −6
  52. libavformat/rtpdec.h +1 −1
  53. libavformat/swf.h +1 −1
  54. libavutil/dict.h +1 −1
  55. libavutil/lfg.h +1 −1
  56. libswscale/swscale.h +2 −2
cmdutils.h+2−2
@@ -121,7 +121,7 @@ typedef struct SpecifierOpt { · 120 unmodified lines
121121 } u;
122122 } SpecifierOpt;
123123
124−typedef struct {
124+typedef struct OptionDef {
125125 const char *name;
126126 int flags;
127127 #define HAS_ARG 0x0001
@@ -356,7 +356,7 @@ int read_yesno(void); · 228 unmodified lines
356356 */
357357 int cmdutils_read_file(const char *filename, char **bufptr, size_t *size);
358358
359−typedef struct {
359+typedef struct PtsCorrectionContext {
360360 int64_t num_faulty_pts; /// Number of incorrect PTS values so far
361361 int64_t num_faulty_dts; /// Number of incorrect DTS values so far
362362 int64_t last_pts; /// PTS of the last frame
libavcodec/aac.h+11−11
@@ -113,7 +113,7 @@ enum OCStatus { · 112 unmodified lines
113113 OC_LOCKED, ///< Output configuration locked in place
114114 };
115115
116−typedef struct {
116+typedef struct OutputConfiguration {
117117 MPEG4AudioConfig m4ac;
118118 uint8_t layout_map[MAX_ELEM_ID*4][3];
119119 int layout_map_tags;
@@ -125,7 +125,7 @@ typedef struct { · 5 unmodified lines
125125 /**
126126 * Predictor State
127127 */
128−typedef struct {
128+typedef struct PredictorState {
129129 float cor0;
130130 float cor1;
131131 float var0;
@@ -146,7 +146,7 @@ typedef struct { · 14 unmodified lines
146146 /**
147147 * Long Term Prediction
148148 */
149−typedef struct {
149+typedef struct LongTermPrediction {
150150 int8_t present;
151151 int16_t lag;
152152 float coef;
@@ -156,7 +156,7 @@ typedef struct { · 3 unmodified lines
156156 /**
157157 * Individual Channel Stream
158158 */
159−typedef struct {
159+typedef struct IndividualChannelStream {
160160 uint8_t max_sfb; ///< number of scalefactor bands per group
161161 enum WindowSequence window_sequence[2];
162162 uint8_t use_kb_window[2]; ///< If set, use Kaiser-Bessel window, otherwise use a sinus window.
@@ -177,7 +177,7 @@ typedef struct { · 14 unmodified lines
177177 /**
178178 * Temporal Noise Shaping
179179 */
180−typedef struct {
180+typedef struct TemporalNoiseShaping {
181181 int present;
182182 int n_filt[8];
183183 int length[8][4];
@@ -189,7 +189,7 @@ typedef struct { · 5 unmodified lines
189189 /**
190190 * Dynamic Range Control - decoded from the bitstream but not processed further.
191191 */
192−typedef struct {
192+typedef struct DynamicRangeControl {
193193 int pce_instance_tag; ///< Indicates with which program the DRC info is associated.
194194 int dyn_rng_sgn[17]; ///< DRC sign information; 0 - positive, 1 - negative
195195 int dyn_rng_ctl[17]; ///< DRC magnitude information
@@ -202,7 +202,7 @@ typedef struct { · 6 unmodified lines
202202 */
203203 } DynamicRangeControl;
204204
205−typedef struct {
205+typedef struct Pulse {
206206 int num_pulse;
207207 int start;
208208 int pos[4];
@@ -212,7 +212,7 @@ typedef struct { · 3 unmodified lines
212212 /**
213213 * coupling parameters
214214 */
215−typedef struct {
215+typedef struct ChannelCoupling {
216216 enum CouplingPoint coupling_point; ///< The point during decoding at which coupling is applied.
217217 int num_coupled; ///< number of target elements
218218 enum RawDataBlockType type[8]; ///< Type of channel element to be coupled - SCE or CPE.
@@ -226,7 +226,7 @@ typedef struct { · 7 unmodified lines
226226 /**
227227 * Single Channel Element - used for both SCE and LFE elements.
228228 */
229−typedef struct {
229+typedef struct SingleChannelElement {
230230 IndividualChannelStream ics;
231231 TemporalNoiseShaping tns;
232232 Pulse pulse;
@@ -245,7 +245,7 @@ typedef struct { · 12 unmodified lines
245245 /**
246246 * channel element - generic struct for SCE/CPE/CCE/LFE
247247 */
248−typedef struct {
248+typedef struct ChannelElement {
249249 // CPE specific
250250 int common_window; ///< Set if channels share a common 'IndividualChannelStream' in bitstream.
251251 int ms_mode; ///< Signals mid/side stereo flags coding mode (used by encoder)
@@ -260,7 +260,7 @@ typedef struct { · 8 unmodified lines
260260 /**
261261 * main AAC context
262262 */
263−typedef struct {
263+typedef struct AACContext {
264264 AVCodecContext *avctx;
265265 AVFrame frame;
266266
libavcodec/aacadtsdec.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828
2929 #define AAC_ADTS_HEADER_SIZE 7
3030
31−typedef struct {
31+typedef struct AACADTSHeaderInfo {
3232 uint32_t sample_rate;
3333 uint32_t samples;
3434 uint32_t bit_rate;
libavcodec/aacps.h+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #define PS_AP_LINKS 3
3939 #define PS_MAX_AP_DELAY 5
4040
41−typedef struct {
41+typedef struct PSContext {
4242 int start;
4343 int enable_iid;
4444 int iid_quant;
libavcodec/ac3.h+1−1
@@ -91,7 +91,7 @@ typedef struct AC3BitAllocParameters { · 90 unmodified lines
9191 * @struct AC3HeaderInfo
9292 * Coded AC-3 header values up to the lfeon element, plus derived values.
9393 */
94−typedef struct {
94+typedef struct AC3HeaderInfo {
9595 /** @name Coded elements
9696 * @{
9797 */
libavcodec/ac3dec.h+1−1
@@ -65,7 +65,7 @@ · 64 unmodified lines
6565 /** Large enough for maximum possible frame size when the specification limit is ignored */
6666 #define AC3_FRAME_BUFFER_SIZE 32768
6767
68−typedef struct {
68+typedef struct AC3DecodeContext {
6969 AVClass *class; ///< class for AVOptions
7070 AVCodecContext *avctx; ///< parent context
7171 AVFrame frame; ///< AVFrame for decoded output
libavcodec/acelp_vectors.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include <stdint.h>
2727
2828 /** Sparse representation for the algebraic codebook (fixed) vector */
29−typedef struct {
29+typedef struct AMRFixed {
3030 int n;
3131 int x[10];
3232 float y[10];
libavcodec/adx.h+2−2
@@ -35,11 +35,11 @@ · 34 unmodified lines
3535
3636 #include "avcodec.h"
3737
38−typedef struct {
38+typedef struct ADXChannelState {
3939 int s1,s2;
4040 } ADXChannelState;
4141
42−typedef struct {
42+typedef struct ADXContext {
4343 AVFrame frame;
4444 int channels;
4545 ADXChannelState prev[2];
libavcodec/amrnbdata.h+2−2
@@ -55,7 +55,7 @@ enum Mode { · 54 unmodified lines
5555 /**
5656 * AMRNB unpacked data subframe
5757 */
58−typedef struct {
58+typedef struct AMRNBSubframe {
5959 uint16_t p_lag; ///< index to decode the pitch lag
6060 uint16_t p_gain; ///< index to decode the pitch gain
6161 uint16_t fixed_gain; ///< index to decode the fixed gain factor, for MODE_12k2 and MODE_7k95
@@ -65,7 +65,7 @@ typedef struct { · 3 unmodified lines
6565 /**
6666 * AMRNB unpacked data frame
6767 */
68−typedef struct {
68+typedef struct AMRNBFrame {
6969 uint16_t lsf[5]; ///< lsf parameters: 5 parameters for MODE_12k2, only 3 for other modes
7070 AMRNBSubframe subframe[4]; ///< unpacked data for each subframe
7171 } AMRNBFrame;
libavcodec/amrwbdata.h+2−2
@@ -66,7 +66,7 @@ enum Mode { · 65 unmodified lines
6666
6767 /* All decoded parameters in these structs must be 2 bytes long
6868 * because of the direct indexing at the frame parsing */
69−typedef struct {
69+typedef struct AMRWBSubFrame {
7070 uint16_t adap; ///< adaptive codebook index
7171 uint16_t ltp; ///< ltp-filtering flag
7272 uint16_t vq_gain; ///< VQ adaptive and innovative gains
@@ -75,7 +75,7 @@ typedef struct { · 2 unmodified lines
7575 uint16_t pul_il[4]; ///< LSBs part of codebook index
7676 } AMRWBSubFrame;
7777
78−typedef struct {
78+typedef struct AMRWBFrame {
7979 uint16_t vad; ///< voice activity detection flag
8080 uint16_t isp_id[7]; ///< index of ISP subvectors
8181 AMRWBSubFrame subframe[4]; ///< data for subframes
libavcodec/bytestream.h+2−2
@@ -29,11 +29,11 @@ · 28 unmodified lines
2929 #include "libavutil/common.h"
3030 #include "libavutil/intreadwrite.h"
3131
32−typedef struct {
32+typedef struct GetByteContext {
3333 const uint8_t *buffer, *buffer_end, *buffer_start;
3434 } GetByteContext;
3535
36−typedef struct {
36+typedef struct PutByteContext {
3737 uint8_t *buffer, *buffer_end, *buffer_start;
3838 int eof;
3939 } PutByteContext;
libavcodec/cavs.h+1−1
@@ -152,7 +152,7 @@ struct dec_2dvlc { · 151 unmodified lines
152152 int8_t max_run;
153153 };
154154
155−typedef struct {
155+typedef struct AVSContext {
156156 MpegEncContext s;
157157 CAVSDSPContext cdsp;
158158 Picture picture; ///< currently decoded frame
libavcodec/dirac.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 #include "avcodec.h"
3232 #include "get_bits.h"
3333
34−typedef struct {
34+typedef struct dirac_source_params {
3535 unsigned width;
3636 unsigned height;
3737 uint8_t chroma_format; ///< 0: 444 1: 422 2: 420
libavcodec/dnxhddata.h+1−1
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include <stdint.h>
2626 #include "avcodec.h"
2727
28−typedef struct {
28+typedef struct CIDEntry {
2929 int cid;
3030 unsigned int width, height;
3131 int interlaced;
libavcodec/dnxhdenc.h+2−2
@@ -29,12 +29,12 @@ · 28 unmodified lines
2929 #include "mpegvideo.h"
3030 #include "dnxhddata.h"
3131
32−typedef struct {
32+typedef struct RCCMPEntry {
3333 uint16_t mb;
3434 int value;
3535 } RCCMPEntry;
3636
37−typedef struct {
37+typedef struct RCEntry {
3838 int ssd;
3939 int bits;
4040 } RCEntry;
libavcodec/dwt.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 typedef int DWTELEM;
2727 typedef short IDWTELEM;
2828
29−typedef struct {
29+typedef struct DWTCompose {
3030 IDWTELEM *b0;
3131 IDWTELEM *b1;
3232 IDWTELEM *b2;
libavcodec/g722.h+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030
3131 #define PREV_SAMPLES_BUF_SIZE 1024
3232
33−typedef struct {
33+typedef struct G722Context {
3434 const AVClass *class;
3535 AVFrame frame;
3636 int bits_per_codeword;
libavcodec/gsmdec_data.h+1−1
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include <stdint.h>
2626 #include "avcodec.h"
2727
28−typedef struct {
28+typedef struct GSMContext {
2929 AVFrame frame;
3030 // Contains first 120 elements from the previous frame
3131 // (used by long_term_synth according to the "lag"),
libavcodec/huffman.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "avcodec.h"
3030 #include "get_bits.h"
3131
32−typedef struct {
32+typedef struct Node {
3333 int16_t sym;
3434 int16_t n0;
3535 uint32_t count;
libavcodec/indeo3data.h+1−1
@@ -320,7 +320,7 @@ static const int32_t delta_tab_3_4_m10[79] = { TAB_3_4 }; · 319 unmodified lines
320320 static const int32_t delta_tab_3_5_m10[79] = { TAB_3_5 };
321321
322322
323−typedef struct {
323+typedef struct vqEntry {
324324 const int16_t *deltas; ///< delta tables for 4x4 block modes
325325 const int32_t *deltas_m10; ///< delta tables for 8x8 block modes
326326 uint8_t num_dyads; ///< number of two-pixel deltas
libavcodec/intrax8.h+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323 #include "mpegvideo.h"
2424 #include "intrax8dsp.h"
2525
26−typedef struct{
26+typedef struct IntraX8Context {
2727 VLC * j_ac_vlc[4];//they point to the static j_mb_vlc
2828 VLC * j_orient_vlc;
2929 VLC * j_dc_vlc[3];
libavcodec/ivi_common.h+8−8
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 /**
4141 * huffman codebook descriptor
4242 */
43−typedef struct {
43+typedef struct IVIHuffDesc {
4444 int32_t num_rows;
4545 uint8_t xbits[16];
4646 } IVIHuffDesc;
@@ -48,7 +48,7 @@ typedef struct { · 1 unmodified line
4848 /**
4949 * macroblock/block huffman table descriptor
5050 */
51−typedef struct {
51+typedef struct IVIHuffTab {
5252 int32_t tab_sel; /// index of one of the predefined tables
5353 /// or "7" for custom one
5454 VLC *tab; /// pointer to the table associated with tab_sel
@@ -85,7 +85,7 @@ typedef void (DCTransformPtr) (const int32_t *in, int16_t *out, uint32_t pitch, · 30 unmodified lines
8585 /**
8686 * run-value (RLE) table descriptor
8787 */
88−typedef struct {
88+typedef struct RVMapDesc {
8989 uint8_t eob_sym; ///< end of block symbol
9090 uint8_t esc_sym; ///< escape symbol
9191 uint8_t runtab[256];
@@ -98,7 +98,7 @@ extern const RVMapDesc ff_ivi_rvmap_tabs[9]; · 6 unmodified lines
9898 /**
9999 * information for Indeo macroblock (16x16, 8x8 or 4x4)
100100 */
101−typedef struct {
101+typedef struct IVIMbInfo {
102102 int16_t xpos;
103103 int16_t ypos;
104104 uint32_t buf_offs; ///< address in the output buffer for this mb
@@ -113,7 +113,7 @@ typedef struct { · 8 unmodified lines
113113 /**
114114 * information for Indeo tile
115115 */
116−typedef struct {
116+typedef struct IVITile {
117117 int xpos;
118118 int ypos;
119119 int width;
@@ -130,7 +130,7 @@ typedef struct { · 10 unmodified lines
130130 /**
131131 * information for Indeo wavelet band
132132 */
133−typedef struct {
133+typedef struct IVIBandDesc {
134134 int plane; ///< plane number this band belongs to
135135 int band_num; ///< band number
136136 int width;
@@ -177,7 +177,7 @@ typedef struct { · 40 unmodified lines
177177 /**
178178 * color plane (luma or chroma) information
179179 */
180−typedef struct {
180+typedef struct IVIPlaneDesc {
181181 uint16_t width;
182182 uint16_t height;
183183 uint8_t num_bands; ///< number of bands this plane subdivided into
@@ -185,7 +185,7 @@ typedef struct { · 1 unmodified line
185185 } IVIPlaneDesc;
186186
187187
188−typedef struct {
188+typedef struct IVIPicConfig {
189189 uint16_t pic_width;
190190 uint16_t pic_height;
191191 uint16_t chroma_width;
libavcodec/libschroedinger.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131
3232 #include "avcodec.h"
3333
34−typedef struct {
34+typedef struct SchroVideoFormatInfo {
3535 uint16_t width;
3636 uint16_t height;
3737 uint16_t frame_rate_num;
libavcodec/mlp.h+2−2
@@ -71,7 +71,7 @@ · 70 unmodified lines
7171 #define IIR 1
7272
7373 /** filter data */
74−typedef struct {
74+typedef struct FilterParams {
7575 uint8_t order; ///< number of taps in filter
7676 uint8_t shift; ///< Right shift to apply to output of filter.
7777
@@ -79,7 +79,7 @@ typedef struct { · 1 unmodified line
7979 } FilterParams;
8080
8181 /** sample data coding information */
82−typedef struct {
82+typedef struct ChannelParams {
8383 FilterParams filter_params[NUM_FILTERS];
8484 int32_t coeff[NUM_FILTERS][MAX_FIR_ORDER];
8585
libavcodec/mpc.h+2−2
@@ -41,7 +41,7 @@ · 40 unmodified lines
4141 #define MPC_FRAME_SIZE (BANDS * SAMPLES_PER_BAND)
4242
4343 /** Subband structure - hold all variables for each subband */
44−typedef struct {
44+typedef struct Band {
4545 int msf; ///< mid-stereo flag
4646 int res[2];
4747 int scfi[2];
@@ -49,7 +49,7 @@ typedef struct { · 1 unmodified line
4949 int Q[2];
5050 }Band;
5151
52−typedef struct {
52+typedef struct MPCContext {
5353 AVFrame frame;
5454 DSPContext dsp;
5555 MPADSPContext mpadsp;
libavcodec/mpeg4audio.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "get_bits.h"
2727 #include "put_bits.h"
2828
29−typedef struct {
29+typedef struct MPEG4AudioConfig {
3030 int object_type;
3131 int sampling_index;
3232 int sample_rate;
libavcodec/proresdsp.h+1−1
@@ -27,7 +27,7 @@ · 26 unmodified lines
2727
2828 #define PRORES_BITS_PER_SAMPLE 10 ///< output precision of prores decoder
2929
30−typedef struct {
30+typedef struct ProresDSPContext {
3131 int idct_permutation_type;
3232 uint8_t idct_permutation[64];
3333 int dct_permutation_type;
libavcodec/qcelpdata.h+2−2
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737 /**
3838 * QCELP unpacked data frame
3939 */
40−typedef struct {
40+typedef struct QCELPFrame {
4141 /// @name QCELP excitation codebook parameters
4242 /// @{
4343 uint8_t cbsign[16]; ///< sign of the codebook gain for each codebook subframe
@@ -73,7 +73,7 @@ typedef struct { · 29 unmodified lines
7373 */
7474 static const float qcelp_hammsinc_table[4] = { -0.006822, 0.041249, -0.143459, 0.588863};
7575
76−typedef struct {
76+typedef struct QCELPBitmap {
7777 uint8_t index; /**< index into the QCELPContext structure */
7878 uint8_t bitpos; /**< position of the lowest bit in the value's byte */
7979 uint8_t bitlen; /**< number of bits to read */
libavcodec/ra144.h+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #define FRAMESIZE 20 ///< size of encoded frame
3434 #define LPC_ORDER 10 ///< order of LPC filter
3535
36−typedef struct {
36+typedef struct RA144Context {
3737 AVCodecContext *avctx;
3838 AVFrame frame;
3939 LPCContext lpc_ctx;
libavcodec/roqvideo.h+3−3
@@ -27,16 +27,16 @@ · 26 unmodified lines
2727 #include "bytestream.h"
2828 #include "dsputil.h"
2929
30−typedef struct {
30+typedef struct roq_cell {
3131 unsigned char y[4];
3232 unsigned char u, v;
3333 } roq_cell;
3434
35−typedef struct {
35+typedef struct roq_qcell {
3636 int idx[4];
3737 } roq_qcell;
3838
39−typedef struct {
39+typedef struct motion_vect {
4040 int d[2];
4141 } motion_vect;
4242
libavcodec/rtjpeg.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #define RTJPEG_FILE_VERSION 0
3030 #define RTJPEG_HEADER_SIZE 12
3131
32−typedef struct {
32+typedef struct RTJpegContext {
3333 int w, h;
3434 DSPContext *dsp;
3535 uint8_t scan[64];
libavcodec/sbr.h+3−3
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737 /**
3838 * Spectral Band Replication header - spectrum parameters that invoke a reset if they differ from the previous header.
3939 */
40−typedef struct {
40+typedef struct SpectrumParameters {
4141 uint8_t bs_start_freq;
4242 uint8_t bs_stop_freq;
4343 uint8_t bs_xover_band;
@@ -57,7 +57,7 @@ typedef struct { · 13 unmodified lines
5757 /**
5858 * Spectral Band Replication per channel data
5959 */
60−typedef struct {
60+typedef struct SBRData {
6161 /**
6262 * @name Main bitstream data variables
6363 * @{
@@ -111,7 +111,7 @@ typedef struct { · 47 unmodified lines
111111 /**
112112 * Spectral Band Replication
113113 */
114−typedef struct {
114+typedef struct SpectralBandReplication {
115115 int sample_rate;
116116 int start;
117117 int reset;
libavcodec/vorbis.h+1−1
@@ -29,7 +29,7 @@ extern const uint8_t ff_vorbis_channel_layout_offsets[8][8]; · 28 unmodified lines
2929 extern const uint8_t ff_vorbis_encoding_channel_layout_offsets[8][8];
3030 extern const uint64_t ff_vorbis_channel_layouts[9];
3131
32−typedef struct {
32+typedef struct vorbis_floor1_entry {
3333 uint16_t x;
3434 uint16_t sort;
3535 uint16_t low;
libavcodec/vp56.h+5−5
@@ -35,7 +35,7 @@ · 34 unmodified lines
3535
3636 typedef struct vp56_context VP56Context;
3737
38−typedef struct {
38+typedef struct VP56mv {
3939 DECLARE_ALIGNED(4, int16_t, x);
4040 int16_t y;
4141 } VP56mv;
@@ -52,7 +52,7 @@ typedef int (*VP56ParseCoeffModels)(VP56Context *s); · 10 unmodified lines
5252 typedef int (*VP56ParseHeader)(VP56Context *s, const uint8_t *buf,
5353 int buf_size, int *golden_frame);
5454
55−typedef struct {
55+typedef struct VP56RangeCoder {
5656 int high;
5757 int bits; /* stored negated (i.e. negative "bits" is a positive number of
5858 bits left) in order to eliminate a negate in cache refilling */
@@ -61,18 +61,18 @@ typedef struct { · 2 unmodified lines
6161 unsigned int code_word;
6262 } VP56RangeCoder;
6363
64−typedef struct {
64+typedef struct VP56RefDc {
6565 uint8_t not_null_dc;
6666 VP56Frame ref_frame;
6767 DCTELEM dc_coeff;
6868 } VP56RefDc;
6969
70−typedef struct {
70+typedef struct VP56Macroblock {
7171 uint8_t type;
7272 VP56mv mv;
7373 } VP56Macroblock;
7474
75−typedef struct {
75+typedef struct VP56Model {
7676 uint8_t coeff_reorder[64]; /* used in vp6 only */
7777 uint8_t coeff_index_to_pos[64]; /* used in vp6 only */
7878 uint8_t vector_sig[2]; /* delta sign */
libavcodec/vp56data.h+1−1
@@ -51,7 +51,7 @@ typedef enum { · 50 unmodified lines
5151 VP56_MB_INTER_V2_GF = 9, /**< Inter MB, second vector, from golden frame */
5252 } VP56mb;
5353
54−typedef struct {
54+typedef struct VP56Tree {
5555 int8_t val;
5656 int8_t prob_idx;
5757 } VP56Tree;
libavcodec/vp8.h+4−4
@@ -72,13 +72,13 @@ enum inter_splitmvmode { · 71 unmodified lines
7272 VP8_SPLITMVMODE_NONE, ///< (only used in prediction) no split MVs
7373 };
7474
75−typedef struct {
75+typedef struct VP8FilterStrength {
7676 uint8_t filter_level;
7777 uint8_t inner_limit;
7878 uint8_t inner_filter;
7979 } VP8FilterStrength;
8080
81−typedef struct {
81+typedef struct VP8Macroblock {
8282 uint8_t skip;
8383 // todo: make it possible to check for at least (i4x4 or split_mv)
8484 // in one op. are others needed?
@@ -93,7 +93,7 @@ typedef struct { · 8 unmodified lines
9393 VP56mv bmv[16];
9494 } VP8Macroblock;
9595
96−typedef struct {
96+typedef struct VP8ThreadData {
9797 DECLARE_ALIGNED(16, DCTELEM, block)[6][4][16];
9898 DECLARE_ALIGNED(16, DCTELEM, block_dc)[16];
9999 /**
@@ -123,7 +123,7 @@ typedef struct { · 23 unmodified lines
123123 } VP8ThreadData;
124124
125125 #define MAX_THREADS 8
126−typedef struct {
126+typedef struct VP8Context {
127127 VP8ThreadData *thread_data;
128128 AVCodecContext *avctx;
129129 AVFrame *framep[4];
libavcodec/w32pthreads.h+3−3
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242 #include "libavutil/internal.h"
4343 #include "libavutil/mem.h"
4444
45−typedef struct {
45+typedef struct pthread_t {
4646 void *handle;
4747 void *(*func)(void* arg);
4848 void *arg;
@@ -56,7 +56,7 @@ typedef CRITICAL_SECTION pthread_mutex_t; · 7 unmodified lines
5656 /* This is the CONDITIONAL_VARIABLE typedef for using Window's native
5757 * conditional variables on kernels 6.0+.
5858 * MinGW does not currently have this typedef. */
59−typedef struct {
59+typedef struct pthread_cond_t {
6060 void *ptr;
6161 } pthread_cond_t;
6262
@@ -117,7 +117,7 @@ static inline int pthread_mutex_unlock(pthread_mutex_t *m) · 54 unmodified lines
117117
118118 /* for pre-Windows 6.0 platforms we need to define and use our own condition
119119 * variable and api */
120−typedef struct {
120+typedef struct win32_cond_t {
121121 pthread_mutex_t mtx_broadcast;
122122 pthread_mutex_t mtx_waiter_count;
123123 volatile int waiter_count;
libavcodec/x86/dsputil_mmx.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "libavcodec/dsputil.h"
2727 #include "libavutil/x86/asm.h"
2828
29−typedef struct { uint64_t a, b; } xmm_reg;
29+typedef struct xmm_reg { uint64_t a, b; } xmm_reg;
3030
3131 extern const uint64_t ff_bone;
3232 extern const uint64_t ff_wtwo;
libavdevice/alsa-audio.h+1−1
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242
4343 #define ALSA_BUFFER_SIZE_MAX 32768
4444
45−typedef struct {
45+typedef struct AlsaData {
4646 AVClass *class;
4747 snd_pcm_t *h;
4848 int frame_size; ///< preferred size for reads and writes
libavdevice/sndio_common.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "libavformat/avformat.h"
2929 #include "libavutil/log.h"
3030
31−typedef struct {
31+typedef struct SndioData {
3232 AVClass *class;
3333 struct sio_hdl *hdl;
3434 enum AVCodecID codec_id;
libavfilter/gradfun.h+1−1
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include "avfilter.h"
2626
2727 /// Holds instance-specific information for gradfun.
28−typedef struct {
28+typedef struct GradFunContext {
2929 int thresh; ///< threshold for gradient algorithm
3030 int radius; ///< blur radius
3131 int chroma_w; ///< width of the chroma planes
libavfilter/yadif.h+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #include "libavutil/pixdesc.h"
2323 #include "avfilter.h"
2424
25−typedef struct {
25+typedef struct YADIFContext {
2626 /**
2727 * 0: send 1 frame for each frame
2828 * 1: send 1 frame for each field
libavformat/asf.h+3−3
@@ -27,7 +27,7 @@ · 26 unmodified lines
2727
2828 #define PACKET_SIZE 3200
2929
30−typedef struct {
30+typedef struct ASFStream {
3131 int num;
3232 unsigned char seq;
3333 /* use for reading */
@@ -50,7 +50,7 @@ typedef struct { · 16 unmodified lines
5050
5151 typedef uint8_t ff_asf_guid[16];
5252
53−typedef struct {
53+typedef struct ASFMainHeader {
5454 ff_asf_guid guid; ///< generated by client computer
5555 uint64_t file_size; /**< in bytes
5656 * invalid if broadcasting */
@@ -76,7 +76,7 @@ typedef struct { · 19 unmodified lines
7676 } ASFMainHeader;
7777
7878
79−typedef struct {
79+typedef struct ASFIndex {
8080 uint32_t packet_number;
8181 uint16_t packet_count;
8282 } ASFIndex;
libavformat/audiointerleave.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "libavutil/fifo.h"
2727 #include "avformat.h"
2828
29−typedef struct {
29+typedef struct AudioInterleaveContext {
3030 AVFifoBuffer *fifo;
3131 unsigned fifo_size; ///< size of currently allocated FIFO
3232 uint64_t dts; ///< current dts
libavformat/httpauth.h+2−2
@@ -32,7 +32,7 @@ typedef enum HTTPAuthType { · 31 unmodified lines
3232 HTTP_AUTH_DIGEST, /**< HTTP 1.1 Digest auth from RFC 2617 */
3333 } HTTPAuthType;
3434
35−typedef struct {
35+typedef struct DigestParams {
3636 char nonce[300]; /**< Server specified nonce */
3737 char algorithm[10]; /**< Server specified digest algorithm */
3838 char qop[30]; /**< Quality of protection, containing the one
@@ -52,7 +52,7 @@ typedef struct { · 13 unmodified lines
5252 * HTTP Authentication state structure. Must be zero-initialized
5353 * before used with the functions below.
5454 */
55−typedef struct {
55+typedef struct HTTPAuthState {
5656 /**
5757 * The currently chosen auth type.
5858 */
libavformat/isom.h+7−7
@@ -42,18 +42,18 @@ int ff_mov_lang_to_iso639(unsigned code, char to[4]); · 41 unmodified lines
4242 * Here we just use what is needed to read the chunks
4343 */
4444
45−typedef struct {
45+typedef struct MOVStts {
4646 int count;
4747 int duration;
4848 } MOVStts;
4949
50−typedef struct {
50+typedef struct MOVStsc {
5151 int first;
5252 int count;
5353 int id;
5454 } MOVStsc;
5555
56−typedef struct {
56+typedef struct MOVDref {
5757 uint32_t type;
5858 char *path;
5959 char *dir;
@@ -62,14 +62,14 @@ typedef struct { · 2 unmodified lines
6262 int16_t nlvl_to, nlvl_from;
6363 } MOVDref;
6464
65−typedef struct {
65+typedef struct MOVAtom {
6666 uint32_t type;
6767 int64_t size; /* total size (excluding the size and type fields) */
6868 } MOVAtom;
6969
7070 struct MOVParseTableEntry;
7171
72−typedef struct {
72+typedef struct MOVFragment {
7373 unsigned track_id;
7474 uint64_t base_data_offset;
7575 uint64_t moof_offset;
@@ -79,7 +79,7 @@ typedef struct { · 3 unmodified lines
7979 unsigned flags;
8080 } MOVFragment;
8181
82−typedef struct {
82+typedef struct MOVTrackExt {
8383 unsigned track_id;
8484 unsigned stsd_id;
8585 unsigned duration;
@@ -87,7 +87,7 @@ typedef struct { · 1 unmodified line
8787 unsigned flags;
8888 } MOVTrackExt;
8989
90−typedef struct {
90+typedef struct MOVSbgp {
9191 unsigned int count;
9292 unsigned int index;
9393 } MOVSbgp;
libavformat/mms.h+2−2
@@ -23,11 +23,11 @@ · 22 unmodified lines
2323
2424 #include "url.h"
2525
26−typedef struct {
26+typedef struct MMSStream {
2727 int id;
2828 }MMSStream;
2929
30−typedef struct {
30+typedef struct MMSContext {
3131 URLContext *mms_hd; ///< TCP connection handle
3232 MMSStream *streams;
3333
libavformat/movenc.h+2−2
@@ -60,13 +60,13 @@ typedef struct HintSample { · 59 unmodified lines
6060 int own_data;
6161 } HintSample;
6262
63−typedef struct {
63+typedef struct HintSampleQueue {
6464 int size;
6565 int len;
6666 HintSample *samples;
6767 } HintSampleQueue;
6868
69−typedef struct {
69+typedef struct MOVFragmentInfo {
7070 int64_t offset;
7171 int64_t time;
7272 int64_t duration;
libavformat/mpegts.h+2−2
@@ -65,7 +65,7 @@ int ff_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, · 64 unmodified lines
6565 const uint8_t *buf, int len);
6666 void ff_mpegts_parse_close(MpegTSContext *ts);
6767
68−typedef struct {
68+typedef struct SLConfigDescr {
6969 int use_au_start;
7070 int use_au_end;
7171 int use_rand_acc_pt;
@@ -82,7 +82,7 @@ typedef struct { · 10 unmodified lines
8282 int packet_seq_num_len;
8383 } SLConfigDescr;
8484
85−typedef struct {
85+typedef struct Mp4Descr {
8686 int es_id;
8787 int dec_config_descr_len;
8888 uint8_t *dec_config_descr;
libavformat/mxf.h+2−2
@@ -54,13 +54,13 @@ enum MXFFrameLayout { · 53 unmodified lines
5454 SeparateFields
5555 };
5656
57−typedef struct {
57+typedef struct KLVPacket {
5858 UID key;
5959 int64_t offset;
6060 uint64_t length;
6161 } KLVPacket;
6262
63−typedef struct {
63+typedef struct MXFCodecUL {
6464 UID uid;
6565 unsigned matching_len;
6666 int id;
libavformat/nut.h+6−6
@@ -53,14 +53,14 @@ typedef enum{ · 52 unmodified lines
5353 FLAG_INVALID =8192, ///<if set, frame_code is invalid
5454 } Flag;
5555
56−typedef struct {
56+typedef struct Syncpoint {
5757 uint64_t pos;
5858 uint64_t back_ptr;
5959 // uint64_t global_key_pts;
6060 int64_t ts;
6161 } Syncpoint;
6262
63−typedef struct {
63+typedef struct FrameCode {
6464 uint16_t flags;
6565 uint8_t stream_id;
6666 uint16_t size_mul;
@@ -70,7 +70,7 @@ typedef struct { · 3 unmodified lines
7070 uint8_t header_idx;
7171 } FrameCode;
7272
73−typedef struct {
73+typedef struct StreamContext {
7474 int last_flags;
7575 int skip_until_key_frame;
7676 int64_t last_pts;
@@ -81,11 +81,11 @@ typedef struct { · 4 unmodified lines
8181 int decode_delay; //FIXME duplicate of has_b_frames
8282 } StreamContext;
8383
84−typedef struct {
84+typedef struct ChapterContext {
8585 AVRational *time_base;
8686 } ChapterContext;
8787
88−typedef struct {
88+typedef struct NUTContext {
8989 AVFormatContext *avf;
9090 // int written_packet_size;
9191 // int64_t packet_start;
@@ -106,7 +106,7 @@ typedef struct { · 14 unmodified lines
106106 extern const AVCodecTag ff_nut_subtitle_tags[];
107107 extern const AVCodecTag ff_nut_video_tags[];
108108
109−typedef struct {
109+typedef struct Dispositions {
110110 char str[9];
111111 int flag;
112112 } Dispositions;
libavformat/rtpdec.h+1−1
@@ -72,7 +72,7 @@ void ff_rtp_send_punch_packets(URLContext* rtp_handle); · 71 unmodified lines
7272 int ff_rtp_check_and_send_back_rr(RTPDemuxContext *s, int count);
7373
7474 // these statistics are used for rtcp receiver reports...
75−typedef struct {
75+typedef struct RTPStatistics {
7676 uint16_t max_seq; ///< highest sequence number seen
7777 uint32_t cycles; ///< shifted count of sequence number cycles
7878 uint32_t base_seq; ///< base sequence number
libavformat/swf.h+1−1
@@ -64,7 +64,7 @@ · 63 unmodified lines
6464 #undef NDEBUG
6565 #include <assert.h>
6666
67−typedef struct {
67+typedef struct SWFContext {
6868 int64_t duration_pos;
6969 int64_t tag_pos;
7070 int64_t vframes_pos;
libavutil/dict.h+1−1
@@ -68,7 +68,7 @@ · 67 unmodified lines
6868 #define AV_DICT_APPEND 32 /**< If the entry already exists, append to it. Note that no
6969 delimiter is added, the strings are simply concatenated. */
7070
71−typedef struct {
71+typedef struct AVDictionaryEntry {
7272 char *key;
7373 char *value;
7474 } AVDictionaryEntry;
libavutil/lfg.h+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #ifndef AVUTIL_LFG_H
2323 #define AVUTIL_LFG_H
2424
25−typedef struct {
25+typedef struct AVLFG {
2626 unsigned int state[64];
2727 int index;
2828 } AVLFG;
libswscale/swscale.h+2−2
@@ -115,13 +115,13 @@ const int *sws_getCoefficients(int colorspace); · 114 unmodified lines
115115
116116 // when used for filters they must have an odd number of elements
117117 // coeffs cannot be shared between vectors
118−typedef struct {
118+typedef struct SwsVector {
119119 double *coeff; ///< pointer to the list of coefficients
120120 int length; ///< number of coefficients in the vector
121121 } SwsVector;
122122
123123 // vectors can be shared
124−typedef struct {
124+typedef struct SwsFilter {
125125 SwsVector *lumH;
126126 SwsVector *lumV;
127127 SwsVector *chrH;

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