Go to the documentation of this file.
35 const uint8_t *
data,
size_t len)
37 static const int sample_rates[4] = { 16000, 32000, 44100, 48000 };
57 sr = (
data[1] >> 6) & 0x03;
58 blocks = (((
data[1] >> 4) & 0x03) + 1) << 2;
80 const uint8_t **poutbuf,
int *poutbuf_size,
81 const uint8_t *buf,
int buf_size)
116 *poutbuf_size = buf_size;
int frame_size
Number of samples per channel in an audio frame.
int sample_rate
samples per second
av_cold void ff_parse_close(AVCodecParserContext *s)
static const int sample_rates[]
enum AVChannelOrder order
Channel order used in this layout.
int nb_channels
Number of channels in this layout.
static av_cold void close(AVCodecParserContext *s)
AVChannelLayout ch_layout
Audio channel layout.
static int sbc_parse_header(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *data, size_t len)
@ AV_CHANNEL_ORDER_UNSPEC
Only the channel count is specified, without any further information about the channel order.
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
Combine the (truncated) bitstream to a complete frame.
#define PARSER_FLAG_COMPLETE_FRAMES
const FFCodecParser ff_sbc_parser
#define PARSER_CODEC_LIST(...)
main external API structure.
void av_channel_layout_uninit(AVChannelLayout *channel_layout)
Free any allocated data in the channel layout and reset the channel count to 0.
#define SBC_MODE_DUAL_CHANNEL
#define SBC_MODE_JOINT_STEREO
static int sbc_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)