|
FFmpeg 9.1
|
Data Structures | |
| struct | AVDownmixInfo |
| This structure describes optional metadata relevant to a downmix procedure. More... | |
| struct | AVDownmixMatrix |
| This structure describes optional metadata relevant to a downmix procedure in the form of a remixing matrix allocated as an array of AVDownmixCoeff. More... | |
Typedefs | |
| typedef double | AVDownmixCoeff |
| Data type for storing coefficients, which are allocated as a part of AVDownmixMatrix and should be retrieved with av_downmix_matrix_coeff. | |
Enumerations | |
| enum | AVDownmixType { AV_DOWNMIX_TYPE_UNKNOWN , AV_DOWNMIX_TYPE_LORO , AV_DOWNMIX_TYPE_LTRT , AV_DOWNMIX_TYPE_DPLII , AV_DOWNMIX_TYPE_NB } |
| Possible downmix types. More... | |
Functions | |
| AVDownmixInfo * | av_downmix_info_update_side_data (AVFrame *frame) |
| Get a frame's AV_FRAME_DATA_DOWNMIX_INFO side data for editing. | |
| static av_always_inline AVDownmixCoeff * | av_downmix_matrix_coeff (AVDownmixMatrix *dm, unsigned int out, unsigned int in) |
Get a pointer to the coeff that represents the weight of input channel in in output channel out. | |
| AVDownmixMatrix * | av_downmix_matrix_alloc (enum AVDownmixType type, int in_ch_count, size_t *out_size) |
Allocates memory for AVDownmixMatrix of the given type, plus an array of in_ch_count times the implicit output channel count from type of AVDownmixCoeff and initializes the variables. | |
| typedef double AVDownmixCoeff |
Data type for storing coefficients, which are allocated as a part of AVDownmixMatrix and should be retrieved with av_downmix_matrix_coeff.
Definition at line 144 of file downmix_info.h.
| enum AVDownmixType |
Possible downmix types.
Definition at line 45 of file downmix_info.h.
| AVDownmixInfo * av_downmix_info_update_side_data | ( | AVFrame * | frame | ) |
Get a frame's AV_FRAME_DATA_DOWNMIX_INFO side data for editing.
If the side data is absent, it is created and added to the frame.
| frame | the frame for which the side data is to be obtained or created |
|
static |
Get a pointer to the coeff that represents the weight of input channel in in output channel out.
in must be between 0 and in_ch_count - 1. out must be between 0 and the implicit output channel count from downmix_type - 1.
Definition at line 154 of file downmix_info.h.
| AVDownmixMatrix * av_downmix_matrix_alloc | ( | enum AVDownmixType | type, |
| int | in_ch_count, | ||
| size_t * | out_size ) |
Allocates memory for AVDownmixMatrix of the given type, plus an array of in_ch_count times the implicit output channel count from type of AVDownmixCoeff and initializes the variables.
Can be freed with a normal av_free() call.
| out_size | if non-NULL, the size in bytes of the resulting data array is written here. |