32 typedef struct avs_format {
45 typedef enum avs_block_type {
58 if (d[0] ==
'w' && d[1] ==
'W' && d[2] == 0x10 && d[3] == 0)
85 "when the avs format is supposed to be 318x198 only.\n",
94 uint8_t * palette,
int palette_size)
106 pkt->
data[2] = palette_size & 0xFF;
107 pkt->
data[3] = (palette_size >> 8) & 0xFF;
108 memcpy(pkt->
data + 4, palette, palette_size - 4);
111 pkt->
data[palette_size + 0] = sub_type;
113 pkt->
data[palette_size + 2] = size & 0xFF;
114 pkt->
data[palette_size + 3] = (size >> 8) & 0xFF;
120 pkt->
size = ret + palette_size;
153 int sub_type = 0,
size = 0;
155 int palette_size = 0;
180 if (
size - 4 >
sizeof(palette))
199 #if FF_API_R_FRAME_RATE 205 palette, palette_size);
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int index
stream index in AVFormatContext
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int ctx_flags
Flags signalling stream properties.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
#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.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
AVRational avg_frame_rate
Average framerate.
int flags
A combination of AV_PKT_FLAG values.
int avio_r8(AVIOContext *s)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
AVIOContext * pb
I/O context.
Rational number (pair of numerator and denominator).
This structure contains the data a format has to probe a file.
unsigned int avio_rl16(AVIOContext *s)
int64_t nb_frames
number of frames in this stream if known or 0
void * priv_data
Format private data.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
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
AVRational r_frame_rate
Real base framerate of the stream.
This structure stores compressed data.