FFmpeg
Loading...
Searching...
No Matches
dfpwmdec.c File Reference
#include "libavutil/avstring.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "pcm.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Data Structures

struct  DFPWMAudioDemuxerContext
 

Functions

static int dfpwm_read_header (AVFormatContext *s)
 

Variables

static const AVOption dfpwm_options []
 
static const AVClass dfpwm_demuxer_class
 
const FFInputFormat ff_dfpwm_demuxer
 

Function Documentation

◆ dfpwm_read_header()

static int dfpwm_read_header ( AVFormatContext * s)
static

Definition at line 38 of file dfpwmdec.c.

Variable Documentation

◆ dfpwm_options

const AVOption dfpwm_options[]
static
Initial value:
= {
{ "sample_rate", "", 0x42 , AV_OPT_TYPE_INT, {.i64 = 48000}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "ch_layout", "", 0x42 , AV_OPT_TYPE_CHLAYOUT, {.str = "mono"}, 0, 0, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
#define NULL
Definition coverity.c:32
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition opt.h:355
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
@ AV_OPT_TYPE_CHLAYOUT
Underlying C type is AVChannelLayout.
Definition opt.h:330

Definition at line 63 of file dfpwmdec.c.

◆ dfpwm_demuxer_class

const AVClass dfpwm_demuxer_class
static
Initial value:
= {
.class_name = "dfpwm demuxer",
.item_name = av_default_item_name,
.option = dfpwm_options,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
static const AVOption dfpwm_options[]
Definition dfpwmdec.c:63

Definition at line 68 of file dfpwmdec.c.

◆ ff_dfpwm_demuxer

const FFInputFormat ff_dfpwm_demuxer
Initial value:
= {
.p.name = "dfpwm",
.p.long_name = NULL_IF_CONFIG_SMALL("raw DFPWM1a"),
.p.flags = AVFMT_GENERIC_INDEX,
.p.extensions = "dfpwm",
.p.priv_class = &dfpwm_demuxer_class,
.priv_data_size = sizeof(DFPWMAudioDemuxerContext),
.raw_codec_id = AV_CODEC_ID_DFPWM,
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
@ AV_CODEC_ID_DFPWM
Definition codec_id.h:549
static const AVClass dfpwm_demuxer_class
Definition dfpwmdec.c:68
static int dfpwm_read_header(AVFormatContext *s)
Definition dfpwmdec.c:38
int ff_pcm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition pcm.c:57
int ff_pcm_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition pcm.c:73
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 75 of file dfpwmdec.c.