FFmpeg
Macros
pcmenc.c File Reference
#include "config_components.h"
#include "avformat.h"
#include "mux.h"
#include "rawenc.h"

Go to the source code of this file.

Macros

#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)
 
#define PCMDEF_3(name, long_name, ext, codec, config)   PCMDEF_2(name, long_name, ext, codec, config)
 
#define PCMDEF(name, long_name, ext, uppercase)
 

Macro Definition Documentation

◆ PCMDEF_0

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

Definition at line 28 of file pcmenc.c.

◆ PCMDEF_1

#define PCMDEF_1 (   name_,
  long_name_,
  ext,
  codec 
)
Value:
const FFOutputFormat ff_pcm_ ## name_ ## _muxer = { \
.p.name = #name_, \
.p.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
.p.extensions = ext, \
.p.audio_codec = codec, \
.p.video_codec = AV_CODEC_ID_NONE, \
.p.subtitle_codec = AV_CODEC_ID_NONE, \
.p.flags = AVFMT_NOTIMESTAMPS, \
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH | \
FF_OFMT_FLAG_ONLY_DEFAULT_CODECS, \
.write_packet = ff_raw_write_packet, \
};

Definition at line 29 of file pcmenc.c.

◆ PCMDEF_2

#define PCMDEF_2 (   name,
  long_name,
  ext,
  codec,
  enabled 
)    PCMDEF_ ## enabled(name, long_name, ext, codec)

Definition at line 42 of file pcmenc.c.

◆ PCMDEF_3

#define PCMDEF_3 (   name,
  long_name,
  ext,
  codec,
  config 
)    PCMDEF_2(name, long_name, ext, codec, config)

Definition at line 44 of file pcmenc.c.

◆ PCMDEF

#define PCMDEF (   name,
  long_name,
  ext,
  uppercase 
)
Value:
PCMDEF_3(name, long_name, ext, AV_CODEC_ID_PCM_ ## uppercase, \
CONFIG_PCM_ ## uppercase ## _MUXER)

Definition at line 46 of file pcmenc.c.

name
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
Definition: writing_filters.txt:88
AVOutputFormat::name
const char * name
Definition: avformat.h:510
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
FFOutputFormat::p
AVOutputFormat p
The public AVOutputFormat.
Definition: mux.h:65
ff_raw_write_packet
int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawenc.c:31
FFOutputFormat
Definition: mux.h:61
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:106
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
PCMDEF_3
#define PCMDEF_3(name, long_name, ext, codec, config)
Definition: pcmenc.c:44