31 const uint8_t *buf,
int buf_size)
39 for (
i = 0;
i < buf_size && !vop_found;
i++) {
41 for (j = 0; j < 8; j++) {
42 if (((
state >> j) & 0xFFFFF0) == 0x000100) {
49 for (;
i < buf_size;
i++) {
51 for (j = 0; j < 8; j++) {
52 if (((
state >> j) & 0xFFFFF0) == 0x000100) {
68 const uint8_t **poutbuf,
int *poutbuf_size,
69 const uint8_t *buf,
int buf_size)
85 *poutbuf_size = buf_size;
#define PARSER_FLAG_COMPLETE_FRAMES
AVCodecParser ff_h261_parser
static int h261_find_frame_end(ParseContext *pc, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
static int h261_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.
void ff_parse_close(AVCodecParserContext *s)
main external API structure.
uint32_t state
contains the last few bytes in MSB order