27 #include "libavutil/intreadwrite.h"
28 #include "libavutil/pixdesc.h"
150 for (i = 0; i < c->
height * (c->
width + 7) / 8; ++i)
194 .mime_type =
"image/vnd.microsoft.icon",
AVOutputFormat ff_ico_muxer
AVCodecContext * codec
Codec context associated with this stream.
static int ico_check_attributes(AVFormatContext *s, const AVCodecContext *c)
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
void av_freep(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
packed RGB 8:8:8, 24bpp, BGRBGR...
static const uint8_t offset[511][2]
static int ico_write_header(AVFormatContext *s)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
unsigned int nb_streams
A list of all streams in the file.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int width
picture width / height.
static int write_trailer(AVFormatContext *s1)
main external API structure.
AVIOContext * pb
I/O context.
static int ico_write_trailer(AVFormatContext *s)
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
static void write_header(FFV1Context *f)
8 bit with PIX_FMT_RGB32 palette
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
This structure stores compressed data.
static int ico_write_packet(AVFormatContext *s, AVPacket *pkt)
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
void * av_mallocz(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...