FFmpeg
Functions | Variables
wsddec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavutil/timecode.h"
#include "avformat.h"
#include "demux.h"
#include "rawdec.h"

Go to the source code of this file.

Functions

static int wsd_probe (const AVProbeData *p)
 
static int empty_string (const char *buf, unsigned size)
 
static int wsd_to_av_channel_layoyt (AVFormatContext *s, int bit)
 
static int get_metadata (AVFormatContext *s, const char *const tag, const unsigned size)
 
static int wsd_read_header (AVFormatContext *s)
 

Variables

const FFInputFormat ff_wsd_demuxer
 

Function Documentation

◆ wsd_probe()

static int wsd_probe ( const AVProbeData p)
static

Definition at line 30 of file wsddec.c.

◆ empty_string()

static int empty_string ( const char *  buf,
unsigned  size 
)
static

Definition at line 39 of file wsddec.c.

Referenced by get_metadata().

◆ wsd_to_av_channel_layoyt()

static int wsd_to_av_channel_layoyt ( AVFormatContext s,
int  bit 
)
static

Definition at line 48 of file wsddec.c.

Referenced by wsd_read_header().

◆ get_metadata()

static int get_metadata ( AVFormatContext s,
const char *const  tag,
const unsigned  size 
)
static

Definition at line 73 of file wsddec.c.

Referenced by wsd_read_header().

◆ wsd_read_header()

static int wsd_read_header ( AVFormatContext s)
static

Definition at line 98 of file wsddec.c.

Variable Documentation

◆ ff_wsd_demuxer

const FFInputFormat ff_wsd_demuxer
Initial value:
= {
.p.name = "wsd",
.p.long_name = NULL_IF_CONFIG_SMALL("Wideband Single-bit Data (WSD)"),
.p.extensions = "wsd",
.p.priv_class = &ff_raw_demuxer_class,
.read_probe = wsd_probe,
.read_header = wsd_read_header,
.raw_codec_id = AV_CODEC_ID_DSD_MSBF,
.priv_data_size = sizeof(FFRawDemuxerContext),
}

Definition at line 169 of file wsddec.c.

AVFMT_NO_BYTE_SEEK
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition: avformat.h:487
FFRawDemuxerContext
Definition: rawdec.h:37
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
ff_raw_read_partial_packet
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawdec.c:33
ff_raw_demuxer_class
const AVClass ff_raw_demuxer_class
Definition: rawdec.c:141
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
AV_CODEC_ID_DSD_MSBF
@ AV_CODEC_ID_DSD_MSBF
Definition: codec_id.h:514
wsd_probe
static int wsd_probe(const AVProbeData *p)
Definition: wsddec.c:30
wsd_read_header
static int wsd_read_header(AVFormatContext *s)
Definition: wsddec.c:98