FFmpeg
Macros
pcmenc.c File Reference
#include "avformat.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 25 of file pcmenc.c.

◆ PCMDEF_1

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

Definition at line 26 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 36 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 38 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 40 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:497
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:468
ff_raw_write_packet
int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawenc.c:29
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:117
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:48
AVOutputFormat
Definition: avformat.h:496
PCMDEF_3
#define PCMDEF_3(name, long_name, ext, codec, config)
Definition: pcmenc.c:38