29#define MVI_FRAC_BITS 10
31#define MVI_AUDIO_STREAM_INDEX 0
32#define MVI_VIDEO_STREAM_INDEX 1
47 unsigned int version, frames_count, msecs_per_frame, player_version;
77 if (frames_count == 0 || audio_data_size <= 0)
80 if (
version != 7 || player_version > 213) {
102 "Invalid audio_data_size (%d) or frames_count (%u)\n",
103 audio_data_size, frames_count);
149 .p.extensions =
"mvi",
unsigned int avio_rl16(AVIOContext *s)
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rl24(AVIOContext *s)
int avio_r8(AVIOContext *s)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Public libavutil channel layout APIs header.
static int read_header(FFV1Context *f, RangeCoder *c)
@ AV_CODEC_ID_MOTIONPIXELS
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AV_CHANNEL_LAYOUT_MONO
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_always_inline AVRational av_inv_q(AVRational q)
Invert a rational.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define MVI_VIDEO_STREAM_INDEX
static int read_packet(AVFormatContext *s, AVPacket *pkt)
#define MVI_AUDIO_STREAM_INDEX
static int read_header(AVFormatContext *s)
An AVChannelLayout holds information about the channel layout of audio data.
int height
The height of the video frame in pixels.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
AVChannelLayout ch_layout
The channel layout and number of channels.
int width
The width of the video frame in pixels.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
enum AVMediaType codec_type
General type of the encoded data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVRational avg_frame_rate
Average framerate.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
uint64_t audio_frame_size
unsigned int(* get_int)(AVIOContext *)
uint64_t audio_size_counter