FFmpeg
Macros | Functions
channel_layout.c File Reference
#include "libavutil/channel_layout.c"

Go to the source code of this file.

Macros

#define CHANNEL_NAME(x)
 
#define CHANNEL_DESCRIPTION(x)
 
#define CHANNEL_LAYOUT_FROM_MASK(x)
 
#define CHANNEL_LAYOUT_FROM_STRING(x)
 
#define CHANNEL_LAYOUT_CHANNEL_FROM_INDEX(x)
 
#define CHANNEL_LAYOUT_SUBSET(x)   mask = av_channel_layout_subset(&layout, x)
 
#define CHANNEL_LAYOUT_INDEX_FROM_CHANNEL(x)
 
#define CHANNEL_LAYOUT_CHANNEL_FROM_STRING(x)
 
#define CHANNEL_LAYOUT_INDEX_FROM_STRING(x)
 

Functions

int main (void)
 

Macro Definition Documentation

◆ CHANNEL_NAME

#define CHANNEL_NAME (   x)
Value:
av_channel_name_bprint(&bp, x);

Definition at line 23 of file channel_layout.c.

◆ CHANNEL_DESCRIPTION

#define CHANNEL_DESCRIPTION (   x)
Value:
av_channel_description_bprint(&bp, x);

Definition at line 27 of file channel_layout.c.

◆ CHANNEL_LAYOUT_FROM_MASK

#define CHANNEL_LAYOUT_FROM_MASK (   x)
Value:
av_bprint_clear(&bp); \
av_channel_layout_describe_bprint(&layout, &bp); \
av_bprintf(&bp, "fail");

Definition at line 31 of file channel_layout.c.

◆ CHANNEL_LAYOUT_FROM_STRING

#define CHANNEL_LAYOUT_FROM_STRING (   x)
Value:
av_bprint_clear(&bp); \
av_channel_layout_describe_bprint(&layout, &bp); \
av_bprintf(&bp, "fail");

Definition at line 40 of file channel_layout.c.

◆ CHANNEL_LAYOUT_CHANNEL_FROM_INDEX

#define CHANNEL_LAYOUT_CHANNEL_FROM_INDEX (   x)
Value:
if (ret < 0) \
ret = -1

Definition at line 49 of file channel_layout.c.

◆ CHANNEL_LAYOUT_SUBSET

#define CHANNEL_LAYOUT_SUBSET (   x)    mask = av_channel_layout_subset(&layout, x)

Definition at line 54 of file channel_layout.c.

◆ CHANNEL_LAYOUT_INDEX_FROM_CHANNEL

#define CHANNEL_LAYOUT_INDEX_FROM_CHANNEL (   x)
Value:
if (ret < 0) \
ret = -1

Definition at line 57 of file channel_layout.c.

◆ CHANNEL_LAYOUT_CHANNEL_FROM_STRING

#define CHANNEL_LAYOUT_CHANNEL_FROM_STRING (   x)
Value:
if (ret < 0) \
ret = -1

Definition at line 62 of file channel_layout.c.

◆ CHANNEL_LAYOUT_INDEX_FROM_STRING

#define CHANNEL_LAYOUT_INDEX_FROM_STRING (   x)
Value:
if (ret < 0) \
ret = -1

Definition at line 67 of file channel_layout.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 72 of file channel_layout.c.

av_channel_layout_channel_from_index
enum AVChannel av_channel_layout_channel_from_index(const AVChannelLayout *channel_layout, unsigned int idx)
Get the channel with the given index in a channel layout.
Definition: channel_layout.c:796
av_channel_layout_from_mask
FF_ENABLE_DEPRECATION_WARNINGS int av_channel_layout_from_mask(AVChannelLayout *channel_layout, uint64_t mask)
Initialize a native channel layout from a bitmask indicating which channels are present.
Definition: channel_layout.c:391
av_channel_layout_index_from_string
int av_channel_layout_index_from_string(const AVChannelLayout *channel_layout, const char *str)
Get the index in a channel layout of a channel described by the given string.
Definition: channel_layout.c:870
layout
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel layout
Definition: filter_design.txt:18
av_channel_layout_from_string
int av_channel_layout_from_string(AVChannelLayout *channel_layout, const char *str)
Initialize a channel layout from a given string description.
Definition: channel_layout.c:404
ret
ret
Definition: filter_design.txt:187
av_channel_layout_check
int av_channel_layout_check(const AVChannelLayout *channel_layout)
Check whether a channel layout is valid, i.e.
Definition: channel_layout.c:906
av_bprintf
void av_bprintf(AVBPrint *buf, const char *fmt,...)
Definition: bprint.c:94
av_channel_layout_channel_from_string
enum AVChannel av_channel_layout_channel_from_string(const AVChannelLayout *channel_layout, const char *str)
Get a channel described by the given string.
Definition: channel_layout.c:825
av_channel_layout_index_from_channel
int av_channel_layout_index_from_channel(const AVChannelLayout *channel_layout, enum AVChannel channel)
Get the index of a given channel in a channel layout.
Definition: channel_layout.c:836
av_bprint_clear
void av_bprint_clear(AVBPrint *buf)
Reset the string to "" but keep internal allocated data.
Definition: bprint.c:227
av_channel_layout_uninit
void av_channel_layout_uninit(AVChannelLayout *channel_layout)
Free any allocated data in the channel layout and reset the channel count to 0.
Definition: channel_layout.c:632