FFmpeg
|
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"
Include dependency graph for pcmdec.c:
Go to the source code of this file.
Data Structures | |
struct | PCMAudioDemuxerContext |
Macros | |
#define | PCMDEF(name_, long_name_, ext, codec) |
Typedefs | |
typedef struct PCMAudioDemuxerContext | PCMAudioDemuxerContext |
Functions | |
static int | pcm_read_header (AVFormatContext *s) |
Variables | |
static const AVOption | pcm_options [] |
Macro Definition Documentation
#define PCMDEF | ( | name_, | |
long_name_, | |||
ext, | |||
codec | |||
) |
Value:
.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), \
.read_header = pcm_read_header, \
.read_seek = ff_pcm_read_seek, \
.flags = AVFMT_GENERIC_INDEX, \
.extensions = ext, \
.raw_codec_id = 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:153
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:55
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
int ff_pcm_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: libavformat/pcm.c:46
int ff_pcm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: libavformat/pcm.c:28
struct PCMAudioDemuxerContext PCMAudioDemuxerContext
Typedef Documentation
typedef struct PCMAudioDemuxerContext PCMAudioDemuxerContext |
Function Documentation
|
static |
Variable Documentation
|
static |
Initial value:
= {
{ "sample_rate", "", offsetof(PCMAudioDemuxerContext, sample_rate), AV_OPT_TYPE_INT, {.i64 = 44100}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "channels", "", offsetof(PCMAudioDemuxerContext, channels), AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
Definition: opt.h:222
Definition: pcmdec.c:29
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11