pcmdec.c File Reference
#include "avformat.h"
#include "rawdec.h"
#include "pcm.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Macros

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

Functions

static int raw_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption pcm_options []
 

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(RawAudioDemuxerContext), \
.extensions = ext, \
.value = codec, \
.priv_class = &name_ ## _demuxer_class, \
};
struct AVInputFormat AVInputFormat
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:148
static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: pcmdec.c:30
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
Definition: log.h:38
struct RawAudioDemuxerContext RawAudioDemuxerContext
static int read_header(FFV1Context *f)
Definition: ffv1.c:1513
static int flags
Definition: log.c:34
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static const AVOption pcm_options[]
Definition: pcmdec.c:51
int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
Definition: rawdec.c:32
LIBAVUTIL_VERSION_INT
Definition: eval.c:50
int pcm_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: pcm.c:26
av_default_item_name
Definition: dnxhdenc.c:43
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:109
Describe the class of an AVClass context structure.
Definition: log.h:33
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:376
const char * name
A comma separated list of short names for the format.
Definition: avformat.h:460

Definition at line 57 of file pcmdec.c.

#define RAW_SAMPLES   1024

Definition at line 28 of file pcmdec.c.

Referenced by raw_read_packet().

Function Documentation

static int raw_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 30 of file pcmdec.c.

Variable Documentation

const AVOption pcm_options[]
static
Initial value:
= {
{ "sample_rate", "", 0x42, AV_OPT_TYPE_INT, {.dbl = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "channels", "", 0x42, AV_OPT_TYPE_INT, {.dbl = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:275
NULL
Definition: eval.c:50

Definition at line 51 of file pcmdec.c.