FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
apngdec.c File Reference

APNG demuxer. More...

#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavcodec/apng.h"
#include "libavcodec/png.h"
#include "libavcodec/bytestream.h"

Go to the source code of this file.

Data Structures

struct  APNGDemuxContext
 

Macros

#define DEFAULT_APNG_FPS   15
 

Functions

static int apng_probe (AVProbeData *p)
 
static int append_extradata (AVCodecContext *s, AVIOContext *pb, int len)
 
static int apng_read_header (AVFormatContext *s)
 
static int decode_fctl_chunk (AVFormatContext *s, APNGDemuxContext *ctx, AVPacket *pkt)
 
static int apng_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption options []
 
static const AVClass demuxer_class
 
AVInputFormat ff_apng_demuxer
 

Detailed Description

APNG demuxer.

See Also
https://wiki.mozilla.org/APNG_Specification
http://www.w3.org/TR/PNG

Definition in file apngdec.c.

Macro Definition Documentation

#define DEFAULT_APNG_FPS   15

Definition at line 39 of file apngdec.c.

Function Documentation

static int apng_probe ( AVProbeData p)
static

Definition at line 70 of file apngdec.c.

static int append_extradata ( AVCodecContext s,
AVIOContext pb,
int  len 
)
static

Definition at line 125 of file apngdec.c.

Referenced by apng_read_header().

static int apng_read_header ( AVFormatContext s)
static

Definition at line 147 of file apngdec.c.

static int decode_fctl_chunk ( AVFormatContext s,
APNGDemuxContext ctx,
AVPacket pkt 
)
static

Definition at line 251 of file apngdec.c.

Referenced by apng_read_packet().

static int apng_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 321 of file apngdec.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "ignore_loop", "ignore loop setting" , 0x42,
AV_OPT_TYPE_INT, { .i64 = 1 } , 0, 1 , AV_OPT_FLAG_DECODING_PARAM },
{ "max_fps" , "maximum framerate (0 is no limit)" , 0x42,
{ "default_fps", "default framerate (0 is as fast as possible)", 0x42,
{ NULL },
}

Definition at line 419 of file apngdec.c.

const AVClass demuxer_class
static
Initial value:
= {
.class_name = "APNG demuxer",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 429 of file apngdec.c.

AVInputFormat ff_apng_demuxer
Initial value:
= {
.name = "apng",
.long_name = NULL_IF_CONFIG_SMALL("Animated Portable Network Graphics"),
.priv_data_size = sizeof(APNGDemuxContext),
.priv_class = &demuxer_class,
}

Definition at line 437 of file apngdec.c.