av_samples_fill_arrays

Fill channel data pointers and linesize for samples with sample format sample_fmt.

The pointers array is filled with the pointers to the samples data: for planar, set the start point of each channel's data within the buffer, for packed, set the start point of the entire buffer only.

The linesize array is filled with the aligned size of each channel's data buffer for planar layout, or the aligned size of the buffer for all channels for packed layout.

@see enum AVSampleFormat The documentation for AVSampleFormat describes the data layout.

@paramout audio_data array to be filled with the pointer for each channel @paramout linesize calculated linesize, may be NULL @param buf the pointer to a buffer containing the samples @param nb_channels the number of channels @param nb_samples the number of samples in a single channel @param sample_fmt the sample format @param align buffer size alignment (0 = default, 1 = no alignment) @return 0 on success or a negative error code on failure

@nogc nothrow extern (C)
int
av_samples_fill_arrays

Meta