|
kwave
18.07.70
|
#include "config.h"#include <stdio.h>#include <QtGlobal>#include "libkwave/Sample.h"#include "libkwave/SampleFormat.h"#include "libkwave/Utils.h"#include "SampleDecoderLinear.h"
Go to the source code of this file.
Macros | |
| #define | MAKE_DECODER(bits) |
Functions | |
| static void | decode_NULL (const quint8 *src, sample_t *dst, unsigned int count) |
| static quint32 | shl (const quint32 v, const int s) |
| template<const unsigned int bits, const bool is_signed, const bool is_little_endian> | |
| void | decode_linear (const quint8 *src, sample_t *dst, unsigned int count) |
| #define MAKE_DECODER | ( | bits | ) |
Definition at line 102 of file SampleDecoderLinear.cpp.
Referenced by Kwave::SampleDecoderLinear::SampleDecoderLinear().
| void decode_linear | ( | const quint8 * | src, |
| sample_t * | dst, | ||
| unsigned int | count | ||
| ) |
Template for decoding a buffer with linear samples. The tricky part is done in the compiler which optimizes away all unused parts of current variant and does nice loop optimizing!
| src | array with raw data |
| dst | array that receives the samples in Kwave's format |
| count | the number of samples to be decoded |
Definition at line 63 of file SampleDecoderLinear.cpp.
References SAMPLE_BITS, and shl().

|
static |
Definition at line 31 of file SampleDecoderLinear.cpp.
References SAMPLE_BITS, and Kwave::toInt().

|
inlinestatic |
Definition at line 42 of file SampleDecoderLinear.cpp.
Referenced by decode_linear().
