#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
| struct | Rl2DemuxContext |
Defines | |
| #define | EXTRADATA1_SIZE (6 + 256 * 3) |
| video base, clr, palette | |
| #define | FORM_TAG MKBETAG('F', 'O', 'R', 'M') |
| #define | RLV2_TAG MKBETAG('R', 'L', 'V', '2') |
| #define | RLV3_TAG MKBETAG('R', 'L', 'V', '3') |
Functions | |
| static int | rl2_probe (AVProbeData *p) |
| check if the file is in rl2 format | |
| static av_cold int | rl2_read_header (AVFormatContext *s) |
| read rl2 header data and setup the avstreams | |
| static int | rl2_read_packet (AVFormatContext *s, AVPacket *pkt) |
| read a single audio or video packet | |
| static int | rl2_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags) |
| seek to a new timestamp | |
Variables | |
| AVInputFormat | ff_rl2_demuxer |
extradata: 2 byte le initial drawing offset within 320x200 viewport 4 byte le number of used colors 256 * 3 bytes rgb palette optional background_frame
Definition in file rl2.c.
| #define FORM_TAG MKBETAG('F', 'O', 'R', 'M') |
| #define RLV2_TAG MKBETAG('R', 'L', 'V', '2') |
| #define RLV3_TAG MKBETAG('R', 'L', 'V', '3') |
| static int rl2_probe | ( | AVProbeData * | p | ) | [static] |
| static av_cold int rl2_read_header | ( | AVFormatContext * | s | ) | [static] |
read rl2 header data and setup the avstreams
| s | demuxer context |
< get size of the background frame
setup video stream
allocate and fill extradata
setup audio stream if present
read offset and size tables
build the sample index
| static int rl2_read_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
read a single audio or video packet
| s | demuxer context | |
| pkt | the packet to be filled |
check if there is a valid video or audio entry that can be used
position the stream (will probably be there anyway)
fill the packet
| static int rl2_read_seek | ( | AVFormatContext * | s, | |
| int | stream_index, | |||
| int64_t | timestamp, | |||
| int | flags | |||
| ) | [static] |
Initial value:
{
.name = "rl2",
.long_name = NULL_IF_CONFIG_SMALL("RL2"),
.priv_data_size = sizeof(Rl2DemuxContext),
.read_probe = rl2_probe,
.read_header = rl2_read_header,
.read_packet = rl2_read_packet,
.read_seek = rl2_read_seek,
}
1.5.8