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

AVInputFormat ff_redspark_demuxer
 

Macro Definition Documentation

◆ HEADER_SIZE

#define HEADER_SIZE   4096

Definition at line 28 of file redspark.c.

◆ rol

#define rol (   value,
  bits 
)    (((value) << (bits)) | ((value) >> (32 - (bits))))

Definition at line 29 of file redspark.c.

Function Documentation

◆ redspark_probe()

static int redspark_probe ( const AVProbeData p)
static

Definition at line 35 of file redspark.c.

◆ redspark_read_header()

static int redspark_read_header ( AVFormatContext s)
static

Definition at line 57 of file redspark.c.

◆ redspark_read_packet()

static int redspark_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 131 of file redspark.c.

Variable Documentation

◆ ff_redspark_demuxer

AVInputFormat ff_redspark_demuxer
Initial value:
= {
.name = "redspark",
.long_name = NULL_IF_CONFIG_SMALL("RedSpark"),
.priv_data_size = sizeof(RedSparkContext),
.extensions = "rsd",
}

Definition at line 154 of file redspark.c.

redspark_probe
static int redspark_probe(const AVProbeData *p)
Definition: redspark.c:35
redspark_read_packet
static int redspark_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: redspark.c:131
RedSparkContext
Definition: redspark.c:31
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
redspark_read_header
static int redspark_read_header(AVFormatContext *s)
Definition: redspark.c:57
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:188
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42