|
| template<class SrcType, class SrcByteOrder, class DstType, class DstByteOrder> |
| static void | convert_sample (const SrcType *src, DstType *dst) |
| | Converts a sample from one format to another.
|
| template<class SrcType, class SrcByteOrder, class SrcInterleaving, class DstType, class DstByteOrder, class DstInterleaving> |
| static void | convert (const SrcType *src, const size_t src_size, DstType *dst, const size_t dst_size, const size_t num_channels) |
| | Converts audio data from one format to another and converts interleaving and byte order.
|
| template<class SrcType, class SrcByteOrder, class SrcInterleaving, class DstType, class DstByteOrder> |
| static void | convert (const SrcType *src, const size_t num_frames, const size_t num_channels, DstType *const *dst, const size_t src_start_frame=0, const size_t dst_start_frame=0) |
| | Converts audio data from one format to another and converts interleaving and byte order.
|
| template<class SrcType, class SrcByteOrder, class DstType, class DstByteOrder, class DstInterleaving> |
| static void | convert (const SrcType *const *src, const size_t num_frames, const size_t num_channels, DstType *dst, const size_t src_start_frame, const size_t dst_start_frame=0) |
| | Converts audio data from one format to another and converts interleaving and byte order.
|
| static void | de_interleave (const BufferView< uint8_t > input_buffer, const BufferView< uint8_t > output_buffer, const size_t num_channels, const size_t bytes_per_sample) |
| | Converts interleaved audio data to non-interleaved audio data.
|
| static void | interleave (const BufferView< uint8_t > input_buffer, const BufferView< uint8_t > output_buffer, const size_t num_channels, const size_t bytes_per_sample, const size_t num_frames) |
| | Converts non-interleaved audio data to interleaved audio data.
|
Definition at line 39 of file audio_data.hpp.
template<class SrcType, class SrcByteOrder, class DstType, class DstByteOrder, class DstInterleaving>
| void rav::AudioData::convert |
( |
const SrcType *const * | src, |
|
|
const size_t | num_frames, |
|
|
const size_t | num_channels, |
|
|
DstType * | dst, |
|
|
const size_t | src_start_frame, |
|
|
const size_t | dst_start_frame = 0 ) |
|
inlinestatic |
Converts audio data from one format to another and converts interleaving and byte order.
- Template Parameters
-
| SrcType | The source sample format. |
| SrcByteOrder | The source byte order. One of the structs in the byte_order namespace. |
| DstType | The destination sample format. |
| DstByteOrder | The destination byte order. One of the structs in the byte_order namespace. |
| DstInterleaving | The destination interleaving. One of the structs in the interleaving namespace. |
- Parameters
-
| src | The source data. |
| num_frames | The number of frames in the audio data. |
| num_channels | The number of channels in the audio data. |
| dst | The destination data. |
| src_start_frame | The starting frame in the source data. |
| dst_start_frame | The starting frame in the destination data. |
- Returns
- True if the conversion was successful, false otherwise.
Definition at line 400 of file audio_data.hpp.
template<class SrcType, class SrcByteOrder, class SrcInterleaving, class DstType, class DstByteOrder>
| void rav::AudioData::convert |
( |
const SrcType * | src, |
|
|
const size_t | num_frames, |
|
|
const size_t | num_channels, |
|
|
DstType *const * | dst, |
|
|
const size_t | src_start_frame = 0, |
|
|
const size_t | dst_start_frame = 0 ) |
|
inlinestatic |
Converts audio data from one format to another and converts interleaving and byte order.
- Template Parameters
-
| SrcType | The source sample format. |
| SrcByteOrder | The source byte order. One of the structs in the byte_order namespace. |
| SrcInterleaving | The source interleaving. One of the structs in the interleaving namespace. |
| DstType | The destination sample format. |
| DstByteOrder | The destination byte order. One of the structs in the byte_order namespace. |
- Parameters
-
| src | The source data. |
| num_frames | The size of the source data. |
| num_channels | The number of channels in the audio data. |
| dst | The destination data. |
| src_start_frame | The starting frame in the source data. |
| dst_start_frame | The starting frame in the destination data. |
- Returns
- True if the conversion was successful, false otherwise.
Definition at line 354 of file audio_data.hpp.
template<class SrcType, class SrcByteOrder, class SrcInterleaving, class DstType, class DstByteOrder, class DstInterleaving>
| void rav::AudioData::convert |
( |
const SrcType * | src, |
|
|
const size_t | src_size, |
|
|
DstType * | dst, |
|
|
const size_t | dst_size, |
|
|
const size_t | num_channels ) |
|
inlinestatic |
Converts audio data from one format to another and converts interleaving and byte order.
- Template Parameters
-
| SrcType | The source sample format. |
| SrcByteOrder | The source byte order. One of the structs in the byte_order namespace. |
| SrcInterleaving | The source interleaving. One of the structs in the interleaving namespace. |
| DstType | The destination sample format. |
| DstByteOrder | The destination byte order. One of the structs in the byte_order namespace. |
| DstInterleaving | The destination interleaving. One of the structs in the interleaving namespace. |
- Parameters
-
| src | The source data. |
| src_size | The size of the source data. |
| dst | The destination data. |
| dst_size | The size of the destination data. |
| num_channels | The number of channels in the audio data. |
- Returns
- True if the conversion was successful, false otherwise.
Definition at line 272 of file audio_data.hpp.
template<class SrcType, class SrcByteOrder, class DstType, class DstByteOrder>
| void rav::AudioData::convert_sample |
( |
const SrcType * | src, |
|
|
DstType * | dst ) |
|
inlinestatic |
Converts a sample from one format to another.
- Template Parameters
-
| SrcType | The source sample format. One of the structs in the format namespace. |
| SrcByteOrder | The source byte order. One of the structs in the byte_order namespace. |
| DstType | The destination sample format. One of the structs in the format namespace. |
| DstByteOrder | The destination byte order. One of the structs in the byte_order namespace. |
- Parameters
-
| src | The source data. |
| dst | The destination data. |
Definition at line 179 of file audio_data.hpp.