|
kwave
18.07.70
|
#include "config.h"#include <stdio.h>#include <sys/types.h>#include <QtGlobal>#include "libkwave/Sample.h"#include "libkwave/SampleEncoderLinear.h"#include "libkwave/SampleFormat.h"#include "libkwave/Utils.h"
Go to the source code of this file.
Macros | |
| #define | MAKE_ENCODER(bits) |
Functions | |
| static void | encode_NULL (const sample_t *src, quint8 *dst, unsigned int count) |
| template<const unsigned int bits, const bool is_signed, const bool is_little_endian> | |
| void | encode_linear (const sample_t *src, quint8 *dst, unsigned int count) |
| #define MAKE_ENCODER | ( | bits | ) |
Definition at line 92 of file SampleEncoderLinear.cpp.
Referenced by Kwave::SampleEncoderLinear::SampleEncoderLinear().
| void encode_linear | ( | const sample_t * | src, |
| quint8 * | dst, | ||
| unsigned int | count | ||
| ) |
Template for encoding 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 samples in Kwave's format |
| dst | array that receives the raw data |
| count | the number of samples to be encoded |
Definition at line 50 of file SampleEncoderLinear.cpp.
References SAMPLE_BITS.
|
static |
Definition at line 31 of file SampleEncoderLinear.cpp.
Referenced by Kwave::SampleEncoderLinear::SampleEncoderLinear().
