#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "internal.h"
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | RPLContext |
Defines | |
#define | RPL_SIGNATURE "ARMovie\x0A" |
#define | RPL_SIGNATURE_SIZE 8 |
#define | RPL_LINE_LENGTH 256 |
256 is arbitrary, but should be big enough for any reasonable file. | |
Functions | |
static int | rpl_probe (AVProbeData *p) |
static int | read_line (AVIOContext *pb, char *line, int bufsize) |
static int32_t | read_int (const char *line, const char **endptr, int *error) |
static int32_t | read_line_and_int (AVIOContext *pb, int *error) |
static AVRational | read_fps (const char *line, int *error) |
Parsing for fps, which can be a fraction. | |
static int | rpl_read_header (AVFormatContext *s) |
static int | rpl_read_packet (AVFormatContext *s, AVPacket *pkt) |
Variables | |
AVInputFormat | ff_rpl_demuxer |
#define RPL_LINE_LENGTH 256 |
256 is arbitrary, but should be big enough for any reasonable file.
Definition at line 32 of file rpl.c.
Referenced by read_line_and_int(), and rpl_read_header().
#define RPL_SIGNATURE "ARMovie\x0A" |
#define RPL_SIGNATURE_SIZE 8 |
static AVRational read_fps | ( | const char * | line, | |
int * | error | |||
) | [static] |
Parsing for fps, which can be a fraction.
Unfortunately, the spec for the header leaves out a lot of details, so this is mostly guessing.
Definition at line 93 of file rpl.c.
Referenced by rpl_read_header().
static int32_t read_int | ( | const char * | line, | |
const char ** | endptr, | |||
int * | error | |||
) | [static] |
static int read_line | ( | AVIOContext * | pb, | |
char * | line, | |||
int | bufsize | |||
) | [static] |
static int32_t read_line_and_int | ( | AVIOContext * | pb, | |
int * | error | |||
) | [static] |
static int rpl_probe | ( | AVProbeData * | p | ) | [static] |
static int rpl_read_header | ( | AVFormatContext * | s | ) | [static] |
static int rpl_read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
Initial value:
{ .name = "rpl", .long_name = NULL_IF_CONFIG_SMALL("RPL/ARMovie format"), .priv_data_size = sizeof(RPLContext), .read_probe = rpl_probe, .read_header = rpl_read_header, .read_packet = rpl_read_packet, }