FFmpeg
Data Structures | Macros | Functions | Variables
tx_template.c File Reference

Go to the source code of this file.

Data Structures

struct  FFTabInitData
 

Macros

#define TABLE_DEF(name, size)   DECLARE_ALIGNED(32, TXSample, TX_TAB(ff_tx_tab_ ##name))[size]
 
#define SR_POW2_TABLES
 
#define SR_TABLE(len)   TABLE_DEF(len, len/4 + 1);
 
#define SR_TABLE(len)
 
#define SR_TABLE(len)   TX_TAB(ff_tx_init_tab_ ##len),
 
#define SR_TABLE(len)   AV_ONCE_INIT,
 
#define DECL_FFT5(NAME, D0, D1, D2, D3, D4)
 
#define DECL_FACTOR_S(n)
 
#define DECL_FACTOR_F(n)
 
#define BUTTERFLIES(a0, a1, a2, a3)
 
#define TRANSFORM(a0, a1, a2, a3, wre, wim)
 
#define DECL_SR_CODELET_DEF(n)
 
#define DECL_SR_CODELET(n, n2, n4)
 
#define DECL_COMP_IMDCT(N)
 
#define DECL_COMP_MDCT(N)
 
#define DECL_RDFT(name, inv)
 

Functions

SR_POW2_TABLES TABLE_DEF (53, 12)
 
 TABLE_DEF (7, 6)
 
 TABLE_DEF (9, 8)
 
static av_cold void TX_TAB() ff_tx_init_tab_53 (void)
 
static av_cold void TX_TAB() ff_tx_init_tab_7 (void)
 
static av_cold void TX_TAB() ff_tx_init_tab_9 (void)
 
av_cold void TX_TAB() ff_tx_init_tabs (int len)
 
static av_always_inline void fft3 (TXComplex *out, TXComplex *in, ptrdiff_t stride)
 
static av_always_inline void fft7 (TXComplex *out, TXComplex *in, ptrdiff_t stride)
 
static av_always_inline void fft9 (TXComplex *out, TXComplex *in, ptrdiff_t stride)
 
static av_always_inline void fft15 (TXComplex *out, TXComplex *in, ptrdiff_t stride)
 
static av_cold int TX_NAME() ff_tx_fft_factor_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_fft_sr_combine (TXComplex *z, const TXSample *cos, int len)
 
static av_cold int TX_NAME() ff_tx_fft_sr_codelet_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_fft2_ns (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_fft4_ns (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_fft8_ns (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_fft16_ns (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static av_cold int TX_NAME() ff_tx_fft_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static av_cold int TX_NAME() ff_tx_fft_inplace_small_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_fft (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_fft_inplace (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_fft_def)
 
static const FFTXCodelet TX_NAME (ff_tx_fft_inplace_small_def)
 
static const FFTXCodelet TX_NAME (ff_tx_fft_inplace_def)
 
static av_cold int TX_NAME() ff_tx_fft_init_naive_small (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_fft_naive (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_fft_naive_small (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_fft_naive_small_def)
 
static const FFTXCodelet TX_NAME (ff_tx_fft_naive_def)
 
static av_cold int TX_NAME() ff_tx_fft_pfa_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_fft_pfa (AVTXContext *s, void *_out, void *_in, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_fft_pfa_ns (AVTXContext *s, void *_out, void *_in, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_fft_pfa_def)
 
static const FFTXCodelet TX_NAME (ff_tx_fft_pfa_ns_def)
 
static av_cold int TX_NAME() ff_tx_mdct_naive_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_mdct_naive_fwd (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_mdct_naive_inv (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_mdct_naive_fwd_def)
 
static const FFTXCodelet TX_NAME (ff_tx_mdct_naive_inv_def)
 
static av_cold int TX_NAME() ff_tx_mdct_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_mdct_fwd (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_mdct_inv (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_mdct_fwd_def)
 
static const FFTXCodelet TX_NAME (ff_tx_mdct_inv_def)
 
static av_cold int TX_NAME() ff_tx_mdct_inv_full_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_mdct_inv_full (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_mdct_inv_full_def)
 
static av_cold int TX_NAME() ff_tx_mdct_pfa_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static av_cold int TX_NAME() ff_tx_rdft_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static const FFTXCodelet TX_NAME (ff_tx_rdft_r2c_def)
 
static const FFTXCodelet TX_NAME (ff_tx_rdft_c2r_def)
 
static av_cold int TX_NAME() ff_tx_dct_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_dctII (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_dctIII (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_dctII_def)
 
static const FFTXCodelet TX_NAME (ff_tx_dctIII_def)
 
int TX_TAB() ff_tx_mdct_gen_exp (AVTXContext *s, int *pre_tab)
 
const FFTXCodelet *const TX_NAME (ff_tx_codelet_list)[]
 

Variables

static SR_POW2_TABLES void(*const sr_tabs_init_funcs [])(void)
 
static AVOnce sr_tabs_init_once []
 
static const FFTabInitData nptwo_tabs_init_data []
 
static AVOnce nptwo_tabs_init_once []
 

Macro Definition Documentation

◆ TABLE_DEF

#define TABLE_DEF (   name,
  size 
)    DECLARE_ALIGNED(32, TXSample, TX_TAB(ff_tx_tab_ ##name))[size]

Definition at line 27 of file tx_template.c.

◆ SR_POW2_TABLES

#define SR_POW2_TABLES
Value:
SR_TABLE(8) \
SR_TABLE(16) \
SR_TABLE(32) \
SR_TABLE(64) \
SR_TABLE(128) \
SR_TABLE(256) \
SR_TABLE(512) \
SR_TABLE(1024) \
SR_TABLE(2048) \
SR_TABLE(4096) \
SR_TABLE(8192) \
SR_TABLE(16384) \
SR_TABLE(32768) \
SR_TABLE(65536) \
SR_TABLE(131072) \

Definition at line 30 of file tx_template.c.

◆ SR_TABLE [1/4]

#define SR_TABLE (   len)    TABLE_DEF(len, len/4 + 1);

Definition at line 63 of file tx_template.c.

◆ SR_TABLE [2/4]

#define SR_TABLE (   len)
Value:
static av_cold void TX_TAB(ff_tx_init_tab_ ##len)(void) \
{ \
double freq = 2*M_PI/len; \
TXSample *tab = TX_TAB(ff_tx_tab_ ##len); \
for (int i = 0; i < len/4; i++) \
*tab++ = RESCALE(cos(i*freq)); \
\
*tab = 0; \
}

Definition at line 63 of file tx_template.c.

◆ SR_TABLE [3/4]

#define SR_TABLE (   len)    TX_TAB(ff_tx_init_tab_ ##len),

Definition at line 63 of file tx_template.c.

◆ SR_TABLE [4/4]

#define SR_TABLE (   len)    AV_ONCE_INIT,

Definition at line 63 of file tx_template.c.

◆ DECL_FFT5

#define DECL_FFT5 (   NAME,
  D0,
  D1,
  D2,
  D3,
  D4 
)

Definition at line 208 of file tx_template.c.

◆ DECL_FACTOR_S

#define DECL_FACTOR_S (   n)
Value:
static void TX_NAME(ff_tx_fft##n)(AVTXContext *s, void *dst, \
void *src, ptrdiff_t stride) \
{ \
fft##n((TXComplex *)dst, (TXComplex *)src, stride / sizeof(TXComplex)); \
} \
static const FFTXCodelet TX_NAME(ff_tx_fft##n##_ns_def) = { \
.name = TX_NAME_STR("fft" #n "_ns"), \
.function = TX_NAME(ff_tx_fft##n), \
.type = TX_TYPE(FFT), \
AV_TX_UNALIGNED | FF_TX_PRESHUFFLE, \
.factors[0] = n, \
.nb_factors = 1, \
.min_len = n, \
.max_len = n, \
.prio = FF_TX_PRIO_BASE, \
};

Definition at line 493 of file tx_template.c.

◆ DECL_FACTOR_F

#define DECL_FACTOR_F (   n)
Value:
static const FFTXCodelet TX_NAME(ff_tx_fft##n##_fwd_def) = { \
.name = TX_NAME_STR("fft" #n "_fwd"), \
.function = TX_NAME(ff_tx_fft##n), \
.type = TX_TYPE(FFT), \
AV_TX_UNALIGNED | FF_TX_FORWARD_ONLY, \
.factors[0] = n, \
.nb_factors = 1, \
.min_len = n, \
.max_len = n, \
.prio = FF_TX_PRIO_BASE, \
};

Definition at line 514 of file tx_template.c.

◆ BUTTERFLIES

#define BUTTERFLIES (   a0,
  a1,
  a2,
  a3 
)
Value:
do { \
r0=a0.re; \
i0=a0.im; \
r1=a1.re; \
i1=a1.im; \
BF(t3, t5, t5, t1); \
BF(a2.re, a0.re, r0, t5); \
BF(a3.im, a1.im, i1, t3); \
BF(t4, t6, t2, t6); \
BF(a3.re, a1.re, r1, t4); \
BF(a2.im, a0.im, i0, t6); \
} while (0)

Definition at line 537 of file tx_template.c.

◆ TRANSFORM

#define TRANSFORM (   a0,
  a1,
  a2,
  a3,
  wre,
  wim 
)
Value:
do { \
CMUL(t1, t2, a2.re, a2.im, wre, -wim); \
CMUL(t5, t6, a3.re, a3.im, wre, wim); \
BUTTERFLIES(a0, a1, a2, a3); \
} while (0)

Definition at line 551 of file tx_template.c.

◆ DECL_SR_CODELET_DEF

#define DECL_SR_CODELET_DEF (   n)
Value:
static const FFTXCodelet TX_NAME(ff_tx_fft##n##_ns_def) = { \
.name = TX_NAME_STR("fft" #n "_ns"), \
.function = TX_NAME(ff_tx_fft##n##_ns), \
.type = TX_TYPE(FFT), \
AV_TX_UNALIGNED | FF_TX_PRESHUFFLE, \
.factors[0] = 2, \
.nb_factors = 1, \
.min_len = n, \
.max_len = n, \
.prio = FF_TX_PRIO_BASE, \
};

Definition at line 596 of file tx_template.c.

◆ DECL_SR_CODELET

#define DECL_SR_CODELET (   n,
  n2,
  n4 
)
Value:
static void TX_NAME(ff_tx_fft##n##_ns)(AVTXContext *s, void *_dst, \
void *_src, ptrdiff_t stride) \
{ \
TXComplex *src = _src; \
TXComplex *dst = _dst; \
const TXSample *cos = TX_TAB(ff_tx_tab_##n); \
TX_NAME(ff_tx_fft##n2##_ns)(s, dst, src, stride); \
TX_NAME(ff_tx_fft##n4##_ns)(s, dst + n4*2, src + n4*2, stride); \
TX_NAME(ff_tx_fft##n4##_ns)(s, dst + n4*3, src + n4*3, stride); \
TX_NAME(ff_tx_fft_sr_combine)(dst, cos, n4 >> 1); \
} \

Definition at line 612 of file tx_template.c.

◆ DECL_COMP_IMDCT

#define DECL_COMP_IMDCT (   N)

Definition at line 1468 of file tx_template.c.

◆ DECL_COMP_MDCT

#define DECL_COMP_MDCT (   N)

Definition at line 1530 of file tx_template.c.

◆ DECL_RDFT

#define DECL_RDFT (   name,
  inv 
)

Definition at line 1642 of file tx_template.c.

Function Documentation

◆ TABLE_DEF() [1/3]

SR_POW2_TABLES TABLE_DEF ( 53  ,
12   
)

◆ TABLE_DEF() [2/3]

TABLE_DEF ( ,
 
)

◆ TABLE_DEF() [3/3]

TABLE_DEF ( ,
 
)

◆ ff_tx_init_tab_53()

static av_cold void TX_TAB() ff_tx_init_tab_53 ( void  )
static

Definition at line 89 of file tx_template.c.

◆ ff_tx_init_tab_7()

static av_cold void TX_TAB() ff_tx_init_tab_7 ( void  )
static

Definition at line 108 of file tx_template.c.

◆ ff_tx_init_tab_9()

static av_cold void TX_TAB() ff_tx_init_tab_9 ( void  )
static

Definition at line 118 of file tx_template.c.

◆ ff_tx_init_tabs()

av_cold void TX_TAB() ff_tx_init_tabs ( int  len)

◆ fft3()

static av_always_inline void fft3 ( TXComplex out,
TXComplex in,
ptrdiff_t  stride 
)
static

Definition at line 171 of file tx_template.c.

Referenced by fft15().

◆ fft7()

static av_always_inline void fft7 ( TXComplex out,
TXComplex in,
ptrdiff_t  stride 
)
static

Definition at line 249 of file tx_template.c.

◆ fft9()

static av_always_inline void fft9 ( TXComplex out,
TXComplex in,
ptrdiff_t  stride 
)
static

Definition at line 337 of file tx_template.c.

◆ fft15()

static av_always_inline void fft15 ( TXComplex out,
TXComplex in,
ptrdiff_t  stride 
)
static

Definition at line 462 of file tx_template.c.

◆ ff_tx_fft_factor_init()

static av_cold int TX_NAME() ff_tx_fft_factor_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 475 of file tx_template.c.

◆ ff_tx_fft_sr_combine()

static void TX_NAME() ff_tx_fft_sr_combine ( TXComplex z,
const TXSample *  cos,
int  len 
)
inlinestatic

Definition at line 559 of file tx_template.c.

◆ ff_tx_fft_sr_codelet_init()

static av_cold int TX_NAME() ff_tx_fft_sr_codelet_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 585 of file tx_template.c.

◆ ff_tx_fft2_ns()

static void TX_NAME() ff_tx_fft2_ns ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 628 of file tx_template.c.

◆ ff_tx_fft4_ns()

static void TX_NAME() ff_tx_fft4_ns ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 640 of file tx_template.c.

Referenced by ff_tx_fft16_ns(), and ff_tx_fft8_ns().

◆ ff_tx_fft8_ns()

static void TX_NAME() ff_tx_fft8_ns ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 657 of file tx_template.c.

Referenced by ff_tx_fft16_ns().

◆ ff_tx_fft16_ns()

static void TX_NAME() ff_tx_fft16_ns ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 676 of file tx_template.c.

◆ ff_tx_fft_init()

static av_cold int TX_NAME() ff_tx_fft_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 721 of file tx_template.c.

Referenced by ff_tx_fft_inplace_small_init().

◆ ff_tx_fft_inplace_small_init()

static av_cold int TX_NAME() ff_tx_fft_inplace_small_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 747 of file tx_template.c.

◆ ff_tx_fft()

static void TX_NAME() ff_tx_fft ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 760 of file tx_template.c.

◆ ff_tx_fft_inplace()

static void TX_NAME() ff_tx_fft_inplace ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 777 of file tx_template.c.

◆ TX_NAME() [1/17]

static const FFTXCodelet TX_NAME ( ff_tx_fft_def  )
static

◆ TX_NAME() [2/17]

static const FFTXCodelet TX_NAME ( ff_tx_fft_inplace_small_def  )
static

◆ TX_NAME() [3/17]

static const FFTXCodelet TX_NAME ( ff_tx_fft_inplace_def  )
static

◆ ff_tx_fft_init_naive_small()

static av_cold int TX_NAME() ff_tx_fft_init_naive_small ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 843 of file tx_template.c.

◆ ff_tx_fft_naive()

static void TX_NAME() ff_tx_fft_naive ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 868 of file tx_template.c.

◆ ff_tx_fft_naive_small()

static void TX_NAME() ff_tx_fft_naive_small ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 895 of file tx_template.c.

◆ TX_NAME() [4/17]

static const FFTXCodelet TX_NAME ( ff_tx_fft_naive_small_def  )
static

◆ TX_NAME() [5/17]

static const FFTXCodelet TX_NAME ( ff_tx_fft_naive_def  )
static

◆ ff_tx_fft_pfa_init()

static av_cold int TX_NAME() ff_tx_fft_pfa_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 945 of file tx_template.c.

◆ ff_tx_fft_pfa()

static void TX_NAME() ff_tx_fft_pfa ( AVTXContext s,
void *  _out,
void *  _in,
ptrdiff_t  stride 
)
static

Definition at line 1055 of file tx_template.c.

◆ ff_tx_fft_pfa_ns()

static void TX_NAME() ff_tx_fft_pfa_ns ( AVTXContext s,
void *  _out,
void *  _in,
ptrdiff_t  stride 
)
static

Definition at line 1079 of file tx_template.c.

◆ TX_NAME() [6/17]

static const FFTXCodelet TX_NAME ( ff_tx_fft_pfa_def  )
static

◆ TX_NAME() [7/17]

static const FFTXCodelet TX_NAME ( ff_tx_fft_pfa_ns_def  )
static

◆ ff_tx_mdct_naive_init()

static av_cold int TX_NAME() ff_tx_mdct_naive_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 1129 of file tx_template.c.

◆ ff_tx_mdct_naive_fwd()

static void TX_NAME() ff_tx_mdct_naive_fwd ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 1141 of file tx_template.c.

◆ ff_tx_mdct_naive_inv()

static void TX_NAME() ff_tx_mdct_naive_inv ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 1162 of file tx_template.c.

◆ TX_NAME() [8/17]

static const FFTXCodelet TX_NAME ( ff_tx_mdct_naive_fwd_def  )
static

◆ TX_NAME() [9/17]

static const FFTXCodelet TX_NAME ( ff_tx_mdct_naive_inv_def  )
static

◆ ff_tx_mdct_init()

static av_cold int TX_NAME() ff_tx_mdct_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 1220 of file tx_template.c.

◆ ff_tx_mdct_fwd()

static void TX_NAME() ff_tx_mdct_fwd ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 1270 of file tx_template.c.

◆ ff_tx_mdct_inv()

static void TX_NAME() ff_tx_mdct_inv ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 1309 of file tx_template.c.

◆ TX_NAME() [10/17]

static const FFTXCodelet TX_NAME ( ff_tx_mdct_fwd_def  )
static

◆ TX_NAME() [11/17]

static const FFTXCodelet TX_NAME ( ff_tx_mdct_inv_def  )
static

◆ ff_tx_mdct_inv_full_init()

static av_cold int TX_NAME() ff_tx_mdct_inv_full_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 1369 of file tx_template.c.

◆ ff_tx_mdct_inv_full()

static void TX_NAME() ff_tx_mdct_inv_full ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 1389 of file tx_template.c.

◆ TX_NAME() [12/17]

static const FFTXCodelet TX_NAME ( ff_tx_mdct_inv_full_def  )
static

◆ ff_tx_mdct_pfa_init()

static av_cold int TX_NAME() ff_tx_mdct_pfa_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 1422 of file tx_template.c.

◆ ff_tx_rdft_init()

static av_cold int TX_NAME() ff_tx_rdft_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 1598 of file tx_template.c.

◆ TX_NAME() [13/17]

static const FFTXCodelet TX_NAME ( ff_tx_rdft_r2c_def  )
static

◆ TX_NAME() [14/17]

static const FFTXCodelet TX_NAME ( ff_tx_rdft_c2r_def  )
static

◆ ff_tx_dct_init()

static av_cold int TX_NAME() ff_tx_dct_init ( AVTXContext s,
const FFTXCodelet cd,
uint64_t  flags,
FFTXCodeletOptions opts,
int  len,
int  inv,
const void *  scale 
)
static

Definition at line 1726 of file tx_template.c.

◆ ff_tx_dctII()

static void TX_NAME() ff_tx_dctII ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 1769 of file tx_template.c.

◆ ff_tx_dctIII()

static void TX_NAME() ff_tx_dctIII ( AVTXContext s,
void *  _dst,
void *  _src,
ptrdiff_t  stride 
)
static

Definition at line 1829 of file tx_template.c.

◆ TX_NAME() [15/17]

static const FFTXCodelet TX_NAME ( ff_tx_dctII_def  )
static

◆ TX_NAME() [16/17]

static const FFTXCodelet TX_NAME ( ff_tx_dctIII_def  )
static

◆ ff_tx_mdct_gen_exp()

int TX_TAB() ff_tx_mdct_gen_exp ( AVTXContext s,
int pre_tab 
)

Definition at line 1900 of file tx_template.c.

Referenced by ff_tx_mdct_init(), and ff_tx_mdct_pfa_init().

◆ TX_NAME() [17/17]

const FFTXCodelet* const TX_NAME ( ff_tx_codelet_list  )

Variable Documentation

◆ sr_tabs_init_funcs

SR_POW2_TABLES void(*const sr_tabs_init_funcs[])(void)
static
Initial value:
= {
#define SR_TABLE(len)
}

Definition at line 77 of file tx_template.c.

Referenced by ff_tx_init_tabs().

◆ sr_tabs_init_once

AVOnce sr_tabs_init_once[]
static
Initial value:
= {
#define SR_TABLE(len)
}

Definition at line 83 of file tx_template.c.

Referenced by ff_tx_init_tabs().

◆ nptwo_tabs_init_data

const FFTabInitData nptwo_tabs_init_data[]
static
Initial value:
= {
{ TX_TAB(ff_tx_init_tab_53), { 15, 5, 3 } },
{ TX_TAB(ff_tx_init_tab_9), { 9 } },
{ TX_TAB(ff_tx_init_tab_7), { 7 } },
}

Definition at line 130 of file tx_template.c.

Referenced by ff_tx_init_tabs().

◆ nptwo_tabs_init_once

AVOnce nptwo_tabs_init_once[]
static
Initial value:

Definition at line 136 of file tx_template.c.

Referenced by ff_tx_init_tabs().

ff_tx_fft_sr_combine
static void TX_NAME() ff_tx_fft_sr_combine(TXComplex *z, const TXSample *cos, int len)
Definition: tx_template.c:559
AVTXContext
Definition: tx_priv.h:225
ff_tx_fft
static void TX_NAME() ff_tx_fft(AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
Definition: tx_template.c:760
SR_POW2_TABLES
#define SR_POW2_TABLES
Definition: tx_template.c:30
t1
#define t1
Definition: regdef.h:29
FF_TX_CPU_FLAGS_ALL
#define FF_TX_CPU_FLAGS_ALL
Definition: tx_priv.h:220
SR_TABLE
#define SR_TABLE(len)
Definition: tx_template.c:63
DECL_SR_CODELET_DEF
#define DECL_SR_CODELET_DEF(n)
Definition: tx_template.c:596
tab
static const struct twinvq_data tab
Definition: twinvq_data.h:10345
TX_NAME
static const FFTXCodelet TX_NAME(ff_tx_fft_def)
FFTXCodelet::type
enum AVTXType type
Definition: tx_priv.h:192
a1
#define a1
Definition: regdef.h:47
av_cold
#define av_cold
Definition: attributes.h:90
s
#define s(width, name)
Definition: cbs_vp9.c:256
ff_tx_fft_factor_init
static av_cold int TX_NAME() ff_tx_fft_factor_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
Definition: tx_template.c:475
FF_TX_FORWARD_ONLY
#define FF_TX_FORWARD_ONLY
Definition: tx_priv.h:148
FFTXCodelet::cpu_flags
int cpu_flags
Definition: tx_priv.h:217
DECL_FACTOR_S
#define DECL_FACTOR_S(n)
Definition: tx_template.c:493
AV_ONCE_INIT
#define AV_ONCE_INIT
Definition: thread.h:182
t5
#define t5
Definition: regdef.h:33
t6
#define t6
Definition: regdef.h:34
AV_TX_INPLACE
@ AV_TX_INPLACE
Allows for in-place transformations, where input == output.
Definition: tx.h:137
FF_TX_OUT_OF_PLACE
#define FF_TX_OUT_OF_PLACE
Definition: tx_priv.h:144
FF_TX_PRESHUFFLE
#define FF_TX_PRESHUFFLE
Definition: tx_priv.h:146
ff_tx_fft_sr_codelet_init
static av_cold int TX_NAME() ff_tx_fft_sr_codelet_init(AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
Definition: tx_template.c:585
ff_tx_init_tab_53
static av_cold void TX_TAB() ff_tx_init_tab_53(void)
Definition: tx_template.c:89
FF_TX_PRIO_BASE
@ FF_TX_PRIO_BASE
Definition: tx_priv.h:152
for
for(k=2;k<=8;++k)
Definition: h264pred_template.c:425
a0
#define a0
Definition: regdef.h:46
M_PI
#define M_PI
Definition: mathematics.h:52
TXComplex
void TXComplex
Definition: tx_priv.h:61
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:269
t4
#define t4
Definition: regdef.h:32
t3
#define t3
Definition: regdef.h:31
a2
#define a2
Definition: regdef.h:48
len
int len
Definition: vorbis_enc_data.h:426
stride
#define stride
Definition: h264pred_template.c:537
ff_tx_init_tab_7
static av_cold void TX_TAB() ff_tx_init_tab_7(void)
Definition: tx_template.c:108
ff_tx_init_tab_9
static av_cold void TX_TAB() ff_tx_init_tab_9(void)
Definition: tx_template.c:118
FFTXCodelet
Definition: tx_priv.h:189
t2
#define t2
Definition: regdef.h:30
FFTXCodelet::name
const char * name
Definition: tx_priv.h:190
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
a3
#define a3
Definition: regdef.h:49
TX_TYPE
#define TX_TYPE
Definition: aacdec.c:36