FFmpeg
Data Structures | Macros | Functions | Variables
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)   (((value) << (bits)) | ((value) >> (32 - (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) << (bits)) | ((value) >> (32 - (bits))))

Definition at line 30 of file redspark.c.

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),
}

Definition at line 154 of file redspark.c.

redspark_probe
static int redspark_probe(const AVProbeData *p)
Definition: redspark.c:36
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
redspark_read_packet
static int redspark_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: redspark.c:132
RedSparkContext
Definition: redspark.c:32
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
redspark_read_header
static int redspark_read_header(AVFormatContext *s)
Definition: redspark.c:58
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30