Advertisement
gandhikrishna81

Untitled

Mar 9th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. 190
  2. 191 typedef struct ALSDecContext {
  3. 192 AVCodecContext *avctx;
  4. 193 ALSSpecificConfig sconf;
  5. 194 GetBitContext gb;
  6. 195 BswapDSPContext bdsp;
  7. 196 const AVCRC *crc_table;
  8. 197 uint32_t crc_org; ///< CRC value of the original input data
  9. 198 uint32_t crc; ///< CRC value calculated from decoded data
  10. 199 unsigned int cur_frame_length; ///< length of the current frame to decode
  11. 200 unsigned int frame_id; ///< the frame ID / number of the current frame
  12. 201 unsigned int js_switch; ///< if true, joint-stereo decoding is enforced
  13. 202 unsigned int cs_switch; ///< if true, channel rearrangement is done
  14. 203 unsigned int num_blocks; ///< number of blocks used in the current frame
  15. 204 unsigned int s_max; ///< maximum Rice parameter allowed in entropy coding
  16. 205 uint8_t *bgmc_lut; ///< pointer at lookup tables used for BGMC
  17. 206 int *bgmc_lut_status; ///< pointer at lookup table status flags used for BGMC
  18. 207 int ltp_lag_length; ///< number of bits used for ltp lag value
  19. 208 int *const_block; ///< contains const_block flags for all channels
  20. 209 unsigned int *shift_lsbs; ///< contains shift_lsbs flags for all channels
  21. 210 unsigned int *opt_order; ///< contains opt_order flags for all channels
  22. 211 int *store_prev_samples; ///< contains store_prev_samples flags for all channels
  23. 212 int *use_ltp; ///< contains use_ltp flags for all channels
  24. 213 int *ltp_lag; ///< contains ltp lag values for all channels
  25. 214 int **ltp_gain; ///< gain values for ltp 5-tap filter for a channel
  26. 215 int *ltp_gain_buffer; ///< contains all gain values for ltp 5-tap filter
  27. 216 int32_t **quant_cof; ///< quantized parcor coefficients for a channel
  28. 217 int32_t *quant_cof_buffer; ///< contains all quantized parcor coefficients
  29. 218 int32_t **lpc_cof; ///< coefficients of the direct form prediction filter for a channel
  30. 219 int32_t *lpc_cof_buffer; ///< contains all coefficients of the direct form prediction filter
  31. 220 int32_t *lpc_cof_reversed_buffer; ///< temporary buffer to set up a reversed versio of lpc_co f_buffer
  32. 221 ALSChannelData **chan_data; ///< channel data for multi-channel correlation
  33. 222 ALSChannelData *chan_data_buffer; ///< contains channel data for all channels
  34. 223 int *reverted_channels; ///< stores a flag for each reverted channel
  35. 224 int32_t *prev_raw_samples; ///< contains unshifted raw samples from the previous block
  36. 225 int32_t **raw_samples; ///< decoded raw samples for each channel
  37. 226 int32_t *raw_buffer; ///< contains all decoded raw samples including carryover sam ples
  38. 227 uint8_t *crc_buffer; ///< buffer of byte order corrected samples used for CRC chec k
  39. 228 } ALSDecContext;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement