av_samples_fill_arrays

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

The audio_data array is filled with the pointers to the samples data planes: 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 value pointed to by linesize is set to the aligned size of each channel's data buffer for planar layout, or to the aligned size of the buffer for all channels for packed layout.

The buffer in buf must be big enough to contain all the samples (use av_samples_get_buffer_size() to compute its minimum size), otherwise the audio_data pointers will point to invalid data.

@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 @todo return minimum size in bytes required for the buffer in case of success at the next bump

extern (C) @nogc nothrow
int
av_samples_fill_arrays
(
ubyte** audio_data
,,
const(ubyte)* buf
,,,,
int align_
)

Meta