27 #include "libavutil/opt.h"
28 #include "libavutil/parseutils.h"
29 #include "libavutil/pixdesc.h"
30 #include "libavutil/avassert.h"
32 #define RAW_PACKET_SIZE 1024
106 #define OFFSET(x) offsetof(FFRawVideoDemuxerContext, x)
107 #define DEC AV_OPT_FLAG_DECODING_PARAM
113 #if CONFIG_DATA_DEMUXER
123 #if CONFIG_LATM_DEMUXER
130 .extensions =
"latm",
135 #if CONFIG_MJPEG_DEMUXER
139 #if CONFIG_MLP_DEMUXER
151 #if CONFIG_TRUEHD_DEMUXER
163 #if CONFIG_SHORTEN_DEMUXER
175 #if CONFIG_VC1_DEMUXER
void av_free_packet(AVPacket *pkt)
Free a packet.
int64_t pos
byte position in stream, -1 if unknown
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)
AVCodecContext * codec
Codec context associated with this stream.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
enum AVStreamParseType need_parsing
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
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. ...
struct AVInputFormat * iformat
Can only be iformat or oformat, not both at the same time.
int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Opaque data information usually continuous.
enum AVMediaType codec_type
AVIOContext * pb
I/O context.
offset must point to AVRational
static av_always_inline AVRational av_inv_q(AVRational q)
Invert a rational.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
AVRational framerate
AVRational describing framerate, set by a private option.
This structure stores compressed data.