92 #if FF_API_R_FRAME_RATE
104 filename[
sizeof(filename)-1] = 0;
171 if (atom.
tag ==
MKTAG(
'R',
'E',
'D',
'1')) {
195 if (atom.
tag !=
MKTAG(
'R',
'E',
'O',
'B') &&
196 atom.
tag !=
MKTAG(
'R',
'E',
'O',
'F') &&
206 if (atom.
tag ==
MKTAG(
'R',
'D',
'V',
'O')) {
213 avio_seek(
s->pb,
s->internal->data_offset, SEEK_SET);
282 if (
s->nb_streams < 2) {
331 av_log(
s,
AV_LOG_TRACE,
"pkt dts %"PRId64
" duration %"PRId64
" samples %d sample rate %d\n",
349 case MKTAG(
'R',
'E',
'D',
'V'):
355 case MKTAG(
'R',
'E',
'D',
'A'):
390 frame_num, sample_time);
392 if (frame_num < r3d->video_offsets_count) {
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
int64_t avio_size(AVIOContext *s)
Get the filesize.
unsigned int avio_rb16(AVIOContext *s)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rb32(AVIOContext *s)
int avio_r8(AVIOContext *s)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define flags(name, subs,...)
#define MKTAG(a, b, c, d)
static int read_header(FFV1Context *f)
@ AVDISCARD_ALL
discard all
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#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.
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
static int r3d_read_red1(AVFormatContext *s)
static int r3d_read_rdvo(AVFormatContext *s, Atom *atom)
static int r3d_read_redv(AVFormatContext *s, AVPacket *pkt, Atom *atom)
static int read_atom(AVFormatContext *s, Atom *atom)
AVInputFormat ff_r3d_demuxer
static int r3d_read_reda(AVFormatContext *s, AVPacket *pkt, Atom *atom)
static int r3d_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags)
static void r3d_read_reos(AVFormatContext *s)
static int r3d_read_header(AVFormatContext *s)
static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt)
static int r3d_probe(const AVProbeData *p)
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
This structure stores compressed data.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.
This structure contains the data a format has to probe a file.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
Rational number (pair of numerator and denominator).
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int64_t duration
Decoding: duration of the stream, in stream time base.
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.
AVRational r_frame_rate
Real base framerate of the stream.
unsigned video_offsets_count