26 typedef struct avs_format {
39 typedef enum avs_block_type {
52 if (d[0] ==
'w' && d[1] ==
'W' && d[2] == 0x10 && d[3] == 0)
79 "when the avs format is supposed to be 318x198 only.\n",
100 pkt->
data[2] = palette_size & 0xFF;
101 pkt->
data[3] = (palette_size >> 8) & 0xFF;
102 memcpy(pkt->
data + 4, palette, palette_size - 4);
105 pkt->
data[palette_size + 0] = sub_type;
107 pkt->
data[palette_size + 2] = size & 0xFF;
108 pkt->
data[palette_size + 3] = (size >> 8) & 0xFF;
115 pkt->
size = ret + palette_size;
147 int sub_type = 0,
size = 0;
149 int palette_size = 0;
174 if (
size - 4 >
sizeof(palette))
193 #if FF_API_R_FRAME_RATE
199 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_cold int read_close(AVFormatContext *ctx)
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.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
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
AVRational r_frame_rate
Real base framerate of the stream.
This structure stores compressed data.