FFmpeg
Data Structures | Functions | Variables
pnm_parser.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "parser.h"
#include "pnm.h"

Go to the source code of this file.

Data Structures

struct  PNMParseContext
 

Functions

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

Variables

AVCodecParser ff_pnm_parser
 

Function Documentation

◆ pnm_parse()

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

Definition at line 34 of file pnm_parser.c.

Variable Documentation

◆ ff_pnm_parser

AVCodecParser ff_pnm_parser
Initial value:
= {
.priv_data_size = sizeof(PNMParseContext),
.parser_parse = pnm_parse,
.parser_close = ff_parse_close,
}

Definition at line 131 of file pnm_parser.c.

AV_CODEC_ID_PBM
@ AV_CODEC_ID_PBM
Definition: avcodec.h:281
ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:315
AV_CODEC_ID_PPM
@ AV_CODEC_ID_PPM
Definition: avcodec.h:280
AV_CODEC_ID_PGM
@ AV_CODEC_ID_PGM
Definition: avcodec.h:282
pnm_parse
static int pnm_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: pnm_parser.c:34
AV_CODEC_ID_PGMYUV
@ AV_CODEC_ID_PGMYUV
Definition: avcodec.h:283
AV_CODEC_ID_PAM
@ AV_CODEC_ID_PAM
Definition: avcodec.h:284
PNMParseContext
Definition: pnm_parser.c:28