FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
flacdsp_lpc_template.c File Reference
#include <stdint.h>
#include "libavutil/avutil.h"
#include "mathops.h"

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 FUNC (   n)    AV_JOIN(n ## _, SAMPLE_SIZE)

Definition at line 29 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c().

#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().

#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 CLIP (   x)    (x)

Definition at line 38 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c(), and lpc_encode_unrolled().

#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:631
#define MUL(a, b)
static double c[64]

Definition at line 41 of file flacdsp_lpc_template.c.

Referenced by lpc_encode_unrolled().

Function Documentation

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().

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.