FFmpeg
Loading...
Searching...
No Matches
flacdsp_lpc_template.c File Reference
#include <stdint.h>
#include "libavutil/common.h"
#include "mathops.h"

Go to the source code of this file.

Macros

#define FUNC(n)
 
#define sum_type   int32_t
 
#define MUL(a, b)
 
#define CLIP(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

◆ FUNC

#define FUNC ( n)
Value:
#define _
#define AV_JOIN(a, b)
Definition macros.h:70
#define SAMPLE_SIZE
Definition flacdsp.c:27

Definition at line 29 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c().

◆ sum_type

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

◆ MUL

#define MUL ( a,
b )
Value:
((a) * (b))
int a
#define b
Definition input.c:43

Definition at line 37 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c().

◆ CLIP

#define CLIP ( x)
Value:
(x)

Definition at line 38 of file flacdsp_lpc_template.c.

Referenced by flac_lpc_encode_c(), and lpc_encode_unrolled().

◆ LPC1

#define LPC1 ( x)
Value:
{ \
int c = coefs[(x)-1]; \
p0 += MUL(c, s); \
s = smp[i-(x)+1]; \
p1 += MUL(c, s); \
}
#define MUL(X, Y)
Definition binkdsp.c:35
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define s(width, name)
Definition cbs_vp9.c:198
static double c[64]

Definition at line 41 of file flacdsp_lpc_template.c.

Referenced by lpc_encode_unrolled().

Function Documentation

◆ lpc_encode_unrolled()

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(), and lpc_encode_unrolled().

◆ 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.

Referenced by flac_lpc_encode_c().