RL2 file demuxer.
More...
#include <stdint.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
Go to the source code of this file.
|
#define | EXTRADATA1_SIZE (6 + 256 * 3) |
| video base, clr, palette More...
|
|
#define | FORM_TAG MKBETAG('F', 'O', 'R', 'M') |
|
#define | RLV2_TAG MKBETAG('R', 'L', 'V', '2') |
|
#define | RLV3_TAG MKBETAG('R', 'L', 'V', '3') |
|
RL2 file demuxer.
- Author
- Sascha Sommer (sasch.nosp@m.asom.nosp@m.mer@f.nosp@m.reen.nosp@m.et.de)
- See also
- http://wiki.multimedia.cx/index.php?title=RL2
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.
◆ EXTRADATA1_SIZE
#define EXTRADATA1_SIZE (6 + 256 * 3) |
video base, clr, palette
Definition at line 43 of file rl2.c.
◆ FORM_TAG
Definition at line 45 of file rl2.c.
◆ RLV2_TAG
Definition at line 46 of file rl2.c.
◆ RLV3_TAG
Definition at line 47 of file rl2.c.
◆ rl2_probe()
check if the file is in rl2 format
- Parameters
-
- Returns
- 0 when the probe buffer does not contain rl2 data, > 0 otherwise
Definition at line 59 of file rl2.c.
◆ rl2_read_header()
read rl2 header data and setup the avstreams
- Parameters
-
- Returns
- 0 on success, AVERROR otherwise
< 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
Definition at line 77 of file rl2.c.
◆ rl2_read_packet()
read a single audio or video packet
- Parameters
-
s | demuxer context |
pkt | the packet to be filled |
- Returns
- 0 on success, AVERROR otherwise
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
Definition at line 228 of file rl2.c.
◆ rl2_read_seek()
seek to a new timestamp
- Parameters
-
s | demuxer context |
stream_index | index of the stream that should be seeked |
timestamp | wanted timestamp |
flags | direction and seeking mode |
- Returns
- 0 on success, -1 otherwise
Definition at line 278 of file rl2.c.
◆ ff_rl2_demuxer
Initial value:
Definition at line 305 of file rl2.c.