29 #define DNXHD_HEADER_PREFIX 0x000002800100
48 for (i = 0; i < buf_size; i++) {
49 state = (state << 8) | buf[i];
53 interlaced = (state&2)>>1;
63 for (; i < buf_size; i++) {
64 state = (state << 8) | buf[i];
89 const uint8_t **poutbuf,
int *poutbuf_size,
107 *poutbuf_size = buf_size;
#define DNXHD_HEADER_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.
#define PARSER_FLAG_COMPLETE_FRAMES
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