FFmpeg
Loading...
Searching...
No Matches
icodec.c File Reference

Microsoft Windows ICO demuxer. More...

#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/png.h"
#include "avformat.h"
#include "demux.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 FFInputFormat 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 47 of file icodec.c.

◆ read_header()

static int read_header ( AVFormatContext * s)
static

Definition at line 79 of file icodec.c.

◆ read_packet()

static int read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 152 of file icodec.c.

◆ ico_read_close()

static int ico_read_close ( AVFormatContext * s)
static

Definition at line 214 of file icodec.c.

Variable Documentation

◆ ff_ico_demuxer

const FFInputFormat ff_ico_demuxer
Initial value:
= {
.p.name = "ico",
.p.long_name = NULL_IF_CONFIG_SMALL("Microsoft Windows ICO"),
.p.flags = AVFMT_NOTIMESTAMPS,
.priv_data_size = sizeof(IcoDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}
static int probe(const AVProbeData *p)
Definition act.c:39
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:498
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition demux.h:35
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
static int ico_read_close(AVFormatContext *s)
Definition icodec.c:214
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static av_cold int read_close(AVFormatContext *ctx)
Definition libcdio.c:143

Definition at line 221 of file icodec.c.