FFmpeg
Loading...
Searching...
No Matches
pnm_parser.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "parser.h"
#include "parser_internal.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 FFCodecParser 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 35 of file pnm_parser.c.

Variable Documentation

◆ ff_pnm_parser

const FFCodecParser ff_pnm_parser
Initial value:
= {
.priv_data_size = sizeof(PNMParseContext),
}
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition apv_parser.c:92
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
@ AV_CODEC_ID_PGM
Definition codec_id.h:114
@ AV_CODEC_ID_PHM
Definition codec_id.h:310
@ AV_CODEC_ID_PAM
Definition codec_id.h:116
@ AV_CODEC_ID_PBM
Definition codec_id.h:113
@ AV_CODEC_ID_PGMYUV
Definition codec_id.h:115
@ AV_CODEC_ID_PPM
Definition codec_id.h:112
@ AV_CODEC_ID_PFM
Definition codec_id.h:298
av_cold void ff_parse_close(AVCodecParserContext *s)
Definition parser.c:300
#define PARSER_CODEC_LIST(...)
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:35

Definition at line 137 of file pnm_parser.c.