34typedef struct avs_format {
47typedef enum avs_block_type {
60 if (d[0] ==
'w' && d[1] ==
'W' && d[2] == 0x10 && d[3] == 0)
87 "when the avs format is supposed to be 318x198 only.\n",
96 uint8_t * palette,
int palette_size)
108 pkt->data[2] = palette_size & 0xFF;
109 pkt->data[3] = (palette_size >> 8) & 0xFF;
110 memcpy(
pkt->data + 4, palette, palette_size - 4);
113 pkt->data[palette_size + 0] = sub_type;
114 pkt->data[palette_size + 1] =
type;
115 pkt->data[palette_size + 2] =
size & 0xFF;
116 pkt->data[palette_size + 3] = (
size >> 8) & 0xFF;
121 pkt->size = ret + palette_size;
158 int sub_type = 0,
size = 0;
160 int palette_size = 0;
161 uint8_t palette[4 + 3 * 256];
185 if (
size - 4 >
sizeof(palette))
204#if FF_API_R_FRAME_RATE
210 palette, palette_size);
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rl32(AVIOContext *s)
int avio_r8(AVIOContext *s)
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)
static int read_probe(const AVProbeData *p)
static int read_header(FFV1Context *f, RangeCoder *c)
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
#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.
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 AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int height
The height of the video frame in pixels.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
int width
The width of the video frame in pixels.
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.
int64_t nb_frames
number of frames in this stream if known or 0
int index
stream index in AVFormatContext
AVRational avg_frame_rate
Average framerate.
AVRational r_frame_rate
Real base framerate of the stream.
int ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)