FFmpeg
4.2.2
|
Functions | |
uint64_t | av_get_channel_layout (const char *name) |
Return a channel layout id that matches name, or 0 if no match is found. More... | |
int | av_get_extended_channel_layout (const char *name, uint64_t *channel_layout, int *nb_channels) |
Return a channel layout and the number of channels based on the specified name. More... | |
void | av_get_channel_layout_string (char *buf, int buf_size, int nb_channels, uint64_t channel_layout) |
Return a description of a channel layout. More... | |
void | av_bprint_channel_layout (struct AVBPrint *bp, int nb_channels, uint64_t channel_layout) |
Append a description of a channel layout to a bprint buffer. More... | |
int | av_get_channel_layout_nb_channels (uint64_t channel_layout) |
Return the number of channels in the channel layout. More... | |
int64_t | av_get_default_channel_layout (int nb_channels) |
Return default channel layout for a given number of channels. More... | |
int | av_get_channel_layout_channel_index (uint64_t channel_layout, uint64_t channel) |
Get the index of a channel in channel_layout. More... | |
uint64_t | av_channel_layout_extract_channel (uint64_t channel_layout, int index) |
Get the channel with the given index in channel_layout. More... | |
const char * | av_get_channel_name (uint64_t channel) |
Get the name of a given channel. More... | |
const char * | av_get_channel_description (uint64_t channel) |
Get the description of a given channel. More... | |
int | av_get_standard_channel_layout (unsigned index, uint64_t *layout, const char **name) |
Get the value and name of a standard channel layout. More... | |
#define AV_CH_LAYOUT_MONO (AV_CH_FRONT_CENTER) |
Definition at line 85 of file channel_layout.h.
Referenced by init_filters().
#define AV_CH_LAYOUT_STEREO (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT) |
Definition at line 86 of file channel_layout.h.
Referenced by add_stream(), init_filter_graph(), main(), and select_channel_layout().
#define AV_CH_LAYOUT_2POINT1 (AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY) |
Definition at line 87 of file channel_layout.h.
#define AV_CH_LAYOUT_2_1 (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER) |
Definition at line 88 of file channel_layout.h.
#define AV_CH_LAYOUT_SURROUND (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER) |
#define AV_CH_LAYOUT_3POINT1 (AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY) |
Definition at line 90 of file channel_layout.h.
#define AV_CH_LAYOUT_4POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER) |
Definition at line 91 of file channel_layout.h.
#define AV_CH_LAYOUT_4POINT1 (AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY) |
Definition at line 92 of file channel_layout.h.
#define AV_CH_LAYOUT_2_2 (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT) |
Definition at line 93 of file channel_layout.h.
#define AV_CH_LAYOUT_QUAD (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 94 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT) |
Definition at line 95 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT1 (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY) |
Definition at line 96 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT0_BACK (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 97 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT1_BACK (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY) |
Definition at line 98 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER) |
Definition at line 99 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT0_FRONT (AV_CH_LAYOUT_2_2|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 100 of file channel_layout.h.
#define AV_CH_LAYOUT_HEXAGONAL (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_BACK_CENTER) |
Definition at line 101 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER) |
Definition at line 102 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT1_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_BACK_CENTER) |
Definition at line 103 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT1_FRONT (AV_CH_LAYOUT_6POINT0_FRONT|AV_CH_LOW_FREQUENCY) |
Definition at line 104 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 105 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT0_FRONT (AV_CH_LAYOUT_5POINT0|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 106 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 107 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 108 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1_WIDE_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 109 of file channel_layout.h.
#define AV_CH_LAYOUT_OCTAGONAL (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT) |
Definition at line 110 of file channel_layout.h.
#define AV_CH_LAYOUT_HEXADECAGONAL (AV_CH_LAYOUT_OCTAGONAL|AV_CH_WIDE_LEFT|AV_CH_WIDE_RIGHT|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT|AV_CH_TOP_BACK_CENTER|AV_CH_TOP_FRONT_CENTER|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT) |
Definition at line 111 of file channel_layout.h.
#define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT) |
Definition at line 112 of file channel_layout.h.
enum AVMatrixEncoding |
Definition at line 114 of file channel_layout.h.
uint64_t av_get_channel_layout | ( | const char * | name | ) |
Return a channel layout id that matches name, or 0 if no match is found.
name can be one or several of the following notations, separated by '+' or '|':
Example: "stereo+FC" = "2c+FC" = "2c+1c" = "0x7"
int av_get_extended_channel_layout | ( | const char * | name, |
uint64_t * | channel_layout, | ||
int * | nb_channels | ||
) |
Return a channel layout and the number of channels based on the specified name.
This function is similar to (
[in] | name | channel layout specification string |
[out] | channel_layout | parsed channel layout (0 if unknown) |
[out] | nb_channels | number of channels |
void av_get_channel_layout_string | ( | char * | buf, |
int | buf_size, | ||
int | nb_channels, | ||
uint64_t | channel_layout | ||
) |
Return a description of a channel layout.
If nb_channels is <= 0, it is guessed from the channel_layout.
buf | put here the string containing the channel layout |
buf_size | size in bytes of the buffer |
Referenced by init_filter_graph(), and init_filters().
void av_bprint_channel_layout | ( | struct AVBPrint * | bp, |
int | nb_channels, | ||
uint64_t | channel_layout | ||
) |
Append a description of a channel layout to a bprint buffer.
int av_get_channel_layout_nb_channels | ( | uint64_t | channel_layout | ) |
Return the number of channels in the channel layout.
Referenced by add_stream(), main(), open_output_file(), print_frame(), process_output(), and select_channel_layout().
int64_t av_get_default_channel_layout | ( | int | nb_channels | ) |
Return default channel layout for a given number of channels.
Referenced by init_filter(), init_filters(), init_resampler(), and open_output_file().
int av_get_channel_layout_channel_index | ( | uint64_t | channel_layout, |
uint64_t | channel | ||
) |
Get the index of a channel in channel_layout.
channel | a channel layout describing exactly one channel which must be present in channel_layout. |
uint64_t av_channel_layout_extract_channel | ( | uint64_t | channel_layout, |
int | index | ||
) |
Get the channel with the given index in channel_layout.
const char* av_get_channel_name | ( | uint64_t | channel | ) |
Get the name of a given channel.
const char* av_get_channel_description | ( | uint64_t | channel | ) |
Get the description of a given channel.
channel | a channel layout with a single channel |
int av_get_standard_channel_layout | ( | unsigned | index, |
uint64_t * | layout, | ||
const char ** | name | ||
) |
Get the value and name of a standard channel layout.
[in] | index | index in an internal list, starting at 0 |
[out] | layout | channel layout mask |
[out] | name | name of the layout |