FFmpeg
Loading...
Searching...
No Matches
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 "avio_internal.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 31 of file wsddec.c.

◆ empty_string()

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

Definition at line 40 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 49 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 74 of file wsddec.c.

Referenced by wsd_read_header().

◆ wsd_read_header()

static int wsd_read_header ( AVFormatContext * s)
static

Definition at line 100 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),
}
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition avformat.h:506
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
@ AV_CODEC_ID_DSD_MSBF
Definition codec_id.h:527
const AVClass ff_raw_demuxer_class
Definition rawdec.c:141
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition rawdec.c:33
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int wsd_probe(const AVProbeData *p)
Definition wsddec.c:31
static int wsd_read_header(AVFormatContext *s)
Definition wsddec.c:100

Definition at line 171 of file wsddec.c.