FFmpeg
Data Structures | Functions | Variables
icodec.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/bmp.h"
#include "libavcodec/png.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  IcoImage
 
struct  IcoDemuxContext
 

Functions

static int probe (const AVProbeData *p)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ico_read_close (AVFormatContext *s)
 

Variables

const AVInputFormat ff_ico_demuxer
 

Detailed Description

Microsoft Windows ICO demuxer

Definition in file icodec.c.

Function Documentation

◆ probe()

static int probe ( const AVProbeData p)
static

Definition at line 46 of file icodec.c.

◆ read_header()

static int read_header ( AVFormatContext s)
static

Definition at line 78 of file icodec.c.

◆ read_packet()

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 151 of file icodec.c.

◆ ico_read_close()

static int ico_read_close ( AVFormatContext s)
static

Definition at line 210 of file icodec.c.

Variable Documentation

◆ ff_ico_demuxer

const AVInputFormat ff_ico_demuxer
Initial value:
= {
.name = "ico",
.long_name = NULL_IF_CONFIG_SMALL("Microsoft Windows ICO"),
.priv_data_size = sizeof(IcoDemuxContext),
.flags_internal = FF_FMT_INIT_CLEANUP,
}

Definition at line 217 of file icodec.c.

FF_FMT_INIT_CLEANUP
#define FF_FMT_INIT_CLEANUP
For an AVInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: internal.h:48
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:468
read_header
static int read_header(AVFormatContext *s)
Definition: icodec.c:78
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:141
ico_read_close
static int ico_read_close(AVFormatContext *s)
Definition: icodec.c:210
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
read_packet
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: icodec.c:151
probe
static int probe(const AVProbeData *p)
Definition: icodec.c:46
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
IcoDemuxContext
Definition: icodec.c:40