FFmpeg
Data Structures | Macros | Functions | Variables
sdsdec.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  SDSContext
 

Macros

#define SDS_3BYTE_TO_INT_DECODE(x)   (((x) & 0x7F) | (((x) & 0x7F00) >> 1) | (((x) & 0x7F0000) >> 2))
 

Functions

static int sds_probe (const AVProbeData *p)
 
static void byte2_read (const uint8_t *src, uint32_t *dst)
 
static void byte3_read (const uint8_t *src, uint32_t *dst)
 
static void byte4_read (const uint8_t *src, uint32_t *dst)
 
static int sds_read_header (AVFormatContext *ctx)
 
static int sds_read_packet (AVFormatContext *ctx, AVPacket *pkt)
 

Variables

const FFInputFormat ff_sds_demuxer
 

Macro Definition Documentation

◆ SDS_3BYTE_TO_INT_DECODE

#define SDS_3BYTE_TO_INT_DECODE (   x)    (((x) & 0x7F) | (((x) & 0x7F00) >> 1) | (((x) & 0x7F0000) >> 2))

Definition at line 77 of file sdsdec.c.

Function Documentation

◆ sds_probe()

static int sds_probe ( const AVProbeData p)
static

Definition at line 34 of file sdsdec.c.

◆ byte2_read()

static void byte2_read ( const uint8_t *  src,
uint32_t *  dst 
)
static

Definition at line 42 of file sdsdec.c.

Referenced by sds_read_header().

◆ byte3_read()

static void byte3_read ( const uint8_t *  src,
uint32_t *  dst 
)
static

Definition at line 53 of file sdsdec.c.

Referenced by sds_read_header().

◆ byte4_read()

static void byte4_read ( const uint8_t *  src,
uint32_t *  dst 
)
static

Definition at line 65 of file sdsdec.c.

Referenced by sds_read_header().

◆ sds_read_header()

static int sds_read_header ( AVFormatContext ctx)
static

Definition at line 79 of file sdsdec.c.

◆ sds_read_packet()

static int sds_read_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 123 of file sdsdec.c.

Variable Documentation

◆ ff_sds_demuxer

const FFInputFormat ff_sds_demuxer
Initial value:
= {
.p.name = "sds",
.p.long_name = NULL_IF_CONFIG_SMALL("MIDI Sample Dump Standard"),
.p.extensions = "sds",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(SDSContext),
}

Definition at line 157 of file sdsdec.c.

sds_probe
static int sds_probe(const AVProbeData *p)
Definition: sdsdec.c:34
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
SDSContext
Definition: sdsdec.c:27
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
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
sds_read_packet
static int sds_read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: sdsdec.c:123
sds_read_header
static int sds_read_header(AVFormatContext *ctx)
Definition: sdsdec.c:79