47 for (i = 0; i < buf_size; i++) {
48 state = (state << 8) | buf[i];
52 interlaced = (state&2)>>1;
62 for (; i < buf_size; i++) {
63 state = (state << 8) | buf[i];
88 const uint8_t **poutbuf,
int *poutbuf_size,
106 *poutbuf_size = buf_size;
static av_always_inline uint64_t ff_dnxhd_check_header_prefix(uint64_t prefix)
static int dnxhd_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.
AVCodecParser ff_dnxhd_parser
void ff_parse_close(AVCodecParserContext *s)
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size)
main external API structure.
uint64_t state64
contains the last 8 bytes in MSB order
#define PARSER_FLAG_COMPLETE_FRAMES