FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pcmdec.c File Reference
#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  PCMAudioDemuxerContext
 

Macros

#define PCMDEF(name_, long_name_, ext, codec)
 

Functions

static int pcm_read_header (AVFormatContext *s)
 
 PCMDEF (f64be,"PCM 64-bit floating-point big-endian", PCMDEF(NULL, AV_CODEC_ID_PCM_F64BE)
 

Variables

static const AVOption pcm_options []
 
static const AVClass sln_demuxer_class
 
AVInputFormat ff_sln_demuxer
 

Macro Definition Documentation

#define PCMDEF (   name_,
  long_name_,
  ext,
  codec 
)
Value:
static const AVClass name_ ## _demuxer_class = { \
.class_name = #name_ " demuxer", \
.item_name = av_default_item_name, \
.option = pcm_options, \
.version = LIBAVUTIL_VERSION_INT, \
}; \
AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \
.name = #name_, \
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
.priv_data_size = sizeof(PCMAudioDemuxerContext), \
.extensions = ext, \
.raw_codec_id = codec, \
.priv_class = &name_ ## _demuxer_class, \
};

Definition at line 68 of file pcmdec.c.

Function Documentation

static int pcm_read_header ( AVFormatContext s)
static

Definition at line 35 of file pcmdec.c.

PCMDEF ( f64be  ,
"PCM 64-bit floating-point big-endian"  ,
PCMDEF(  NULL,
AV_CODEC_ID_PCM_F64BE   
)

Definition at line 88 of file pcmdec.c.

Variable Documentation

const AVOption pcm_options[]
static
Initial value:
= {
{ "sample_rate", "", 0x42, AV_OPT_TYPE_INT, {.i64 = 44100}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "channels", "", 0x42, AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}

Definition at line 62 of file pcmdec.c.

const AVClass sln_demuxer_class
static
Initial value:
= {
.class_name = "sln demuxer",
.item_name = av_default_item_name,
.option = sln_options,
}

Definition at line 154 of file pcmdec.c.

AVInputFormat ff_sln_demuxer
Initial value:
= {
.name = "sln",
.long_name = NULL_IF_CONFIG_SMALL("Asterisk raw pcm"),
.priv_data_size = sizeof(PCMAudioDemuxerContext),
.extensions = "sln",
.raw_codec_id = AV_CODEC_ID_PCM_S16LE,
.priv_class = &sln_demuxer_class,
}

Definition at line 161 of file pcmdec.c.