FFmpeg
Data Structures | Macros | Functions | Variables
sdsdec.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.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 AVInputFormat 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 76 of file sdsdec.c.

Function Documentation

◆ sds_probe()

static int sds_probe ( const AVProbeData p)
static

Definition at line 33 of file sdsdec.c.

◆ byte2_read()

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

Definition at line 41 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 52 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 64 of file sdsdec.c.

Referenced by sds_read_header().

◆ sds_read_header()

static int sds_read_header ( AVFormatContext ctx)
static

Definition at line 78 of file sdsdec.c.

◆ sds_read_packet()

static int sds_read_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 122 of file sdsdec.c.

Variable Documentation

◆ ff_sds_demuxer

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

Definition at line 156 of file sdsdec.c.

sds_probe
static int sds_probe(const AVProbeData *p)
Definition: sdsdec.c:33
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:463
SDSContext
Definition: sdsdec.c:26
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:527
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
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:117
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
sds_read_packet
static int sds_read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: sdsdec.c:122
sds_read_header
static int sds_read_header(AVFormatContext *ctx)
Definition: sdsdec.c:78