#include "config_components.h"
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/mem.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.
|
#define | PCMDEF_0(name_, long_name_, ext, codec, ...) |
|
#define | PCMDEF_1(name_, long_name_, ext, codec, ...) |
|
#define | PCMDEF_2(name, long_name, ext, codec, enabled, ...) PCMDEF_ ## enabled(name, long_name, ext, codec, __VA_ARGS__) |
|
#define | PCMDEF_3(name, long_name, ext, codec, config, ...) PCMDEF_2(name, long_name, ext, codec, config, __VA_ARGS__) |
|
#define | PCMDEF_EXT(name, long_name, ext, uppercase, ...) |
|
#define | PCMDEF(name, long_name, ext, uppercase) PCMDEF_EXT(name, long_name, ext, uppercase, ) |
|
◆ PCMDEF_0
#define PCMDEF_0 |
( |
|
name_, |
|
|
|
long_name_, |
|
|
|
ext, |
|
|
|
codec, |
|
|
|
... |
|
) |
| |
◆ PCMDEF_1
#define PCMDEF_1 |
( |
|
name_, |
|
|
|
long_name_, |
|
|
|
ext, |
|
|
|
codec, |
|
|
|
... |
|
) |
| |
Value:
.p.extensions = ext, \
.raw_codec_id = codec, \
__VA_ARGS__ \
};
Definition at line 120 of file pcmdec.c.
◆ PCMDEF_2
#define PCMDEF_2 |
( |
|
name, |
|
|
|
long_name, |
|
|
|
ext, |
|
|
|
codec, |
|
|
|
enabled, |
|
|
|
... |
|
) |
| PCMDEF_ ## enabled(name, long_name, ext, codec, __VA_ARGS__) |
◆ PCMDEF_3
#define PCMDEF_3 |
( |
|
name, |
|
|
|
long_name, |
|
|
|
ext, |
|
|
|
codec, |
|
|
|
config, |
|
|
|
... |
|
) |
| PCMDEF_2(name, long_name, ext, codec, config, __VA_ARGS__) |
◆ PCMDEF_EXT
#define PCMDEF_EXT |
( |
|
name, |
|
|
|
long_name, |
|
|
|
ext, |
|
|
|
uppercase, |
|
|
|
... |
|
) |
| |
Value: PCMDEF_3(
name, long_name, ext, AV_CODEC_ID_PCM_ ## uppercase, \
CONFIG_PCM_ ## uppercase ## _DEMUXER, __VA_ARGS__)
Definition at line 138 of file pcmdec.c.
◆ PCMDEF
#define PCMDEF |
( |
|
name, |
|
|
|
long_name, |
|
|
|
ext, |
|
|
|
uppercase |
|
) |
| PCMDEF_EXT(name, long_name, ext, uppercase, ) |
◆ pcm_read_header()
◆ pcm_options
Initial value:
Definition at line 107 of file pcmdec.c.
◆ pcm_demuxer_class
Initial value:= {
.class_name = "pcm demuxer",
}
Definition at line 112 of file pcmdec.c.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
#define PCMDEF_3(name, long_name, ext, codec, config,...)
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
static const AVOption pcm_options[]
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static const AVClass pcm_demuxer_class
#define LIBAVUTIL_VERSION_INT
static int read_header(FFV1Context *f)
const char * av_default_item_name(void *ptr)
Return the context name.
@ AV_OPT_TYPE_CHLAYOUT
Underlying C type is AVChannelLayout.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_OPT_TYPE_INT
Underlying C type is int.
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
static int pcm_read_header(AVFormatContext *s)