FFmpeg  4.0
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 (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

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.

Referenced by sds_read_header().

Function Documentation

◆ sds_probe()

static int sds_probe ( 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

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",
}
static int flags
Definition: log.c:55
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int sds_read_header(AVFormatContext *ctx)
Definition: sdsdec.c:78
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int sds_read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: sdsdec.c:122
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:470
static int sds_probe(AVProbeData *p)
Definition: sdsdec.c:33

Definition at line 156 of file sdsdec.c.