FFmpeg
Data Structures | Functions | Variables
icoenc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/pixdesc.h"
#include "libavcodec/codec_id.h"
#include "avformat.h"
#include "avio_internal.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)
 
static void ico_deinit (AVFormatContext *s)
 

Variables

const 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 49 of file icoenc.c.

Referenced by ico_write_header().

◆ ico_write_header()

static int ico_write_header ( AVFormatContext s)
static

Definition at line 81 of file icoenc.c.

◆ ico_write_packet()

static int ico_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 115 of file icoenc.c.

◆ ico_write_trailer()

static int ico_write_trailer ( AVFormatContext s)
static

Definition at line 158 of file icoenc.c.

◆ ico_deinit()

static void ico_deinit ( AVFormatContext s)
static

Definition at line 189 of file icoenc.c.

Variable Documentation

◆ ff_ico_muxer

const 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,
}

Definition at line 196 of file icoenc.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:468
deinit
static void deinit(AVFormatContext *s)
Definition: chromaprint.c:50
ico_deinit
static void ico_deinit(AVFormatContext *s)
Definition: icoenc.c:189
AV_CODEC_ID_BMP
@ AV_CODEC_ID_BMP
Definition: codec_id.h:128
ico_write_trailer
static int ico_write_trailer(AVFormatContext *s)
Definition: icoenc.c:158
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:98
IcoMuxContext
Definition: icoenc.c:43
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
ico_write_packet
static int ico_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: icoenc.c:115
write_packet
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:730
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:48
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:347
ico_write_header
static int ico_write_header(AVFormatContext *s)
Definition: icoenc.c:81