|
MPD
0.20.18
|
Library for working with packed 24 bit samples. More...
#include <stdint.h>Go to the source code of this file.
Functions | |
| void | pcm_pack_24 (uint8_t *dest, const int32_t *src, const int32_t *src_end) |
| Converts padded 24 bit samples (4 bytes per sample) to packed 24 bit samples (3 bytes per sample). More... | |
| void | pcm_unpack_24 (int32_t *dest, const uint8_t *src, const uint8_t *src_end) |
| Converts packed 24 bit samples (3 bytes per sample) to padded 24 bit samples (4 bytes per sample). More... | |
Library for working with packed 24 bit samples.
Definition in file PcmPack.hxx.
| void pcm_pack_24 | ( | uint8_t * | dest, |
| const int32_t * | src, | ||
| const int32_t * | src_end | ||
| ) |
Converts padded 24 bit samples (4 bytes per sample) to packed 24 bit samples (3 bytes per sample).
This function can be used to convert a buffer in-place.
| dest | the destination buffer (array of triples) |
| src | the source buffer |
| void pcm_unpack_24 | ( | int32_t * | dest, |
| const uint8_t * | src, | ||
| const uint8_t * | src_end | ||
| ) |
Converts packed 24 bit samples (3 bytes per sample) to padded 24 bit samples (4 bytes per sample).
| dest | the destination buffer |
| src | the source buffer (array of triples) |
1.8.14