27 #include "libavutil/intreadwrite.h"
69 if (
avio_seek(pb, 6 + i * 16, SEEK_SET) < 0)
93 case MKTAG(0x89,
'P',
'N',
'G'):
144 bytestream_put_byte(&buf,
'B');
145 bytestream_put_byte(&buf,
'M');
146 bytestream_put_le32(&buf, pkt->
size);
147 bytestream_put_le16(&buf, 0);
148 bytestream_put_le16(&buf, 0);
149 bytestream_put_le32(&buf, 0);
AVCodecContext * codec
Codec context associated with this stream.
void void avpriv_request_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
static int probe(AVProbeData *p)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
AVInputFormat ff_ico_demuxer
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int flags
A combination of AV_PKT_FLAG values.
int width
picture width / height.
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
enum AVMediaType codec_type
AVIOContext * pb
I/O context.
#define MKTAG(a, b, c, d)
This structure contains the data a format has to probe a file.
static int read_packet(AVFormatContext *s, AVPacket *pkt)
#define AVERROR_INVALIDDATA
static int read_header(AVFormatContext *s)
This structure stores compressed data.