Anonymous structs cannot be forward declared and have no benefit.
Unified · Split
| @@ -121,7 +121,7 @@ typedef struct SpecifierOpt { · 120 unmodified lines | |||
| 121 | } u; | 121 | } u; |
| 122 | } SpecifierOpt; | 122 | } SpecifierOpt; |
| 123 | 123 | ||
| 124 | typedef struct { | 124 | typedef struct OptionDef { |
| 125 | const char *name; | 125 | const char *name; |
| 126 | int flags; | 126 | int flags; |
| 127 | #define HAS_ARG 0x0001 | 127 | #define HAS_ARG 0x0001 |
| @@ -356,7 +356,7 @@ int read_yesno(void); · 228 unmodified lines | |||
| 356 | */ | 356 | */ |
| 357 | int cmdutils_read_file(const char *filename, char **bufptr, size_t *size); | 357 | int cmdutils_read_file(const char *filename, char **bufptr, size_t *size); |
| 358 | 358 | ||
| 359 | typedef struct { | 359 | typedef struct PtsCorrectionContext { |
| 360 | int64_t num_faulty_pts; /// Number of incorrect PTS values so far | 360 | int64_t num_faulty_pts; /// Number of incorrect PTS values so far |
| 361 | int64_t num_faulty_dts; /// Number of incorrect DTS values so far | 361 | int64_t num_faulty_dts; /// Number of incorrect DTS values so far |
| 362 | int64_t last_pts; /// PTS of the last frame | 362 | int64_t last_pts; /// PTS of the last frame |
| @@ -113,7 +113,7 @@ enum OCStatus { · 112 unmodified lines | |||
| 113 | OC_LOCKED, ///< Output configuration locked in place | 113 | OC_LOCKED, ///< Output configuration locked in place |
| 114 | }; | 114 | }; |
| 115 | 115 | ||
| 116 | typedef struct { | 116 | typedef struct OutputConfiguration { |
| 117 | MPEG4AudioConfig m4ac; | 117 | MPEG4AudioConfig m4ac; |
| 118 | uint8_t layout_map[MAX_ELEM_ID*4][3]; | 118 | uint8_t layout_map[MAX_ELEM_ID*4][3]; |
| 119 | int layout_map_tags; | 119 | int layout_map_tags; |
| @@ -125,7 +125,7 @@ typedef struct { · 5 unmodified lines | |||
| 125 | /** | 125 | /** |
| 126 | * Predictor State | 126 | * Predictor State |
| 127 | */ | 127 | */ |
| 128 | typedef struct { | 128 | typedef struct PredictorState { |
| 129 | float cor0; | 129 | float cor0; |
| 130 | float cor1; | 130 | float cor1; |
| 131 | float var0; | 131 | float var0; |
| @@ -146,7 +146,7 @@ typedef struct { · 14 unmodified lines | |||
| 146 | /** | 146 | /** |
| 147 | * Long Term Prediction | 147 | * Long Term Prediction |
| 148 | */ | 148 | */ |
| 149 | typedef struct { | 149 | typedef struct LongTermPrediction { |
| 150 | int8_t present; | 150 | int8_t present; |
| 151 | int16_t lag; | 151 | int16_t lag; |
| 152 | float coef; | 152 | float coef; |
| @@ -156,7 +156,7 @@ typedef struct { · 3 unmodified lines | |||
| 156 | /** | 156 | /** |
| 157 | * Individual Channel Stream | 157 | * Individual Channel Stream |
| 158 | */ | 158 | */ |
| 159 | typedef struct { | 159 | typedef struct IndividualChannelStream { |
| 160 | uint8_t max_sfb; ///< number of scalefactor bands per group | 160 | uint8_t max_sfb; ///< number of scalefactor bands per group |
| 161 | enum WindowSequence window_sequence[2]; | 161 | enum WindowSequence window_sequence[2]; |
| 162 | uint8_t use_kb_window[2]; ///< If set, use Kaiser-Bessel window, otherwise use a sinus window. | 162 | 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 | |||
| 177 | /** | 177 | /** |
| 178 | * Temporal Noise Shaping | 178 | * Temporal Noise Shaping |
| 179 | */ | 179 | */ |
| 180 | typedef struct { | 180 | typedef struct TemporalNoiseShaping { |
| 181 | int present; | 181 | int present; |
| 182 | int n_filt[8]; | 182 | int n_filt[8]; |
| 183 | int length[8][4]; | 183 | int length[8][4]; |
| @@ -189,7 +189,7 @@ typedef struct { · 5 unmodified lines | |||
| 189 | /** | 189 | /** |
| 190 | * Dynamic Range Control - decoded from the bitstream but not processed further. | 190 | * Dynamic Range Control - decoded from the bitstream but not processed further. |
| 191 | */ | 191 | */ |
| 192 | typedef struct { | 192 | typedef struct DynamicRangeControl { |
| 193 | int pce_instance_tag; ///< Indicates with which program the DRC info is associated. | 193 | int pce_instance_tag; ///< Indicates with which program the DRC info is associated. |
| 194 | int dyn_rng_sgn[17]; ///< DRC sign information; 0 - positive, 1 - negative | 194 | int dyn_rng_sgn[17]; ///< DRC sign information; 0 - positive, 1 - negative |
| 195 | int dyn_rng_ctl[17]; ///< DRC magnitude information | 195 | int dyn_rng_ctl[17]; ///< DRC magnitude information |
| @@ -202,7 +202,7 @@ typedef struct { · 6 unmodified lines | |||
| 202 | */ | 202 | */ |
| 203 | } DynamicRangeControl; | 203 | } DynamicRangeControl; |
| 204 | 204 | ||
| 205 | typedef struct { | 205 | typedef struct Pulse { |
| 206 | int num_pulse; | 206 | int num_pulse; |
| 207 | int start; | 207 | int start; |
| 208 | int pos[4]; | 208 | int pos[4]; |
| @@ -212,7 +212,7 @@ typedef struct { · 3 unmodified lines | |||
| 212 | /** | 212 | /** |
| 213 | * coupling parameters | 213 | * coupling parameters |
| 214 | */ | 214 | */ |
| 215 | typedef struct { | 215 | typedef struct ChannelCoupling { |
| 216 | enum CouplingPoint coupling_point; ///< The point during decoding at which coupling is applied. | 216 | enum CouplingPoint coupling_point; ///< The point during decoding at which coupling is applied. |
| 217 | int num_coupled; ///< number of target elements | 217 | int num_coupled; ///< number of target elements |
| 218 | enum RawDataBlockType type[8]; ///< Type of channel element to be coupled - SCE or CPE. | 218 | enum RawDataBlockType type[8]; ///< Type of channel element to be coupled - SCE or CPE. |
| @@ -226,7 +226,7 @@ typedef struct { · 7 unmodified lines | |||
| 226 | /** | 226 | /** |
| 227 | * Single Channel Element - used for both SCE and LFE elements. | 227 | * Single Channel Element - used for both SCE and LFE elements. |
| 228 | */ | 228 | */ |
| 229 | typedef struct { | 229 | typedef struct SingleChannelElement { |
| 230 | IndividualChannelStream ics; | 230 | IndividualChannelStream ics; |
| 231 | TemporalNoiseShaping tns; | 231 | TemporalNoiseShaping tns; |
| 232 | Pulse pulse; | 232 | Pulse pulse; |
| @@ -245,7 +245,7 @@ typedef struct { · 12 unmodified lines | |||
| 245 | /** | 245 | /** |
| 246 | * channel element - generic struct for SCE/CPE/CCE/LFE | 246 | * channel element - generic struct for SCE/CPE/CCE/LFE |
| 247 | */ | 247 | */ |
| 248 | typedef struct { | 248 | typedef struct ChannelElement { |
| 249 | // CPE specific | 249 | // CPE specific |
| 250 | int common_window; ///< Set if channels share a common 'IndividualChannelStream' in bitstream. | 250 | int common_window; ///< Set if channels share a common 'IndividualChannelStream' in bitstream. |
| 251 | int ms_mode; ///< Signals mid/side stereo flags coding mode (used by encoder) | 251 | int ms_mode; ///< Signals mid/side stereo flags coding mode (used by encoder) |
| @@ -260,7 +260,7 @@ typedef struct { · 8 unmodified lines | |||
| 260 | /** | 260 | /** |
| 261 | * main AAC context | 261 | * main AAC context |
| 262 | */ | 262 | */ |
| 263 | typedef struct { | 263 | typedef struct AACContext { |
| 264 | AVCodecContext *avctx; | 264 | AVCodecContext *avctx; |
| 265 | AVFrame frame; | 265 | AVFrame frame; |
| 266 | 266 | ||
| @@ -28,7 +28,7 @@ · 27 unmodified lines | |||
| 28 | 28 | ||
| 29 | #define AAC_ADTS_HEADER_SIZE 7 | 29 | #define AAC_ADTS_HEADER_SIZE 7 |
| 30 | 30 | ||
| 31 | typedef struct { | 31 | typedef struct AACADTSHeaderInfo { |
| 32 | uint32_t sample_rate; | 32 | uint32_t sample_rate; |
| 33 | uint32_t samples; | 33 | uint32_t samples; |
| 34 | uint32_t bit_rate; | 34 | uint32_t bit_rate; |
| @@ -38,7 +38,7 @@ · 37 unmodified lines | |||
| 38 | #define PS_AP_LINKS 3 | 38 | #define PS_AP_LINKS 3 |
| 39 | #define PS_MAX_AP_DELAY 5 | 39 | #define PS_MAX_AP_DELAY 5 |
| 40 | 40 | ||
| 41 | typedef struct { | 41 | typedef struct PSContext { |
| 42 | int start; | 42 | int start; |
| 43 | int enable_iid; | 43 | int enable_iid; |
| 44 | int iid_quant; | 44 | int iid_quant; |
| @@ -91,7 +91,7 @@ typedef struct AC3BitAllocParameters { · 90 unmodified lines | |||
| 91 | * @struct AC3HeaderInfo | 91 | * @struct AC3HeaderInfo |
| 92 | * Coded AC-3 header values up to the lfeon element, plus derived values. | 92 | * Coded AC-3 header values up to the lfeon element, plus derived values. |
| 93 | */ | 93 | */ |
| 94 | typedef struct { | 94 | typedef struct AC3HeaderInfo { |
| 95 | /** @name Coded elements | 95 | /** @name Coded elements |
| 96 | * @{ | 96 | * @{ |
| 97 | */ | 97 | */ |
| @@ -65,7 +65,7 @@ · 64 unmodified lines | |||
| 65 | /** Large enough for maximum possible frame size when the specification limit is ignored */ | 65 | /** Large enough for maximum possible frame size when the specification limit is ignored */ |
| 66 | #define AC3_FRAME_BUFFER_SIZE 32768 | 66 | #define AC3_FRAME_BUFFER_SIZE 32768 |
| 67 | 67 | ||
| 68 | typedef struct { | 68 | typedef struct AC3DecodeContext { |
| 69 | AVClass *class; ///< class for AVOptions | 69 | AVClass *class; ///< class for AVOptions |
| 70 | AVCodecContext *avctx; ///< parent context | 70 | AVCodecContext *avctx; ///< parent context |
| 71 | AVFrame frame; ///< AVFrame for decoded output | 71 | AVFrame frame; ///< AVFrame for decoded output |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include <stdint.h> | 26 | #include <stdint.h> |
| 27 | 27 | ||
| 28 | /** Sparse representation for the algebraic codebook (fixed) vector */ | 28 | /** Sparse representation for the algebraic codebook (fixed) vector */ |
| 29 | typedef struct { | 29 | typedef struct AMRFixed { |
| 30 | int n; | 30 | int n; |
| 31 | int x[10]; | 31 | int x[10]; |
| 32 | float y[10]; | 32 | float y[10]; |
| @@ -35,11 +35,11 @@ · 34 unmodified lines | |||
| 35 | 35 | ||
| 36 | #include "avcodec.h" | 36 | #include "avcodec.h" |
| 37 | 37 | ||
| 38 | typedef struct { | 38 | typedef struct ADXChannelState { |
| 39 | int s1,s2; | 39 | int s1,s2; |
| 40 | } ADXChannelState; | 40 | } ADXChannelState; |
| 41 | 41 | ||
| 42 | typedef struct { | 42 | typedef struct ADXContext { |
| 43 | AVFrame frame; | 43 | AVFrame frame; |
| 44 | int channels; | 44 | int channels; |
| 45 | ADXChannelState prev[2]; | 45 | ADXChannelState prev[2]; |
| @@ -55,7 +55,7 @@ enum Mode { · 54 unmodified lines | |||
| 55 | /** | 55 | /** |
| 56 | * AMRNB unpacked data subframe | 56 | * AMRNB unpacked data subframe |
| 57 | */ | 57 | */ |
| 58 | typedef struct { | 58 | typedef struct AMRNBSubframe { |
| 59 | uint16_t p_lag; ///< index to decode the pitch lag | 59 | uint16_t p_lag; ///< index to decode the pitch lag |
| 60 | uint16_t p_gain; ///< index to decode the pitch gain | 60 | uint16_t p_gain; ///< index to decode the pitch gain |
| 61 | uint16_t fixed_gain; ///< index to decode the fixed gain factor, for MODE_12k2 and MODE_7k95 | 61 | 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 | |||
| 65 | /** | 65 | /** |
| 66 | * AMRNB unpacked data frame | 66 | * AMRNB unpacked data frame |
| 67 | */ | 67 | */ |
| 68 | typedef struct { | 68 | typedef struct AMRNBFrame { |
| 69 | uint16_t lsf[5]; ///< lsf parameters: 5 parameters for MODE_12k2, only 3 for other modes | 69 | uint16_t lsf[5]; ///< lsf parameters: 5 parameters for MODE_12k2, only 3 for other modes |
| 70 | AMRNBSubframe subframe[4]; ///< unpacked data for each subframe | 70 | AMRNBSubframe subframe[4]; ///< unpacked data for each subframe |
| 71 | } AMRNBFrame; | 71 | } AMRNBFrame; |
| @@ -66,7 +66,7 @@ enum Mode { · 65 unmodified lines | |||
| 66 | 66 | ||
| 67 | /* All decoded parameters in these structs must be 2 bytes long | 67 | /* All decoded parameters in these structs must be 2 bytes long |
| 68 | * because of the direct indexing at the frame parsing */ | 68 | * because of the direct indexing at the frame parsing */ |
| 69 | typedef struct { | 69 | typedef struct AMRWBSubFrame { |
| 70 | uint16_t adap; ///< adaptive codebook index | 70 | uint16_t adap; ///< adaptive codebook index |
| 71 | uint16_t ltp; ///< ltp-filtering flag | 71 | uint16_t ltp; ///< ltp-filtering flag |
| 72 | uint16_t vq_gain; ///< VQ adaptive and innovative gains | 72 | uint16_t vq_gain; ///< VQ adaptive and innovative gains |
| @@ -75,7 +75,7 @@ typedef struct { · 2 unmodified lines | |||
| 75 | uint16_t pul_il[4]; ///< LSBs part of codebook index | 75 | uint16_t pul_il[4]; ///< LSBs part of codebook index |
| 76 | } AMRWBSubFrame; | 76 | } AMRWBSubFrame; |
| 77 | 77 | ||
| 78 | typedef struct { | 78 | typedef struct AMRWBFrame { |
| 79 | uint16_t vad; ///< voice activity detection flag | 79 | uint16_t vad; ///< voice activity detection flag |
| 80 | uint16_t isp_id[7]; ///< index of ISP subvectors | 80 | uint16_t isp_id[7]; ///< index of ISP subvectors |
| 81 | AMRWBSubFrame subframe[4]; ///< data for subframes | 81 | AMRWBSubFrame subframe[4]; ///< data for subframes |
| @@ -29,11 +29,11 @@ · 28 unmodified lines | |||
| 29 | #include "libavutil/common.h" | 29 | #include "libavutil/common.h" |
| 30 | #include "libavutil/intreadwrite.h" | 30 | #include "libavutil/intreadwrite.h" |
| 31 | 31 | ||
| 32 | typedef struct { | 32 | typedef struct GetByteContext { |
| 33 | const uint8_t *buffer, *buffer_end, *buffer_start; | 33 | const uint8_t *buffer, *buffer_end, *buffer_start; |
| 34 | } GetByteContext; | 34 | } GetByteContext; |
| 35 | 35 | ||
| 36 | typedef struct { | 36 | typedef struct PutByteContext { |
| 37 | uint8_t *buffer, *buffer_end, *buffer_start; | 37 | uint8_t *buffer, *buffer_end, *buffer_start; |
| 38 | int eof; | 38 | int eof; |
| 39 | } PutByteContext; | 39 | } PutByteContext; |
| @@ -152,7 +152,7 @@ struct dec_2dvlc { · 151 unmodified lines | |||
| 152 | int8_t max_run; | 152 | int8_t max_run; |
| 153 | }; | 153 | }; |
| 154 | 154 | ||
| 155 | typedef struct { | 155 | typedef struct AVSContext { |
| 156 | MpegEncContext s; | 156 | MpegEncContext s; |
| 157 | CAVSDSPContext cdsp; | 157 | CAVSDSPContext cdsp; |
| 158 | Picture picture; ///< currently decoded frame | 158 | Picture picture; ///< currently decoded frame |
| @@ -31,7 +31,7 @@ · 30 unmodified lines | |||
| 31 | #include "avcodec.h" | 31 | #include "avcodec.h" |
| 32 | #include "get_bits.h" | 32 | #include "get_bits.h" |
| 33 | 33 | ||
| 34 | typedef struct { | 34 | typedef struct dirac_source_params { |
| 35 | unsigned width; | 35 | unsigned width; |
| 36 | unsigned height; | 36 | unsigned height; |
| 37 | uint8_t chroma_format; ///< 0: 444 1: 422 2: 420 | 37 | uint8_t chroma_format; ///< 0: 444 1: 422 2: 420 |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | |||
| 25 | #include <stdint.h> | 25 | #include <stdint.h> |
| 26 | #include "avcodec.h" | 26 | #include "avcodec.h" |
| 27 | 27 | ||
| 28 | typedef struct { | 28 | typedef struct CIDEntry { |
| 29 | int cid; | 29 | int cid; |
| 30 | unsigned int width, height; | 30 | unsigned int width, height; |
| 31 | int interlaced; | 31 | int interlaced; |
| @@ -29,12 +29,12 @@ · 28 unmodified lines | |||
| 29 | #include "mpegvideo.h" | 29 | #include "mpegvideo.h" |
| 30 | #include "dnxhddata.h" | 30 | #include "dnxhddata.h" |
| 31 | 31 | ||
| 32 | typedef struct { | 32 | typedef struct RCCMPEntry { |
| 33 | uint16_t mb; | 33 | uint16_t mb; |
| 34 | int value; | 34 | int value; |
| 35 | } RCCMPEntry; | 35 | } RCCMPEntry; |
| 36 | 36 | ||
| 37 | typedef struct { | 37 | typedef struct RCEntry { |
| 38 | int ssd; | 38 | int ssd; |
| 39 | int bits; | 39 | int bits; |
| 40 | } RCEntry; | 40 | } RCEntry; |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | |||
| 26 | typedef int DWTELEM; | 26 | typedef int DWTELEM; |
| 27 | typedef short IDWTELEM; | 27 | typedef short IDWTELEM; |
| 28 | 28 | ||
| 29 | typedef struct { | 29 | typedef struct DWTCompose { |
| 30 | IDWTELEM *b0; | 30 | IDWTELEM *b0; |
| 31 | IDWTELEM *b1; | 31 | IDWTELEM *b1; |
| 32 | IDWTELEM *b2; | 32 | IDWTELEM *b2; |
| @@ -30,7 +30,7 @@ · 29 unmodified lines | |||
| 30 | 30 | ||
| 31 | #define PREV_SAMPLES_BUF_SIZE 1024 | 31 | #define PREV_SAMPLES_BUF_SIZE 1024 |
| 32 | 32 | ||
| 33 | typedef struct { | 33 | typedef struct G722Context { |
| 34 | const AVClass *class; | 34 | const AVClass *class; |
| 35 | AVFrame frame; | 35 | AVFrame frame; |
| 36 | int bits_per_codeword; | 36 | int bits_per_codeword; |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | |||
| 25 | #include <stdint.h> | 25 | #include <stdint.h> |
| 26 | #include "avcodec.h" | 26 | #include "avcodec.h" |
| 27 | 27 | ||
| 28 | typedef struct { | 28 | typedef struct GSMContext { |
| 29 | AVFrame frame; | 29 | AVFrame frame; |
| 30 | // Contains first 120 elements from the previous frame | 30 | // Contains first 120 elements from the previous frame |
| 31 | // (used by long_term_synth according to the "lag"), | 31 | // (used by long_term_synth according to the "lag"), |
| @@ -29,7 +29,7 @@ · 28 unmodified lines | |||
| 29 | #include "avcodec.h" | 29 | #include "avcodec.h" |
| 30 | #include "get_bits.h" | 30 | #include "get_bits.h" |
| 31 | 31 | ||
| 32 | typedef struct { | 32 | typedef struct Node { |
| 33 | int16_t sym; | 33 | int16_t sym; |
| 34 | int16_t n0; | 34 | int16_t n0; |
| 35 | uint32_t count; | 35 | uint32_t count; |
| @@ -320,7 +320,7 @@ static const int32_t delta_tab_3_4_m10[79] = { TAB_3_4 }; · 319 unmodified lines | |||
| 320 | static const int32_t delta_tab_3_5_m10[79] = { TAB_3_5 }; | 320 | static const int32_t delta_tab_3_5_m10[79] = { TAB_3_5 }; |
| 321 | 321 | ||
| 322 | 322 | ||
| 323 | typedef struct { | 323 | typedef struct vqEntry { |
| 324 | const int16_t *deltas; ///< delta tables for 4x4 block modes | 324 | const int16_t *deltas; ///< delta tables for 4x4 block modes |
| 325 | const int32_t *deltas_m10; ///< delta tables for 8x8 block modes | 325 | const int32_t *deltas_m10; ///< delta tables for 8x8 block modes |
| 326 | uint8_t num_dyads; ///< number of two-pixel deltas | 326 | uint8_t num_dyads; ///< number of two-pixel deltas |
| @@ -23,7 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include "mpegvideo.h" | 23 | #include "mpegvideo.h" |
| 24 | #include "intrax8dsp.h" | 24 | #include "intrax8dsp.h" |
| 25 | 25 | ||
| 26 | typedef struct{ | 26 | typedef struct IntraX8Context { |
| 27 | VLC * j_ac_vlc[4];//they point to the static j_mb_vlc | 27 | VLC * j_ac_vlc[4];//they point to the static j_mb_vlc |
| 28 | VLC * j_orient_vlc; | 28 | VLC * j_orient_vlc; |
| 29 | VLC * j_dc_vlc[3]; | 29 | VLC * j_dc_vlc[3]; |
| @@ -40,7 +40,7 @@ · 39 unmodified lines | |||
| 40 | /** | 40 | /** |
| 41 | * huffman codebook descriptor | 41 | * huffman codebook descriptor |
| 42 | */ | 42 | */ |
| 43 | typedef struct { | 43 | typedef struct IVIHuffDesc { |
| 44 | int32_t num_rows; | 44 | int32_t num_rows; |
| 45 | uint8_t xbits[16]; | 45 | uint8_t xbits[16]; |
| 46 | } IVIHuffDesc; | 46 | } IVIHuffDesc; |
| @@ -48,7 +48,7 @@ typedef struct { · 1 unmodified line | |||
| 48 | /** | 48 | /** |
| 49 | * macroblock/block huffman table descriptor | 49 | * macroblock/block huffman table descriptor |
| 50 | */ | 50 | */ |
| 51 | typedef struct { | 51 | typedef struct IVIHuffTab { |
| 52 | int32_t tab_sel; /// index of one of the predefined tables | 52 | int32_t tab_sel; /// index of one of the predefined tables |
| 53 | /// or "7" for custom one | 53 | /// or "7" for custom one |
| 54 | VLC *tab; /// pointer to the table associated with tab_sel | 54 | 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 | |||
| 85 | /** | 85 | /** |
| 86 | * run-value (RLE) table descriptor | 86 | * run-value (RLE) table descriptor |
| 87 | */ | 87 | */ |
| 88 | typedef struct { | 88 | typedef struct RVMapDesc { |
| 89 | uint8_t eob_sym; ///< end of block symbol | 89 | uint8_t eob_sym; ///< end of block symbol |
| 90 | uint8_t esc_sym; ///< escape symbol | 90 | uint8_t esc_sym; ///< escape symbol |
| 91 | uint8_t runtab[256]; | 91 | uint8_t runtab[256]; |
| @@ -98,7 +98,7 @@ extern const RVMapDesc ff_ivi_rvmap_tabs[9]; · 6 unmodified lines | |||
| 98 | /** | 98 | /** |
| 99 | * information for Indeo macroblock (16x16, 8x8 or 4x4) | 99 | * information for Indeo macroblock (16x16, 8x8 or 4x4) |
| 100 | */ | 100 | */ |
| 101 | typedef struct { | 101 | typedef struct IVIMbInfo { |
| 102 | int16_t xpos; | 102 | int16_t xpos; |
| 103 | int16_t ypos; | 103 | int16_t ypos; |
| 104 | uint32_t buf_offs; ///< address in the output buffer for this mb | 104 | uint32_t buf_offs; ///< address in the output buffer for this mb |
| @@ -113,7 +113,7 @@ typedef struct { · 8 unmodified lines | |||
| 113 | /** | 113 | /** |
| 114 | * information for Indeo tile | 114 | * information for Indeo tile |
| 115 | */ | 115 | */ |
| 116 | typedef struct { | 116 | typedef struct IVITile { |
| 117 | int xpos; | 117 | int xpos; |
| 118 | int ypos; | 118 | int ypos; |
| 119 | int width; | 119 | int width; |
| @@ -130,7 +130,7 @@ typedef struct { · 10 unmodified lines | |||
| 130 | /** | 130 | /** |
| 131 | * information for Indeo wavelet band | 131 | * information for Indeo wavelet band |
| 132 | */ | 132 | */ |
| 133 | typedef struct { | 133 | typedef struct IVIBandDesc { |
| 134 | int plane; ///< plane number this band belongs to | 134 | int plane; ///< plane number this band belongs to |
| 135 | int band_num; ///< band number | 135 | int band_num; ///< band number |
| 136 | int width; | 136 | int width; |
| @@ -177,7 +177,7 @@ typedef struct { · 40 unmodified lines | |||
| 177 | /** | 177 | /** |
| 178 | * color plane (luma or chroma) information | 178 | * color plane (luma or chroma) information |
| 179 | */ | 179 | */ |
| 180 | typedef struct { | 180 | typedef struct IVIPlaneDesc { |
| 181 | uint16_t width; | 181 | uint16_t width; |
| 182 | uint16_t height; | 182 | uint16_t height; |
| 183 | uint8_t num_bands; ///< number of bands this plane subdivided into | 183 | uint8_t num_bands; ///< number of bands this plane subdivided into |
| @@ -185,7 +185,7 @@ typedef struct { · 1 unmodified line | |||
| 185 | } IVIPlaneDesc; | 185 | } IVIPlaneDesc; |
| 186 | 186 | ||
| 187 | 187 | ||
| 188 | typedef struct { | 188 | typedef struct IVIPicConfig { |
| 189 | uint16_t pic_width; | 189 | uint16_t pic_width; |
| 190 | uint16_t pic_height; | 190 | uint16_t pic_height; |
| 191 | uint16_t chroma_width; | 191 | uint16_t chroma_width; |
| @@ -31,7 +31,7 @@ · 30 unmodified lines | |||
| 31 | 31 | ||
| 32 | #include "avcodec.h" | 32 | #include "avcodec.h" |
| 33 | 33 | ||
| 34 | typedef struct { | 34 | typedef struct SchroVideoFormatInfo { |
| 35 | uint16_t width; | 35 | uint16_t width; |
| 36 | uint16_t height; | 36 | uint16_t height; |
| 37 | uint16_t frame_rate_num; | 37 | uint16_t frame_rate_num; |
| @@ -71,7 +71,7 @@ · 70 unmodified lines | |||
| 71 | #define IIR 1 | 71 | #define IIR 1 |
| 72 | 72 | ||
| 73 | /** filter data */ | 73 | /** filter data */ |
| 74 | typedef struct { | 74 | typedef struct FilterParams { |
| 75 | uint8_t order; ///< number of taps in filter | 75 | uint8_t order; ///< number of taps in filter |
| 76 | uint8_t shift; ///< Right shift to apply to output of filter. | 76 | uint8_t shift; ///< Right shift to apply to output of filter. |
| 77 | 77 | ||
| @@ -79,7 +79,7 @@ typedef struct { · 1 unmodified line | |||
| 79 | } FilterParams; | 79 | } FilterParams; |
| 80 | 80 | ||
| 81 | /** sample data coding information */ | 81 | /** sample data coding information */ |
| 82 | typedef struct { | 82 | typedef struct ChannelParams { |
| 83 | FilterParams filter_params[NUM_FILTERS]; | 83 | FilterParams filter_params[NUM_FILTERS]; |
| 84 | int32_t coeff[NUM_FILTERS][MAX_FIR_ORDER]; | 84 | int32_t coeff[NUM_FILTERS][MAX_FIR_ORDER]; |
| 85 | 85 | ||
| @@ -41,7 +41,7 @@ · 40 unmodified lines | |||
| 41 | #define MPC_FRAME_SIZE (BANDS * SAMPLES_PER_BAND) | 41 | #define MPC_FRAME_SIZE (BANDS * SAMPLES_PER_BAND) |
| 42 | 42 | ||
| 43 | /** Subband structure - hold all variables for each subband */ | 43 | /** Subband structure - hold all variables for each subband */ |
| 44 | typedef struct { | 44 | typedef struct Band { |
| 45 | int msf; ///< mid-stereo flag | 45 | int msf; ///< mid-stereo flag |
| 46 | int res[2]; | 46 | int res[2]; |
| 47 | int scfi[2]; | 47 | int scfi[2]; |
| @@ -49,7 +49,7 @@ typedef struct { · 1 unmodified line | |||
| 49 | int Q[2]; | 49 | int Q[2]; |
| 50 | }Band; | 50 | }Band; |
| 51 | 51 | ||
| 52 | typedef struct { | 52 | typedef struct MPCContext { |
| 53 | AVFrame frame; | 53 | AVFrame frame; |
| 54 | DSPContext dsp; | 54 | DSPContext dsp; |
| 55 | MPADSPContext mpadsp; | 55 | MPADSPContext mpadsp; |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "get_bits.h" | 26 | #include "get_bits.h" |
| 27 | #include "put_bits.h" | 27 | #include "put_bits.h" |
| 28 | 28 | ||
| 29 | typedef struct { | 29 | typedef struct MPEG4AudioConfig { |
| 30 | int object_type; | 30 | int object_type; |
| 31 | int sampling_index; | 31 | int sampling_index; |
| 32 | int sample_rate; | 32 | int sample_rate; |
| @@ -27,7 +27,7 @@ · 26 unmodified lines | |||
| 27 | 27 | ||
| 28 | #define PRORES_BITS_PER_SAMPLE 10 ///< output precision of prores decoder | 28 | #define PRORES_BITS_PER_SAMPLE 10 ///< output precision of prores decoder |
| 29 | 29 | ||
| 30 | typedef struct { | 30 | typedef struct ProresDSPContext { |
| 31 | int idct_permutation_type; | 31 | int idct_permutation_type; |
| 32 | uint8_t idct_permutation[64]; | 32 | uint8_t idct_permutation[64]; |
| 33 | int dct_permutation_type; | 33 | int dct_permutation_type; |
| @@ -37,7 +37,7 @@ · 36 unmodified lines | |||
| 37 | /** | 37 | /** |
| 38 | * QCELP unpacked data frame | 38 | * QCELP unpacked data frame |
| 39 | */ | 39 | */ |
| 40 | typedef struct { | 40 | typedef struct QCELPFrame { |
| 41 | /// @name QCELP excitation codebook parameters | 41 | /// @name QCELP excitation codebook parameters |
| 42 | /// @{ | 42 | /// @{ |
| 43 | uint8_t cbsign[16]; ///< sign of the codebook gain for each codebook subframe | 43 | uint8_t cbsign[16]; ///< sign of the codebook gain for each codebook subframe |
| @@ -73,7 +73,7 @@ typedef struct { · 29 unmodified lines | |||
| 73 | */ | 73 | */ |
| 74 | static const float qcelp_hammsinc_table[4] = { -0.006822, 0.041249, -0.143459, 0.588863}; | 74 | static const float qcelp_hammsinc_table[4] = { -0.006822, 0.041249, -0.143459, 0.588863}; |
| 75 | 75 | ||
| 76 | typedef struct { | 76 | typedef struct QCELPBitmap { |
| 77 | uint8_t index; /**< index into the QCELPContext structure */ | 77 | uint8_t index; /**< index into the QCELPContext structure */ |
| 78 | uint8_t bitpos; /**< position of the lowest bit in the value's byte */ | 78 | uint8_t bitpos; /**< position of the lowest bit in the value's byte */ |
| 79 | uint8_t bitlen; /**< number of bits to read */ | 79 | uint8_t bitlen; /**< number of bits to read */ |
| @@ -33,7 +33,7 @@ · 32 unmodified lines | |||
| 33 | #define FRAMESIZE 20 ///< size of encoded frame | 33 | #define FRAMESIZE 20 ///< size of encoded frame |
| 34 | #define LPC_ORDER 10 ///< order of LPC filter | 34 | #define LPC_ORDER 10 ///< order of LPC filter |
| 35 | 35 | ||
| 36 | typedef struct { | 36 | typedef struct RA144Context { |
| 37 | AVCodecContext *avctx; | 37 | AVCodecContext *avctx; |
| 38 | AVFrame frame; | 38 | AVFrame frame; |
| 39 | LPCContext lpc_ctx; | 39 | LPCContext lpc_ctx; |
| @@ -27,16 +27,16 @@ · 26 unmodified lines | |||
| 27 | #include "bytestream.h" | 27 | #include "bytestream.h" |
| 28 | #include "dsputil.h" | 28 | #include "dsputil.h" |
| 29 | 29 | ||
| 30 | typedef struct { | 30 | typedef struct roq_cell { |
| 31 | unsigned char y[4]; | 31 | unsigned char y[4]; |
| 32 | unsigned char u, v; | 32 | unsigned char u, v; |
| 33 | } roq_cell; | 33 | } roq_cell; |
| 34 | 34 | ||
| 35 | typedef struct { | 35 | typedef struct roq_qcell { |
| 36 | int idx[4]; | 36 | int idx[4]; |
| 37 | } roq_qcell; | 37 | } roq_qcell; |
| 38 | 38 | ||
| 39 | typedef struct { | 39 | typedef struct motion_vect { |
| 40 | int d[2]; | 40 | int d[2]; |
| 41 | } motion_vect; | 41 | } motion_vect; |
| 42 | 42 | ||
| @@ -29,7 +29,7 @@ · 28 unmodified lines | |||
| 29 | #define RTJPEG_FILE_VERSION 0 | 29 | #define RTJPEG_FILE_VERSION 0 |
| 30 | #define RTJPEG_HEADER_SIZE 12 | 30 | #define RTJPEG_HEADER_SIZE 12 |
| 31 | 31 | ||
| 32 | typedef struct { | 32 | typedef struct RTJpegContext { |
| 33 | int w, h; | 33 | int w, h; |
| 34 | DSPContext *dsp; | 34 | DSPContext *dsp; |
| 35 | uint8_t scan[64]; | 35 | uint8_t scan[64]; |
| @@ -37,7 +37,7 @@ · 36 unmodified lines | |||
| 37 | /** | 37 | /** |
| 38 | * Spectral Band Replication header - spectrum parameters that invoke a reset if they differ from the previous header. | 38 | * Spectral Band Replication header - spectrum parameters that invoke a reset if they differ from the previous header. |
| 39 | */ | 39 | */ |
| 40 | typedef struct { | 40 | typedef struct SpectrumParameters { |
| 41 | uint8_t bs_start_freq; | 41 | uint8_t bs_start_freq; |
| 42 | uint8_t bs_stop_freq; | 42 | uint8_t bs_stop_freq; |
| 43 | uint8_t bs_xover_band; | 43 | uint8_t bs_xover_band; |
| @@ -57,7 +57,7 @@ typedef struct { · 13 unmodified lines | |||
| 57 | /** | 57 | /** |
| 58 | * Spectral Band Replication per channel data | 58 | * Spectral Band Replication per channel data |
| 59 | */ | 59 | */ |
| 60 | typedef struct { | 60 | typedef struct SBRData { |
| 61 | /** | 61 | /** |
| 62 | * @name Main bitstream data variables | 62 | * @name Main bitstream data variables |
| 63 | * @{ | 63 | * @{ |
| @@ -111,7 +111,7 @@ typedef struct { · 47 unmodified lines | |||
| 111 | /** | 111 | /** |
| 112 | * Spectral Band Replication | 112 | * Spectral Band Replication |
| 113 | */ | 113 | */ |
| 114 | typedef struct { | 114 | typedef struct SpectralBandReplication { |
| 115 | int sample_rate; | 115 | int sample_rate; |
| 116 | int start; | 116 | int start; |
| 117 | int reset; | 117 | int reset; |
| @@ -29,7 +29,7 @@ extern const uint8_t ff_vorbis_channel_layout_offsets[8][8]; · 28 unmodified lines | |||
| 29 | extern const uint8_t ff_vorbis_encoding_channel_layout_offsets[8][8]; | 29 | extern const uint8_t ff_vorbis_encoding_channel_layout_offsets[8][8]; |
| 30 | extern const uint64_t ff_vorbis_channel_layouts[9]; | 30 | extern const uint64_t ff_vorbis_channel_layouts[9]; |
| 31 | 31 | ||
| 32 | typedef struct { | 32 | typedef struct vorbis_floor1_entry { |
| 33 | uint16_t x; | 33 | uint16_t x; |
| 34 | uint16_t sort; | 34 | uint16_t sort; |
| 35 | uint16_t low; | 35 | uint16_t low; |
| @@ -35,7 +35,7 @@ · 34 unmodified lines | |||
| 35 | 35 | ||
| 36 | typedef struct vp56_context VP56Context; | 36 | typedef struct vp56_context VP56Context; |
| 37 | 37 | ||
| 38 | typedef struct { | 38 | typedef struct VP56mv { |
| 39 | DECLARE_ALIGNED(4, int16_t, x); | 39 | DECLARE_ALIGNED(4, int16_t, x); |
| 40 | int16_t y; | 40 | int16_t y; |
| 41 | } VP56mv; | 41 | } VP56mv; |
| @@ -52,7 +52,7 @@ typedef int (*VP56ParseCoeffModels)(VP56Context *s); · 10 unmodified lines | |||
| 52 | typedef int (*VP56ParseHeader)(VP56Context *s, const uint8_t *buf, | 52 | typedef int (*VP56ParseHeader)(VP56Context *s, const uint8_t *buf, |
| 53 | int buf_size, int *golden_frame); | 53 | int buf_size, int *golden_frame); |
| 54 | 54 | ||
| 55 | typedef struct { | 55 | typedef struct VP56RangeCoder { |
| 56 | int high; | 56 | int high; |
| 57 | int bits; /* stored negated (i.e. negative "bits" is a positive number of | 57 | int bits; /* stored negated (i.e. negative "bits" is a positive number of |
| 58 | bits left) in order to eliminate a negate in cache refilling */ | 58 | bits left) in order to eliminate a negate in cache refilling */ |
| @@ -61,18 +61,18 @@ typedef struct { · 2 unmodified lines | |||
| 61 | unsigned int code_word; | 61 | unsigned int code_word; |
| 62 | } VP56RangeCoder; | 62 | } VP56RangeCoder; |
| 63 | 63 | ||
| 64 | typedef struct { | 64 | typedef struct VP56RefDc { |
| 65 | uint8_t not_null_dc; | 65 | uint8_t not_null_dc; |
| 66 | VP56Frame ref_frame; | 66 | VP56Frame ref_frame; |
| 67 | DCTELEM dc_coeff; | 67 | DCTELEM dc_coeff; |
| 68 | } VP56RefDc; | 68 | } VP56RefDc; |
| 69 | 69 | ||
| 70 | typedef struct { | 70 | typedef struct VP56Macroblock { |
| 71 | uint8_t type; | 71 | uint8_t type; |
| 72 | VP56mv mv; | 72 | VP56mv mv; |
| 73 | } VP56Macroblock; | 73 | } VP56Macroblock; |
| 74 | 74 | ||
| 75 | typedef struct { | 75 | typedef struct VP56Model { |
| 76 | uint8_t coeff_reorder[64]; /* used in vp6 only */ | 76 | uint8_t coeff_reorder[64]; /* used in vp6 only */ |
| 77 | uint8_t coeff_index_to_pos[64]; /* used in vp6 only */ | 77 | uint8_t coeff_index_to_pos[64]; /* used in vp6 only */ |
| 78 | uint8_t vector_sig[2]; /* delta sign */ | 78 | uint8_t vector_sig[2]; /* delta sign */ |
| @@ -51,7 +51,7 @@ typedef enum { · 50 unmodified lines | |||
| 51 | VP56_MB_INTER_V2_GF = 9, /**< Inter MB, second vector, from golden frame */ | 51 | VP56_MB_INTER_V2_GF = 9, /**< Inter MB, second vector, from golden frame */ |
| 52 | } VP56mb; | 52 | } VP56mb; |
| 53 | 53 | ||
| 54 | typedef struct { | 54 | typedef struct VP56Tree { |
| 55 | int8_t val; | 55 | int8_t val; |
| 56 | int8_t prob_idx; | 56 | int8_t prob_idx; |
| 57 | } VP56Tree; | 57 | } VP56Tree; |
| @@ -72,13 +72,13 @@ enum inter_splitmvmode { · 71 unmodified lines | |||
| 72 | VP8_SPLITMVMODE_NONE, ///< (only used in prediction) no split MVs | 72 | VP8_SPLITMVMODE_NONE, ///< (only used in prediction) no split MVs |
| 73 | }; | 73 | }; |
| 74 | 74 | ||
| 75 | typedef struct { | 75 | typedef struct VP8FilterStrength { |
| 76 | uint8_t filter_level; | 76 | uint8_t filter_level; |
| 77 | uint8_t inner_limit; | 77 | uint8_t inner_limit; |
| 78 | uint8_t inner_filter; | 78 | uint8_t inner_filter; |
| 79 | } VP8FilterStrength; | 79 | } VP8FilterStrength; |
| 80 | 80 | ||
| 81 | typedef struct { | 81 | typedef struct VP8Macroblock { |
| 82 | uint8_t skip; | 82 | uint8_t skip; |
| 83 | // todo: make it possible to check for at least (i4x4 or split_mv) | 83 | // todo: make it possible to check for at least (i4x4 or split_mv) |
| 84 | // in one op. are others needed? | 84 | // in one op. are others needed? |
| @@ -93,7 +93,7 @@ typedef struct { · 8 unmodified lines | |||
| 93 | VP56mv bmv[16]; | 93 | VP56mv bmv[16]; |
| 94 | } VP8Macroblock; | 94 | } VP8Macroblock; |
| 95 | 95 | ||
| 96 | typedef struct { | 96 | typedef struct VP8ThreadData { |
| 97 | DECLARE_ALIGNED(16, DCTELEM, block)[6][4][16]; | 97 | DECLARE_ALIGNED(16, DCTELEM, block)[6][4][16]; |
| 98 | DECLARE_ALIGNED(16, DCTELEM, block_dc)[16]; | 98 | DECLARE_ALIGNED(16, DCTELEM, block_dc)[16]; |
| 99 | /** | 99 | /** |
| @@ -123,7 +123,7 @@ typedef struct { · 23 unmodified lines | |||
| 123 | } VP8ThreadData; | 123 | } VP8ThreadData; |
| 124 | 124 | ||
| 125 | #define MAX_THREADS 8 | 125 | #define MAX_THREADS 8 |
| 126 | typedef struct { | 126 | typedef struct VP8Context { |
| 127 | VP8ThreadData *thread_data; | 127 | VP8ThreadData *thread_data; |
| 128 | AVCodecContext *avctx; | 128 | AVCodecContext *avctx; |
| 129 | AVFrame *framep[4]; | 129 | AVFrame *framep[4]; |
| @@ -42,7 +42,7 @@ · 41 unmodified lines | |||
| 42 | #include "libavutil/internal.h" | 42 | #include "libavutil/internal.h" |
| 43 | #include "libavutil/mem.h" | 43 | #include "libavutil/mem.h" |
| 44 | 44 | ||
| 45 | typedef struct { | 45 | typedef struct pthread_t { |
| 46 | void *handle; | 46 | void *handle; |
| 47 | void *(*func)(void* arg); | 47 | void *(*func)(void* arg); |
| 48 | void *arg; | 48 | void *arg; |
| @@ -56,7 +56,7 @@ typedef CRITICAL_SECTION pthread_mutex_t; · 7 unmodified lines | |||
| 56 | /* This is the CONDITIONAL_VARIABLE typedef for using Window's native | 56 | /* This is the CONDITIONAL_VARIABLE typedef for using Window's native |
| 57 | * conditional variables on kernels 6.0+. | 57 | * conditional variables on kernels 6.0+. |
| 58 | * MinGW does not currently have this typedef. */ | 58 | * MinGW does not currently have this typedef. */ |
| 59 | typedef struct { | 59 | typedef struct pthread_cond_t { |
| 60 | void *ptr; | 60 | void *ptr; |
| 61 | } pthread_cond_t; | 61 | } pthread_cond_t; |
| 62 | 62 | ||
| @@ -117,7 +117,7 @@ static inline int pthread_mutex_unlock(pthread_mutex_t *m) · 54 unmodified lines | |||
| 117 | 117 | ||
| 118 | /* for pre-Windows 6.0 platforms we need to define and use our own condition | 118 | /* for pre-Windows 6.0 platforms we need to define and use our own condition |
| 119 | * variable and api */ | 119 | * variable and api */ |
| 120 | typedef struct { | 120 | typedef struct win32_cond_t { |
| 121 | pthread_mutex_t mtx_broadcast; | 121 | pthread_mutex_t mtx_broadcast; |
| 122 | pthread_mutex_t mtx_waiter_count; | 122 | pthread_mutex_t mtx_waiter_count; |
| 123 | volatile int waiter_count; | 123 | volatile int waiter_count; |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "libavcodec/dsputil.h" | 26 | #include "libavcodec/dsputil.h" |
| 27 | #include "libavutil/x86/asm.h" | 27 | #include "libavutil/x86/asm.h" |
| 28 | 28 | ||
| 29 | typedef struct { uint64_t a, b; } xmm_reg; | 29 | typedef struct xmm_reg { uint64_t a, b; } xmm_reg; |
| 30 | 30 | ||
| 31 | extern const uint64_t ff_bone; | 31 | extern const uint64_t ff_bone; |
| 32 | extern const uint64_t ff_wtwo; | 32 | extern const uint64_t ff_wtwo; |
| @@ -42,7 +42,7 @@ · 41 unmodified lines | |||
| 42 | 42 | ||
| 43 | #define ALSA_BUFFER_SIZE_MAX 32768 | 43 | #define ALSA_BUFFER_SIZE_MAX 32768 |
| 44 | 44 | ||
| 45 | typedef struct { | 45 | typedef struct AlsaData { |
| 46 | AVClass *class; | 46 | AVClass *class; |
| 47 | snd_pcm_t *h; | 47 | snd_pcm_t *h; |
| 48 | int frame_size; ///< preferred size for reads and writes | 48 | int frame_size; ///< preferred size for reads and writes |
| @@ -28,7 +28,7 @@ · 27 unmodified lines | |||
| 28 | #include "libavformat/avformat.h" | 28 | #include "libavformat/avformat.h" |
| 29 | #include "libavutil/log.h" | 29 | #include "libavutil/log.h" |
| 30 | 30 | ||
| 31 | typedef struct { | 31 | typedef struct SndioData { |
| 32 | AVClass *class; | 32 | AVClass *class; |
| 33 | struct sio_hdl *hdl; | 33 | struct sio_hdl *hdl; |
| 34 | enum AVCodecID codec_id; | 34 | enum AVCodecID codec_id; |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | |||
| 25 | #include "avfilter.h" | 25 | #include "avfilter.h" |
| 26 | 26 | ||
| 27 | /// Holds instance-specific information for gradfun. | 27 | /// Holds instance-specific information for gradfun. |
| 28 | typedef struct { | 28 | typedef struct GradFunContext { |
| 29 | int thresh; ///< threshold for gradient algorithm | 29 | int thresh; ///< threshold for gradient algorithm |
| 30 | int radius; ///< blur radius | 30 | int radius; ///< blur radius |
| 31 | int chroma_w; ///< width of the chroma planes | 31 | int chroma_w; ///< width of the chroma planes |
| @@ -22,7 +22,7 @@ · 21 unmodified lines | |||
| 22 | #include "libavutil/pixdesc.h" | 22 | #include "libavutil/pixdesc.h" |
| 23 | #include "avfilter.h" | 23 | #include "avfilter.h" |
| 24 | 24 | ||
| 25 | typedef struct { | 25 | typedef struct YADIFContext { |
| 26 | /** | 26 | /** |
| 27 | * 0: send 1 frame for each frame | 27 | * 0: send 1 frame for each frame |
| 28 | * 1: send 1 frame for each field | 28 | * 1: send 1 frame for each field |
| @@ -27,7 +27,7 @@ · 26 unmodified lines | |||
| 27 | 27 | ||
| 28 | #define PACKET_SIZE 3200 | 28 | #define PACKET_SIZE 3200 |
| 29 | 29 | ||
| 30 | typedef struct { | 30 | typedef struct ASFStream { |
| 31 | int num; | 31 | int num; |
| 32 | unsigned char seq; | 32 | unsigned char seq; |
| 33 | /* use for reading */ | 33 | /* use for reading */ |
| @@ -50,7 +50,7 @@ typedef struct { · 16 unmodified lines | |||
| 50 | 50 | ||
| 51 | typedef uint8_t ff_asf_guid[16]; | 51 | typedef uint8_t ff_asf_guid[16]; |
| 52 | 52 | ||
| 53 | typedef struct { | 53 | typedef struct ASFMainHeader { |
| 54 | ff_asf_guid guid; ///< generated by client computer | 54 | ff_asf_guid guid; ///< generated by client computer |
| 55 | uint64_t file_size; /**< in bytes | 55 | uint64_t file_size; /**< in bytes |
| 56 | * invalid if broadcasting */ | 56 | * invalid if broadcasting */ |
| @@ -76,7 +76,7 @@ typedef struct { · 19 unmodified lines | |||
| 76 | } ASFMainHeader; | 76 | } ASFMainHeader; |
| 77 | 77 | ||
| 78 | 78 | ||
| 79 | typedef struct { | 79 | typedef struct ASFIndex { |
| 80 | uint32_t packet_number; | 80 | uint32_t packet_number; |
| 81 | uint16_t packet_count; | 81 | uint16_t packet_count; |
| 82 | } ASFIndex; | 82 | } ASFIndex; |
| @@ -26,7 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "libavutil/fifo.h" | 26 | #include "libavutil/fifo.h" |
| 27 | #include "avformat.h" | 27 | #include "avformat.h" |
| 28 | 28 | ||
| 29 | typedef struct { | 29 | typedef struct AudioInterleaveContext { |
| 30 | AVFifoBuffer *fifo; | 30 | AVFifoBuffer *fifo; |
| 31 | unsigned fifo_size; ///< size of currently allocated FIFO | 31 | unsigned fifo_size; ///< size of currently allocated FIFO |
| 32 | uint64_t dts; ///< current dts | 32 | uint64_t dts; ///< current dts |
| @@ -32,7 +32,7 @@ typedef enum HTTPAuthType { · 31 unmodified lines | |||
| 32 | HTTP_AUTH_DIGEST, /**< HTTP 1.1 Digest auth from RFC 2617 */ | 32 | HTTP_AUTH_DIGEST, /**< HTTP 1.1 Digest auth from RFC 2617 */ |
| 33 | } HTTPAuthType; | 33 | } HTTPAuthType; |
| 34 | 34 | ||
| 35 | typedef struct { | 35 | typedef struct DigestParams { |
| 36 | char nonce[300]; /**< Server specified nonce */ | 36 | char nonce[300]; /**< Server specified nonce */ |
| 37 | char algorithm[10]; /**< Server specified digest algorithm */ | 37 | char algorithm[10]; /**< Server specified digest algorithm */ |
| 38 | char qop[30]; /**< Quality of protection, containing the one | 38 | char qop[30]; /**< Quality of protection, containing the one |
| @@ -52,7 +52,7 @@ typedef struct { · 13 unmodified lines | |||
| 52 | * HTTP Authentication state structure. Must be zero-initialized | 52 | * HTTP Authentication state structure. Must be zero-initialized |
| 53 | * before used with the functions below. | 53 | * before used with the functions below. |
| 54 | */ | 54 | */ |
| 55 | typedef struct { | 55 | typedef struct HTTPAuthState { |
| 56 | /** | 56 | /** |
| 57 | * The currently chosen auth type. | 57 | * The currently chosen auth type. |
| 58 | */ | 58 | */ |
| @@ -42,18 +42,18 @@ int ff_mov_lang_to_iso639(unsigned code, char to[4]); · 41 unmodified lines | |||
| 42 | * Here we just use what is needed to read the chunks | 42 | * Here we just use what is needed to read the chunks |
| 43 | */ | 43 | */ |
| 44 | 44 | ||
| 45 | typedef struct { | 45 | typedef struct MOVStts { |
| 46 | int count; | 46 | int count; |
| 47 | int duration; | 47 | int duration; |
| 48 | } MOVStts; | 48 | } MOVStts; |
| 49 | 49 | ||
| 50 | typedef struct { | 50 | typedef struct MOVStsc { |
| 51 | int first; | 51 | int first; |
| 52 | int count; | 52 | int count; |
| 53 | int id; | 53 | int id; |
| 54 | } MOVStsc; | 54 | } MOVStsc; |
| 55 | 55 | ||
| 56 | typedef struct { | 56 | typedef struct MOVDref { |
| 57 | uint32_t type; | 57 | uint32_t type; |
| 58 | char *path; | 58 | char *path; |
| 59 | char *dir; | 59 | char *dir; |
| @@ -62,14 +62,14 @@ typedef struct { · 2 unmodified lines | |||
| 62 | int16_t nlvl_to, nlvl_from; | 62 | int16_t nlvl_to, nlvl_from; |
| 63 | } MOVDref; | 63 | } MOVDref; |
| 64 | 64 | ||
| 65 | typedef struct { | 65 | typedef struct MOVAtom { |
| 66 | uint32_t type; | 66 | uint32_t type; |
| 67 | int64_t size; /* total size (excluding the size and type fields) */ | 67 | int64_t size; /* total size (excluding the size and type fields) */ |
| 68 | } MOVAtom; | 68 | } MOVAtom; |
| 69 | 69 | ||
| 70 | struct MOVParseTableEntry; | 70 | struct MOVParseTableEntry; |
| 71 | 71 | ||
| 72 | typedef struct { | 72 | typedef struct MOVFragment { |
| 73 | unsigned track_id; | 73 | unsigned track_id; |
| 74 | uint64_t base_data_offset; | 74 | uint64_t base_data_offset; |
| 75 | uint64_t moof_offset; | 75 | uint64_t moof_offset; |
| @@ -79,7 +79,7 @@ typedef struct { · 3 unmodified lines | |||
| 79 | unsigned flags; | 79 | unsigned flags; |
| 80 | } MOVFragment; | 80 | } MOVFragment; |
| 81 | 81 | ||
| 82 | typedef struct { | 82 | typedef struct MOVTrackExt { |
| 83 | unsigned track_id; | 83 | unsigned track_id; |
| 84 | unsigned stsd_id; | 84 | unsigned stsd_id; |
| 85 | unsigned duration; | 85 | unsigned duration; |
| @@ -87,7 +87,7 @@ typedef struct { · 1 unmodified line | |||
| 87 | unsigned flags; | 87 | unsigned flags; |
| 88 | } MOVTrackExt; | 88 | } MOVTrackExt; |
| 89 | 89 | ||
| 90 | typedef struct { | 90 | typedef struct MOVSbgp { |
| 91 | unsigned int count; | 91 | unsigned int count; |
| 92 | unsigned int index; | 92 | unsigned int index; |
| 93 | } MOVSbgp; | 93 | } MOVSbgp; |
| @@ -23,11 +23,11 @@ · 22 unmodified lines | |||
| 23 | 23 | ||
| 24 | #include "url.h" | 24 | #include "url.h" |
| 25 | 25 | ||
| 26 | typedef struct { | 26 | typedef struct MMSStream { |
| 27 | int id; | 27 | int id; |
| 28 | }MMSStream; | 28 | }MMSStream; |
| 29 | 29 | ||
| 30 | typedef struct { | 30 | typedef struct MMSContext { |
| 31 | URLContext *mms_hd; ///< TCP connection handle | 31 | URLContext *mms_hd; ///< TCP connection handle |
| 32 | MMSStream *streams; | 32 | MMSStream *streams; |
| 33 | 33 | ||
| @@ -60,13 +60,13 @@ typedef struct HintSample { · 59 unmodified lines | |||
| 60 | int own_data; | 60 | int own_data; |
| 61 | } HintSample; | 61 | } HintSample; |
| 62 | 62 | ||
| 63 | typedef struct { | 63 | typedef struct HintSampleQueue { |
| 64 | int size; | 64 | int size; |
| 65 | int len; | 65 | int len; |
| 66 | HintSample *samples; | 66 | HintSample *samples; |
| 67 | } HintSampleQueue; | 67 | } HintSampleQueue; |
| 68 | 68 | ||
| 69 | typedef struct { | 69 | typedef struct MOVFragmentInfo { |
| 70 | int64_t offset; | 70 | int64_t offset; |
| 71 | int64_t time; | 71 | int64_t time; |
| 72 | int64_t duration; | 72 | int64_t duration; |
| @@ -65,7 +65,7 @@ int ff_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, · 64 unmodified lines | |||
| 65 | const uint8_t *buf, int len); | 65 | const uint8_t *buf, int len); |
| 66 | void ff_mpegts_parse_close(MpegTSContext *ts); | 66 | void ff_mpegts_parse_close(MpegTSContext *ts); |
| 67 | 67 | ||
| 68 | typedef struct { | 68 | typedef struct SLConfigDescr { |
| 69 | int use_au_start; | 69 | int use_au_start; |
| 70 | int use_au_end; | 70 | int use_au_end; |
| 71 | int use_rand_acc_pt; | 71 | int use_rand_acc_pt; |
| @@ -82,7 +82,7 @@ typedef struct { · 10 unmodified lines | |||
| 82 | int packet_seq_num_len; | 82 | int packet_seq_num_len; |
| 83 | } SLConfigDescr; | 83 | } SLConfigDescr; |
| 84 | 84 | ||
| 85 | typedef struct { | 85 | typedef struct Mp4Descr { |
| 86 | int es_id; | 86 | int es_id; |
| 87 | int dec_config_descr_len; | 87 | int dec_config_descr_len; |
| 88 | uint8_t *dec_config_descr; | 88 | uint8_t *dec_config_descr; |
| @@ -54,13 +54,13 @@ enum MXFFrameLayout { · 53 unmodified lines | |||
| 54 | SeparateFields | 54 | SeparateFields |
| 55 | }; | 55 | }; |
| 56 | 56 | ||
| 57 | typedef struct { | 57 | typedef struct KLVPacket { |
| 58 | UID key; | 58 | UID key; |
| 59 | int64_t offset; | 59 | int64_t offset; |
| 60 | uint64_t length; | 60 | uint64_t length; |
| 61 | } KLVPacket; | 61 | } KLVPacket; |
| 62 | 62 | ||
| 63 | typedef struct { | 63 | typedef struct MXFCodecUL { |
| 64 | UID uid; | 64 | UID uid; |
| 65 | unsigned matching_len; | 65 | unsigned matching_len; |
| 66 | int id; | 66 | int id; |
| @@ -53,14 +53,14 @@ typedef enum{ · 52 unmodified lines | |||
| 53 | FLAG_INVALID =8192, ///<if set, frame_code is invalid | 53 | FLAG_INVALID =8192, ///<if set, frame_code is invalid |
| 54 | } Flag; | 54 | } Flag; |
| 55 | 55 | ||
| 56 | typedef struct { | 56 | typedef struct Syncpoint { |
| 57 | uint64_t pos; | 57 | uint64_t pos; |
| 58 | uint64_t back_ptr; | 58 | uint64_t back_ptr; |
| 59 | // uint64_t global_key_pts; | 59 | // uint64_t global_key_pts; |
| 60 | int64_t ts; | 60 | int64_t ts; |
| 61 | } Syncpoint; | 61 | } Syncpoint; |
| 62 | 62 | ||
| 63 | typedef struct { | 63 | typedef struct FrameCode { |
| 64 | uint16_t flags; | 64 | uint16_t flags; |
| 65 | uint8_t stream_id; | 65 | uint8_t stream_id; |
| 66 | uint16_t size_mul; | 66 | uint16_t size_mul; |
| @@ -70,7 +70,7 @@ typedef struct { · 3 unmodified lines | |||
| 70 | uint8_t header_idx; | 70 | uint8_t header_idx; |
| 71 | } FrameCode; | 71 | } FrameCode; |
| 72 | 72 | ||
| 73 | typedef struct { | 73 | typedef struct StreamContext { |
| 74 | int last_flags; | 74 | int last_flags; |
| 75 | int skip_until_key_frame; | 75 | int skip_until_key_frame; |
| 76 | int64_t last_pts; | 76 | int64_t last_pts; |
| @@ -81,11 +81,11 @@ typedef struct { · 4 unmodified lines | |||
| 81 | int decode_delay; //FIXME duplicate of has_b_frames | 81 | int decode_delay; //FIXME duplicate of has_b_frames |
| 82 | } StreamContext; | 82 | } StreamContext; |
| 83 | 83 | ||
| 84 | typedef struct { | 84 | typedef struct ChapterContext { |
| 85 | AVRational *time_base; | 85 | AVRational *time_base; |
| 86 | } ChapterContext; | 86 | } ChapterContext; |
| 87 | 87 | ||
| 88 | typedef struct { | 88 | typedef struct NUTContext { |
| 89 | AVFormatContext *avf; | 89 | AVFormatContext *avf; |
| 90 | // int written_packet_size; | 90 | // int written_packet_size; |
| 91 | // int64_t packet_start; | 91 | // int64_t packet_start; |
| @@ -106,7 +106,7 @@ typedef struct { · 14 unmodified lines | |||
| 106 | extern const AVCodecTag ff_nut_subtitle_tags[]; | 106 | extern const AVCodecTag ff_nut_subtitle_tags[]; |
| 107 | extern const AVCodecTag ff_nut_video_tags[]; | 107 | extern const AVCodecTag ff_nut_video_tags[]; |
| 108 | 108 | ||
| 109 | typedef struct { | 109 | typedef struct Dispositions { |
| 110 | char str[9]; | 110 | char str[9]; |
| 111 | int flag; | 111 | int flag; |
| 112 | } Dispositions; | 112 | } Dispositions; |
| @@ -72,7 +72,7 @@ void ff_rtp_send_punch_packets(URLContext* rtp_handle); · 71 unmodified lines | |||
| 72 | int ff_rtp_check_and_send_back_rr(RTPDemuxContext *s, int count); | 72 | int ff_rtp_check_and_send_back_rr(RTPDemuxContext *s, int count); |
| 73 | 73 | ||
| 74 | // these statistics are used for rtcp receiver reports... | 74 | // these statistics are used for rtcp receiver reports... |
| 75 | typedef struct { | 75 | typedef struct RTPStatistics { |
| 76 | uint16_t max_seq; ///< highest sequence number seen | 76 | uint16_t max_seq; ///< highest sequence number seen |
| 77 | uint32_t cycles; ///< shifted count of sequence number cycles | 77 | uint32_t cycles; ///< shifted count of sequence number cycles |
| 78 | uint32_t base_seq; ///< base sequence number | 78 | uint32_t base_seq; ///< base sequence number |
| @@ -64,7 +64,7 @@ · 63 unmodified lines | |||
| 64 | #undef NDEBUG | 64 | #undef NDEBUG |
| 65 | #include <assert.h> | 65 | #include <assert.h> |
| 66 | 66 | ||
| 67 | typedef struct { | 67 | typedef struct SWFContext { |
| 68 | int64_t duration_pos; | 68 | int64_t duration_pos; |
| 69 | int64_t tag_pos; | 69 | int64_t tag_pos; |
| 70 | int64_t vframes_pos; | 70 | int64_t vframes_pos; |
| @@ -68,7 +68,7 @@ · 67 unmodified lines | |||
| 68 | #define AV_DICT_APPEND 32 /**< If the entry already exists, append to it. Note that no | 68 | #define AV_DICT_APPEND 32 /**< If the entry already exists, append to it. Note that no |
| 69 | delimiter is added, the strings are simply concatenated. */ | 69 | delimiter is added, the strings are simply concatenated. */ |
| 70 | 70 | ||
| 71 | typedef struct { | 71 | typedef struct AVDictionaryEntry { |
| 72 | char *key; | 72 | char *key; |
| 73 | char *value; | 73 | char *value; |
| 74 | } AVDictionaryEntry; | 74 | } AVDictionaryEntry; |
| @@ -22,7 +22,7 @@ · 21 unmodified lines | |||
| 22 | #ifndef AVUTIL_LFG_H | 22 | #ifndef AVUTIL_LFG_H |
| 23 | #define AVUTIL_LFG_H | 23 | #define AVUTIL_LFG_H |
| 24 | 24 | ||
| 25 | typedef struct { | 25 | typedef struct AVLFG { |
| 26 | unsigned int state[64]; | 26 | unsigned int state[64]; |
| 27 | int index; | 27 | int index; |
| 28 | } AVLFG; | 28 | } AVLFG; |
| @@ -115,13 +115,13 @@ const int *sws_getCoefficients(int colorspace); · 114 unmodified lines | |||
| 115 | 115 | ||
| 116 | // when used for filters they must have an odd number of elements | 116 | // when used for filters they must have an odd number of elements |
| 117 | // coeffs cannot be shared between vectors | 117 | // coeffs cannot be shared between vectors |
| 118 | typedef struct { | 118 | typedef struct SwsVector { |
| 119 | double *coeff; ///< pointer to the list of coefficients | 119 | double *coeff; ///< pointer to the list of coefficients |
| 120 | int length; ///< number of coefficients in the vector | 120 | int length; ///< number of coefficients in the vector |
| 121 | } SwsVector; | 121 | } SwsVector; |
| 122 | 122 | ||
| 123 | // vectors can be shared | 123 | // vectors can be shared |
| 124 | typedef struct { | 124 | typedef struct SwsFilter { |
| 125 | SwsVector *lumH; | 125 | SwsVector *lumH; |
| 126 | SwsVector *lumV; | 126 | SwsVector *lumV; |
| 127 | SwsVector *chrH; | 127 | SwsVector *chrH; |