FFmpeg
Data Structures | Functions | Variables
dfpwmdec.c File Reference
#include "libavutil/avstring.h"
#include "avformat.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 AVInputFormat ff_dfpwm_demuxer
 

Function Documentation

◆ dfpwm_read_header()

static int dfpwm_read_header ( AVFormatContext s)
static

Definition at line 40 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 },
}

Definition at line 72 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,
}

Definition at line 82 of file dfpwmdec.c.

◆ ff_dfpwm_demuxer

const AVInputFormat ff_dfpwm_demuxer
Initial value:
= {
.name = "dfpwm",
.long_name = NULL_IF_CONFIG_SMALL("raw DFPWM1a"),
.priv_data_size = sizeof(DFPWMAudioDemuxerContext),
.extensions = "dfpwm",
.raw_codec_id = AV_CODEC_ID_DFPWM,
.priv_class = &dfpwm_demuxer_class,
}

Definition at line 89 of file dfpwmdec.c.

read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:482
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
AV_OPT_TYPE_CHLAYOUT
@ AV_OPT_TYPE_CHLAYOUT
Definition: opt.h:245
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:115
dfpwm_read_header
static int dfpwm_read_header(AVFormatContext *s)
Definition: dfpwmdec.c:40
AV_OPT_FLAG_DECODING_PARAM
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282
DFPWMAudioDemuxerContext
Definition: dfpwmdec.c:31
ff_pcm_read_packet
int ff_pcm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: pcm.c:29
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
ff_pcm_read_seek
int ff_pcm_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: pcm.c:56
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
dfpwm_options
static const AVOption dfpwm_options[]
Definition: dfpwmdec.c:72
dfpwm_demuxer_class
static const AVClass dfpwm_demuxer_class
Definition: dfpwmdec.c:82
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
AV_CODEC_ID_DFPWM
@ AV_CODEC_ID_DFPWM
Definition: codec_id.h:531