flacdsp_lpc_template.c File Reference
#include <stdint.h>
#include "libavutil/avutil.h"
#include "mathops.h"
Include dependency graph for flacdsp_lpc_template.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FUNC(n)   AV_JOIN(n ## _, SAMPLE_SIZE)
 
#define sum_type   int32_t
 
#define MUL(a, b)   ((a) * (b))
 
#define CLIP(x)   (x)
 
#define LPC1(x)
 

Functions

static av_always_inline void FUNC() lpc_encode_unrolled (int32_t *res, const int32_t *smp, int len, int order, const int32_t *coefs, int shift, int big)
 
static void FUNC() flac_lpc_encode_c (int32_t *res, const int32_t *smp, int len, int order, const int32_t *coefs, int shift)
 

Macro Definition Documentation

#define CLIP (   x)    (x)

Definition at line 38 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c(), and lpc_encode_unrolled().

#define FUNC (   n)    AV_JOIN(n ## _, SAMPLE_SIZE)

Definition at line 29 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c().

#define LPC1 (   x)
Value:
{ \
int c = coefs[(x)-1]; \
p0 += MUL(c, s); \
s = smp[i-(x)+1]; \
p1 += MUL(c, s); \
}
const char * s
Definition: avisynth_c.h:668
Discrete Time axis x
synthesis window for stochastic i
#define MUL(a, b)
static double c[64]

Definition at line 41 of file flacdsp_lpc_template.c.

Referenced by lpc_encode_unrolled().

#define MUL (   a,
  b 
)    ((a) * (b))

Definition at line 37 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c(), and idctRowCondDC().

#define sum_type   int32_t

Definition at line 36 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c(), and lpc_encode_unrolled().

Function Documentation

static void FUNC() flac_lpc_encode_c ( int32_t res,
const int32_t smp,
int  len,
int  order,
const int32_t coefs,
int  shift 
)
static

Definition at line 108 of file flacdsp_lpc_template.c.

static av_always_inline void FUNC() lpc_encode_unrolled ( int32_t res,
const int32_t smp,
int  len,
int  order,
const int32_t coefs,
int  shift,
int  big 
)
static

Definition at line 48 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c().