36 static const int sample_rates[4] = { 16000, 32000, 44100, 48000 };
54 sr = (
data[1] >> 6) & 0x03;
55 blocks = (((
data[1] >> 4) & 0x03) + 1) << 2;
75 const uint8_t **poutbuf,
int *poutbuf_size,
76 const uint8_t *buf,
int buf_size)
111 *poutbuf_size = buf_size;
#define PARSER_FLAG_COMPLETE_FRAMES
mode
Use these values in ebur128_init (or'ed).
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
Combine the (truncated) bitstream to a complete frame.
void ff_parse_close(AVCodecParserContext *s)
SBC common definitions for the encoder and decoder.
#define SBC_MODE_JOINT_STEREO
#define SBC_MODE_DUAL_CHANNEL
static int sbc_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
AVCodecParser ff_sbc_parser
static int sbc_parse_header(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *data, size_t len)
main external API structure.
int sample_rate
samples per second
int channels
number of audio channels
int frame_size
Number of samples per channel in an audio frame.