Libav
Data Structures | Macros | Functions | Variables
png_parser.c File Reference

PNG parser. More...

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

Go to the source code of this file.

Data Structures

struct  PNGParseContext
 

Macros

#define PNG_SIGNATURE   UINT64_C(0x89504e470d0a1a0a)
 
#define MNG_SIGNATURE   UINT64_C(0x8a4d4e470d0a1a0a)
 

Functions

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

Variables

AVCodecParser ff_png_parser
 

Detailed Description

PNG parser.

Definition in file png_parser.c.

Macro Definition Documentation

§ PNG_SIGNATURE

#define PNG_SIGNATURE   UINT64_C(0x89504e470d0a1a0a)

Definition at line 32 of file png_parser.c.

Referenced by png_parse().

§ MNG_SIGNATURE

#define MNG_SIGNATURE   UINT64_C(0x8a4d4e470d0a1a0a)

Definition at line 33 of file png_parser.c.

Referenced by png_parse().

Function Documentation

§ png_parse()

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

Definition at line 43 of file png_parser.c.

Variable Documentation

§ ff_png_parser

AVCodecParser ff_png_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_PNG },
.priv_data_size = sizeof(PNGParseContext),
.parser_parse = png_parse,
.parser_close = ff_parse_close,
}
static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: png_parser.c:43
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:287

Definition at line 119 of file png_parser.c.