31 #define RAND_TAG MKBETAG('R','a','n','d')
enum PixelFormat pix_fmt
Pixel format, see PIX_FMT_xxx.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t avio_size(AVIOContext *s)
Get the filesize.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
unsigned int avio_rb16(AVIOContext *s)
unsigned int avio_rb32(AVIOContext *s)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
int flags
A combination of AV_PKT_FLAG values.
AVCodecContext * codec
codec context
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int width
picture width / height.
static av_always_inline int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int read_packet(AVFormatContext *s, AVPacket *pkt)
enum AVMediaType codec_type
void av_log_ask_for_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message asking for a sample.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVInputFormat ff_filmstrip_demuxer
int64_t nb_frames
number of frames in this stream if known or 0
static int read_header(AVFormatContext *s, AVFormatParameters *ap)
int eof_reached
true if eof reached
void * priv_data
Format private data.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...