32 const uint8_t *buf,
int buf_size)
40 for (
i = 0;
i < buf_size && !vop_found;
i++) {
42 for (j = 0; j < 8; j++) {
43 if (((
state >> j) & 0xFFFFF0) == 0x000100) {
50 for (;
i < buf_size;
i++) {
52 for (j = 0; j < 8; j++) {
53 if (((
state >> j) & 0xFFFFF0) == 0x000100) {
69 const uint8_t **poutbuf,
int *poutbuf_size,
70 const uint8_t *buf,
int buf_size)
86 *poutbuf_size = buf_size;
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 PARSER_FLAG_COMPLETE_FRAMES
#define i(width, name, range_min, range_max)
static struct @346255127015250356166251341105367306144006377143 state
const FFCodecParser 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)
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(...)
main external API structure.
uint32_t state
contains the last few bytes in MSB order