FFmpeg  4.0
Data Structures | Functions | Variables
bmp_parser.c File Reference

BMP parser. More...

#include "libavutil/bswap.h"
#include "libavutil/common.h"
#include "parser.h"

Go to the source code of this file.

Data Structures

struct  BMPParseContext
 

Functions

static int bmp_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

AVCodecParser ff_bmp_parser
 

Detailed Description

BMP parser.

Definition in file bmp_parser.c.

Function Documentation

◆ bmp_parse()

static int bmp_parse ( AVCodecParserContext s,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int poutbuf_size,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 38 of file bmp_parser.c.

Variable Documentation

◆ ff_bmp_parser

AVCodecParser ff_bmp_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_BMP },
.priv_data_size = sizeof(BMPParseContext),
.parser_parse = bmp_parse,
.parser_close = ff_parse_close,
}
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:397
static int bmp_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: bmp_parser.c:38

Definition at line 107 of file bmp_parser.c.