FFmpeg
Data Structures | Functions | Variables
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 },
}

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,
}

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,
}

Definition at line 75 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:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
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:252
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:94
dfpwm_read_header
static int dfpwm_read_header(AVFormatContext *s)
Definition: dfpwmdec.c:38
DFPWMAudioDemuxerContext
Definition: dfpwmdec.c:32
ff_pcm_read_packet
int ff_pcm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: pcm.c:57
ff_pcm_read_seek
int ff_pcm_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: pcm.c:73
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:235
dfpwm_options
static const AVOption dfpwm_options[]
Definition: dfpwmdec.c:63
dfpwm_demuxer_class
static const AVClass dfpwm_demuxer_class
Definition: dfpwmdec.c:68
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:273
AV_CODEC_ID_DFPWM
@ AV_CODEC_ID_DFPWM
Definition: codec_id.h:536