41 const uint8_t **poutbuf,
int *poutbuf_size,
42 const uint8_t *buf,
int buf_size)
50 if (!
s->header_size) {
51 for (
i = 0;
i < buf_size;
i++) {
54 if ((
state & 0xFFFF0000FFFFFF00) == 0x8000000003120400ULL) {
56 int header_size = ((
state >> 32) & 0xFFFF) + 4;
57 if (
channels > 0 && header_size >= 8) {
58 s->header_size = header_size;
60 s->remaining =
i - 7 +
s->header_size +
s->block_size;
70 s->remaining =
s->block_size;
71 if (
s->remaining <= buf_size) {
75 s->remaining -= buf_size;
80 s->remaining =
s->block_size;
81 if (
s->remaining <= buf_size) {
85 s->remaining -= buf_size;
97 *poutbuf_size = buf_size;
static int adx_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
const FFCodecParser ff_adx_parser
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
static av_cold void close(AVCodecParserContext *s)
#define i(width, name, range_min, range_max)
static struct @346255127015250356166251341105367306144006377143 state
av_cold void ff_parse_close(AVCodecParserContext *s)
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_CODEC_LIST(...)
int nb_channels
Number of channels in this layout.
main external API structure.
AVChannelLayout ch_layout
Audio channel layout.
int duration
Duration of the current frame.
uint64_t state64
contains the last 8 bytes in MSB order