World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Audio channel layouts
+ Граф связей класса Audio channel layouts:

Перечисления

enum  AVMatrixEncoding {
  AV_MATRIX_ENCODING_NONE, AV_MATRIX_ENCODING_DOLBY, AV_MATRIX_ENCODING_DPLII, AV_MATRIX_ENCODING_DPLIIX,
  AV_MATRIX_ENCODING_DPLIIZ, AV_MATRIX_ENCODING_DOLBYEX, AV_MATRIX_ENCODING_DOLBYHEADPHONE, AV_MATRIX_ENCODING_NB
}
 

Функции

uint64_t av_get_channel_layout (const char *name)
 
int av_get_extended_channel_layout (const char *name, uint64_t *channel_layout, int *nb_channels)
 
void av_get_channel_layout_string (char *buf, int buf_size, int nb_channels, uint64_t channel_layout)
 
void av_bprint_channel_layout (struct AVBPrint *bp, int nb_channels, uint64_t channel_layout)
 
int av_get_channel_layout_nb_channels (uint64_t channel_layout)
 
int64_t av_get_default_channel_layout (int nb_channels)
 
int av_get_channel_layout_channel_index (uint64_t channel_layout, uint64_t channel)
 
uint64_t av_channel_layout_extract_channel (uint64_t channel_layout, int index)
 
const char * av_get_channel_name (uint64_t channel)
 
const char * av_get_channel_description (uint64_t channel)
 
int av_get_standard_channel_layout (unsigned index, uint64_t *layout, const char **name)
 

Подробное описание

Перечисления

◆ AVMatrixEncoding

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Элементы перечислений
AV_MATRIX_ENCODING_NONE 
AV_MATRIX_ENCODING_DOLBY 
AV_MATRIX_ENCODING_DPLII 
AV_MATRIX_ENCODING_DPLIIX 
AV_MATRIX_ENCODING_DPLIIZ 
AV_MATRIX_ENCODING_DOLBYEX 
AV_MATRIX_ENCODING_DOLBYHEADPHONE 
AV_MATRIX_ENCODING_NB 

См. определение в файле channel_layout.h строка 114

Функции

◆ av_get_channel_layout()

uint64_t av_get_channel_layout ( const char *  name)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

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 '|':

  • the name of an usual channel layout (mono, stereo, 4.0, quad, 5.0, 5.0(side), 5.1, 5.1(side), 7.1, 7.1(wide), downmix);
  • the name of a single channel (FL, FR, FC, LFE, BL, BR, FLC, FRC, BC, SL, SR, TC, TFL, TFC, TFR, TBL, TBC, TBR, DL, DR);
  • a number of channels, in decimal, followed by 'c', yielding the default channel layout for that number of channels (
    См. также
    av_get_default_channel_layout);
  • a channel layout mask, in hexadecimal starting with "0x" (see the AV_CH_* macros).

Example: "stereo+FC" = "2c+FC" = "2c+1c" = "0x7"

◆ av_get_extended_channel_layout()

int av_get_extended_channel_layout ( const char *  name,
uint64_t channel_layout,
int *  nb_channels 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Return a channel layout and the number of channels based on the specified name.

This function is similar to (

См. также
av_get_channel_layout), but can also parse unknown channel layout specifications.
Аргументы
[in]namechannel layout specification string
[out]channel_layoutparsed channel layout (0 if unknown)
[out]nb_channelsnumber of channels
Возвращает
0 on success, AVERROR(EINVAL) if the parsing fails.

◆ av_get_channel_layout_string()

void av_get_channel_layout_string ( char *  buf,
int  buf_size,
int  nb_channels,
uint64_t  channel_layout 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Return a description of a channel layout. If nb_channels is <= 0, it is guessed from the channel_layout.

Аргументы
bufput here the string containing the channel layout
buf_sizesize in bytes of the buffer

◆ av_bprint_channel_layout()

void av_bprint_channel_layout ( struct AVBPrint *  bp,
int  nb_channels,
uint64_t  channel_layout 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Append a description of a channel layout to a bprint buffer.

◆ av_get_channel_layout_nb_channels()

int av_get_channel_layout_nb_channels ( uint64_t  channel_layout)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Return the number of channels in the channel layout.

◆ av_get_default_channel_layout()

int64_t av_get_default_channel_layout ( int  nb_channels)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Return default channel layout for a given number of channels.

◆ av_get_channel_layout_channel_index()

int av_get_channel_layout_channel_index ( uint64_t  channel_layout,
uint64_t  channel 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Get the index of a channel in channel_layout.

Аргументы
channela channel layout describing exactly one channel which must be present in channel_layout.
Возвращает
index of channel in channel_layout on success, a negative AVERROR on error.

◆ av_channel_layout_extract_channel()

uint64_t av_channel_layout_extract_channel ( uint64_t  channel_layout,
int  index 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Get the channel with the given index in channel_layout.

◆ av_get_channel_name()

const char* av_get_channel_name ( uint64_t  channel)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Get the name of a given channel.

Возвращает
channel name on success, NULL on error.

◆ av_get_channel_description()

const char* av_get_channel_description ( uint64_t  channel)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Get the description of a given channel.

Аргументы
channela channel layout with a single channel
Возвращает
channel description on success, NULL on error

◆ av_get_standard_channel_layout()

int av_get_standard_channel_layout ( unsigned  index,
uint64_t layout,
const char **  name 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/channel_layout.h>

Get the value and name of a standard channel layout.

Аргументы
[in]indexindex in an internal list, starting at 0
[out]layoutchannel layout mask
[out]namename of the layout
Возвращает
0 if the layout exists, <0 if index is beyond the limits
AV_MATRIX_ENCODING_DOLBY
@ AV_MATRIX_ENCODING_DOLBY
Definition: channel_layout.h:116
AV_MATRIX_ENCODING_NB
@ AV_MATRIX_ENCODING_NB
Definition: channel_layout.h:122
AV_MATRIX_ENCODING_DPLIIX
@ AV_MATRIX_ENCODING_DPLIIX
Definition: channel_layout.h:118
AV_MATRIX_ENCODING_DOLBYHEADPHONE
@ AV_MATRIX_ENCODING_DOLBYHEADPHONE
Definition: channel_layout.h:121
AV_MATRIX_ENCODING_NONE
@ AV_MATRIX_ENCODING_NONE
Definition: channel_layout.h:115
AV_MATRIX_ENCODING_DOLBYEX
@ AV_MATRIX_ENCODING_DOLBYEX
Definition: channel_layout.h:120
AV_MATRIX_ENCODING_DPLIIZ
@ AV_MATRIX_ENCODING_DPLIIZ
Definition: channel_layout.h:119
AV_MATRIX_ENCODING_DPLII
@ AV_MATRIX_ENCODING_DPLII
Definition: channel_layout.h:117