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.flags = AVFMT_NOTIMESTAMPS, \
.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 39 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 41 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 43 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:508
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:34
ff_raw_write_packet
int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawenc.c:31
FFOutputFormat
Definition: mux.h:30
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:115
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
PCMDEF_3
#define PCMDEF_3(name, long_name, ext, codec, config)
Definition: pcmenc.c:41