swr_build_matrix

Generate a channel mixing matrix.

This function is the one used internally by libswresample for building the default mixing matrix. It is made public just as a utility function for building custom matrices.

@param in_layout input channel layout @param out_layout output channel layout @param center_mix_level mix level for the center channel @param surround_mix_level mix level for the surround channel(s) @param lfe_mix_level mix level for the low-frequency effects channel @param rematrix_maxval if 1.0, coefficients will be normalized to prevent overflow. if INT_MAX, coefficients will not be normalized. @paramout matrix mixing coefficients; matrix[i + stride * o] is the weight of input channel i in output channel o. @param stride distance between adjacent input channels in the matrix array @param matrix_encoding matrixed stereo downmix mode (e.g. dplii) @param log_ctx parent logging context, can be NULL @return 0 on success, negative AVERROR code on failure

extern (C) @nogc nothrow
int
swr_build_matrix
(
ulong in_layout
,,,,,,,
double* matrix
,
int stride
,
AVMatrixEncoding matrix_encoding
,
void* log_ctx
)

Meta