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

const 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

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

Definition at line 134 of file pnm_parser.c.

AV_CODEC_ID_PBM
@ AV_CODEC_ID_PBM
Definition: codec_id.h:112
ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:282
AV_CODEC_ID_PPM
@ AV_CODEC_ID_PPM
Definition: codec_id.h:111
AV_CODEC_ID_PGM
@ AV_CODEC_ID_PGM
Definition: codec_id.h:113
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: codec_id.h:114
AV_CODEC_ID_PAM
@ AV_CODEC_ID_PAM
Definition: codec_id.h:115
PNMParseContext
Definition: pnm_parser.c:28