FFmpeg  4.0
Data Structures | Functions | Variables
icoenc.c File Reference

Microsoft Windows ICO muxer. More...

#include "libavutil/intreadwrite.h"
#include "libavutil/pixdesc.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  IcoImage
 
struct  IcoMuxContext
 

Functions

static int ico_check_attributes (AVFormatContext *s, const AVCodecParameters *p)
 
static int ico_write_header (AVFormatContext *s)
 
static int ico_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ico_write_trailer (AVFormatContext *s)
 

Variables

AVOutputFormat ff_ico_muxer
 

Detailed Description

Microsoft Windows ICO muxer.

Definition in file icoenc.c.

Function Documentation

◆ ico_check_attributes()

static int ico_check_attributes ( AVFormatContext s,
const AVCodecParameters p 
)
static

Definition at line 45 of file icoenc.c.

Referenced by ico_write_header().

◆ ico_write_header()

static int ico_write_header ( AVFormatContext s)
static

Definition at line 78 of file icoenc.c.

◆ ico_write_packet()

static int ico_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 114 of file icoenc.c.

◆ ico_write_trailer()

static int ico_write_trailer ( AVFormatContext s)
static

Definition at line 158 of file icoenc.c.

Variable Documentation

◆ ff_ico_muxer

AVOutputFormat ff_ico_muxer
Initial value:
= {
.name = "ico",
.long_name = NULL_IF_CONFIG_SMALL("Microsoft Windows ICO"),
.priv_data_size = sizeof(IcoMuxContext),
.mime_type = "image/vnd.microsoft.icon",
.extensions = "ico",
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_BMP,
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:679
static int flags
Definition: log.c:55
static int ico_write_header(AVFormatContext *s)
Definition: icoenc.c:78
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:469
static int ico_write_trailer(AVFormatContext *s)
Definition: icoenc.c:158
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337
static int ico_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: icoenc.c:114

Definition at line 191 of file icoenc.c.