FFmpeg
Functions | Variables
wsddec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/timecode.h"
#include "avformat.h"
#include "internal.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 AVInputFormat ff_wsd_demuxer
 

Function Documentation

◆ wsd_probe()

static int wsd_probe ( const AVProbeData p)
static

Definition at line 29 of file wsddec.c.

◆ empty_string()

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

Definition at line 38 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 47 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 72 of file wsddec.c.

Referenced by wsd_read_header().

◆ wsd_read_header()

static int wsd_read_header ( AVFormatContext s)
static

Definition at line 97 of file wsddec.c.

Variable Documentation

◆ ff_wsd_demuxer

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

Definition at line 165 of file wsddec.c.

AVFMT_NO_BYTE_SEEK
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition: avformat.h:483
FFRawDemuxerContext
Definition: rawdec.h:36
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:476
ff_raw_read_partial_packet
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawdec.c:34
ff_raw_demuxer_class
const AVClass ff_raw_demuxer_class
Definition: rawdec.c:142
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
AV_CODEC_ID_DSD_MSBF
@ AV_CODEC_ID_DSD_MSBF
Definition: codec_id.h:497
wsd_probe
static int wsd_probe(const AVProbeData *p)
Definition: wsddec.c:29
wsd_read_header
static int wsd_read_header(AVFormatContext *s)
Definition: wsddec.c:97