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