Go to the documentation of this file.
47 info->pbu_type = bytestream2_get_byte(gbc);
48 info->group_id = bytestream2_get_be16(gbc);
50 zero = bytestream2_get_byte(gbc);
55 unsigned int num_frames = bytestream2_get_be16(gbc);
60 info->pbu_type = bytestream2_get_byte(gbc);
67 zero = bytestream2_get_byte(gbc);
73 info->profile_idc = bytestream2_get_byte(gbc);
74 info->level_idc = bytestream2_get_byte(gbc);
76 byte = bytestream2_get_byte(gbc);
77 info->band_idc =
byte >> 3;
82 info->frame_width = bytestream2_get_be24(gbc);
83 info->frame_height = bytestream2_get_be24(gbc);
84 if (
info->frame_width < 1 ||
info->frame_width > 65536 ||
85 info->frame_height < 1 ||
info->frame_height > 65536)
88 byte = bytestream2_get_byte(gbc);
89 info->bit_depth_minus8 =
byte & 0xf;
91 if (
info->bit_depth_minus8 > 8) {
94 if (
info->bit_depth_minus8 % 2) {
102 zero = bytestream2_get_byte(gbc);
122 au_size = bytestream2_get_be32(&gbc);
132 pbu_size = bytestream2_get_be32(&gbc);
163 au_size = bytestream2_get_be32(&gbc);
173 pbu_size = bytestream2_get_be32(&gbc);
203 if (au_size < 24 || au_size > 1 << 24) {
205 "APV AU has invalid size: %"PRIu32
"\n", au_size);
227 .p.extensions =
"apv",
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
enum AVMediaType codec_type
General type of the encoded data.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
AVRational avg_frame_rate
Average framerate.
int buf_size
Size of buf except extra allocated bytes.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static av_always_inline void bytestream2_skip(GetByteContext *g, unsigned int size)
static const char signature[]
unsigned int avio_rb32(AVIOContext *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
@ APV_PBU_NON_PRIMARY_FRAME
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int apv_read_packet(AVFormatContext *s, AVPacket *pkt)
enum AVStreamParseType need_parsing
AVCodecParameters * codecpar
Codec parameters associated with this stream.
@ APV_PBU_ACCESS_UNIT_INFORMATION
static int apv_probe(const AVProbeData *p)
Rational number (pair of numerator and denominator).
This structure contains the data a format has to probe a file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int apv_extract_header_info(GetByteContext *gbc)
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
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_RB32
static const uint8_t header[24]
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size)
Ensures that the requested seekback buffer size will be available.
int flags
A combination of AV_PKT_FLAG values.
static int zero(InterplayACMContext *s, unsigned ind, unsigned col)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
the frame and frame reference mechanism is intended to as much as expensive copies of that data while still allowing the filters to produce correct results The data is stored in buffers represented by AVFrame structures Several references can point to the same frame buffer
const FFInputFormat ff_apv_demuxer
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
static int apv_read_header(AVFormatContext *s)
int64_t pos
byte position in stream, -1 if unknown
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int ffio_read_size(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.