FFmpeg
Loading...
Searching...
No Matches
redspark.c File Reference
#include "libavcodec/bytestream.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  RedSparkContext
 

Macros

#define HEADER_SIZE   4096
 
#define rol(value, bits)
 

Functions

static int redspark_probe (const AVProbeData *p)
 
static int redspark_read_header (AVFormatContext *s)
 
static int redspark_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_redspark_demuxer
 

Macro Definition Documentation

◆ HEADER_SIZE

#define HEADER_SIZE   4096

Definition at line 29 of file redspark.c.

◆ rol

#define rol ( value,
bits )
Value:
(((value) << (bits)) | ((value) >> (32 - (bits))))
double value
Definition eval.c:102
static const uint8_t bits[8]
Definition fastaudio.c:100

Definition at line 30 of file redspark.c.

Referenced by redspark_probe(), and redspark_read_header().

Function Documentation

◆ redspark_probe()

static int redspark_probe ( const AVProbeData * p)
static

Definition at line 36 of file redspark.c.

◆ redspark_read_header()

static int redspark_read_header ( AVFormatContext * s)
static

Definition at line 58 of file redspark.c.

◆ redspark_read_packet()

static int redspark_read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 132 of file redspark.c.

Variable Documentation

◆ ff_redspark_demuxer

const FFInputFormat ff_redspark_demuxer
Initial value:
= {
.p.name = "redspark",
.p.long_name = NULL_IF_CONFIG_SMALL("RedSpark"),
.p.extensions = "rsd",
.priv_data_size = sizeof(RedSparkContext),
}
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int redspark_read_header(AVFormatContext *s)
Definition redspark.c:58
static int redspark_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition redspark.c:132
static int redspark_probe(const AVProbeData *p)
Definition redspark.c:36

Definition at line 154 of file redspark.c.