FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#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

static int sds_probe ( AVProbeData p)
static

Definition at line 33 of file sdsdec.c.

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().

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().

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().

static int sds_read_header ( AVFormatContext ctx)
static

Definition at line 78 of file sdsdec.c.

static int sds_read_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 122 of file sdsdec.c.

Variable Documentation

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.