53 info->
pbu_type = bytestream2_get_byte(gbc);
54 info->
group_id = bytestream2_get_be16(gbc);
56 zero = bytestream2_get_byte(gbc);
61 unsigned int num_frames = bytestream2_get_be16(gbc);
66 info->
pbu_type = bytestream2_get_byte(gbc);
73 zero = bytestream2_get_byte(gbc);
80 info->
level_idc = bytestream2_get_byte(gbc);
82 byte = bytestream2_get_byte(gbc);
94 byte = bytestream2_get_byte(gbc);
108 zero = bytestream2_get_byte(gbc);
121 if (p->buf_size < 28) {
128 au_size = bytestream2_get_be32(&gbc);
138 pbu_size = bytestream2_get_be32(&gbc);
170 au_size = bytestream2_get_be32(&gbc);
180 pbu_size = bytestream2_get_be32(&gbc);
210 if (au_size < 24 || au_size > 1 << 26) {
212 "APV AU has invalid size: %"PRIu32
"\n", au_size);
231#define OFFSET(x) offsetof(APVDemuxerContext, x)
232#define DEC AV_OPT_FLAG_DECODING_PARAM
239 .class_name =
"apv demuxer",
248 .p.extensions =
"apv",
static int apv_read_header(AVFormatContext *s)
static int apv_probe(const AVProbeData *p)
static int apv_read_packet(AVFormatContext *s, AVPacket *pkt)
static const AVClass apv_demuxer_class
static const AVOption apv_options[]
static int apv_extract_header_info(GetByteContext *gbc)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
unsigned int avio_rb32(AVIOContext *s)
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size)
Ensures that the requested seekback buffer size will be available.
int ffio_read_size(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_WB16 unsigned int_TMPL byte
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
static av_always_inline void bytestream2_skip(GetByteContext *g, unsigned int size)
static int read_probe(const AVProbeData *p)
static int read_header(FFV1Context *f, RangeCoder *c)
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
static int zero(InterplayACMContext *s, unsigned ind, unsigned col)
static const char signature[]
@ APV_PBU_NON_PRIMARY_FRAME
@ APV_PBU_ACCESS_UNIT_INFORMATION
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static const uint8_t header[24]
AVRational framerate
AVRational describing framerate, set by a private option.
Describe the class of an AVClass context structure.
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
This structure contains the data a format has to probe a file.
Rational number (pair of numerator and denominator).
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVRational avg_frame_rate
Average framerate.
enum AVStreamParseType need_parsing