FFmpeg
Functions | Variables
wsddec.c File Reference
#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

AVInputFormat ff_wsd_demuxer
 

Function Documentation

◆ wsd_probe()

static int wsd_probe ( const AVProbeData p)
static

Definition at line 28 of file wsddec.c.

◆ empty_string()

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

Definition at line 37 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 46 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 71 of file wsddec.c.

Referenced by wsd_read_header().

◆ wsd_read_header()

static int wsd_read_header ( AVFormatContext s)
static

Definition at line 96 of file wsddec.c.

Variable Documentation

◆ ff_wsd_demuxer

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 = &wsd_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:470
FFRawDemuxerContext
Definition: rawdec.h:37
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:463
ff_raw_read_partial_packet
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawdec.c:35
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:188
AV_CODEC_ID_DSD_MSBF
@ AV_CODEC_ID_DSD_MSBF
Definition: codec_id.h:485
wsd_probe
static int wsd_probe(const AVProbeData *p)
Definition: wsddec.c:28
wsd_read_header
static int wsd_read_header(AVFormatContext *s)
Definition: wsddec.c:96