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 136 of file pnm_parser.c.

AV_CODEC_ID_PBM
@ AV_CODEC_ID_PBM
Definition: codec_id.h:115
AV_CODEC_ID_PFM
@ AV_CODEC_ID_PFM
Definition: codec_id.h:303
ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:290
AV_CODEC_ID_PPM
@ AV_CODEC_ID_PPM
Definition: codec_id.h:114
AV_CODEC_ID_PGM
@ AV_CODEC_ID_PGM
Definition: codec_id.h:116
AV_CODEC_ID_PHM
@ AV_CODEC_ID_PHM
Definition: codec_id.h:315
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:117
AV_CODEC_ID_PAM
@ AV_CODEC_ID_PAM
Definition: codec_id.h:118
PNMParseContext
Definition: pnm_parser.c:28