rpl.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "internal.h"
#include <stdlib.h>
Include dependency graph for rpl.c:

Go to the source code of this file.

Data Structures

struct  RPLContext
 

Macros

#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. More...
 

Typedefs

typedef struct RPLContext RPLContext
 

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. More...
 
static int rpl_read_header (AVFormatContext *s)
 
static int rpl_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_rpl_demuxer
 

Macro Definition Documentation

#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"

Definition at line 28 of file rpl.c.

Referenced by rpl_probe().

#define RPL_SIGNATURE_SIZE   8

Definition at line 29 of file rpl.c.

Referenced by rpl_probe().

Typedef Documentation

typedef struct RPLContext RPLContext

Function Documentation

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

Definition at line 69 of file rpl.c.

Referenced by read_fps(), and read_line_and_int().

static int read_line ( AVIOContext pb,
char *  line,
int  bufsize 
)
static

Definition at line 52 of file rpl.c.

Referenced by read_line_and_int(), and rpl_read_header().

static int32_t read_line_and_int ( AVIOContext pb,
int *  error 
)
static

Definition at line 81 of file rpl.c.

Referenced by rpl_read_header().

static int rpl_probe ( AVProbeData p)
static

Definition at line 34 of file rpl.c.

static int rpl_read_header ( AVFormatContext s)
static

Definition at line 113 of file rpl.c.

static int rpl_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 274 of file rpl.c.

Variable Documentation

AVInputFormat ff_rpl_demuxer
Initial value:
= {
.name = "rpl",
.long_name = NULL_IF_CONFIG_SMALL("RPL / ARMovie"),
.priv_data_size = sizeof(RPLContext),
}
static int rpl_read_header(AVFormatContext *s)
Definition: rpl.c:113
struct RPLContext RPLContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int rpl_probe(AVProbeData *p)
Definition: rpl.c:34
static int read_probe(AVProbeData *pd)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
static int rpl_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rpl.c:274

Definition at line 352 of file rpl.c.