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(n, inv)
 
#define DECL_RDFT_HALF(n, mode, mod2)
 

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 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)
 
static av_cold int TX_NAME() ff_tx_dcstI_init (AVTXContext *s, const FFTXCodelet *cd, uint64_t flags, FFTXCodeletOptions *opts, int len, int inv, const void *scale)
 
static void TX_NAME() ff_tx_dctI (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static void TX_NAME() ff_tx_dstI (AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
 
static const FFTXCodelet TX_NAME (ff_tx_dctI_def)
 
static const FFTXCodelet TX_NAME (ff_tx_dstI_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) \
SR_TABLE(262144) \
SR_TABLE(524288) \
SR_TABLE(1048576) \
SR_TABLE(2097152) \

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 67 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 67 of file tx_template.c.

◆ SR_TABLE [3/4]

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

Definition at line 67 of file tx_template.c.

◆ SR_TABLE [4/4]

#define SR_TABLE (   len)    AV_ONCE_INIT,

Definition at line 67 of file tx_template.c.

◆ DECL_FFT5

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

Definition at line 213 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 498 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 519 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 542 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 556 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 601 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 617 of file tx_template.c.

◆ DECL_COMP_IMDCT

#define DECL_COMP_IMDCT (   N)

Definition at line 1477 of file tx_template.c.

◆ DECL_COMP_MDCT

#define DECL_COMP_MDCT (   N)

Definition at line 1539 of file tx_template.c.

◆ DECL_RDFT

#define DECL_RDFT (   n,
  inv 
)

Definition at line 1661 of file tx_template.c.

◆ DECL_RDFT_HALF

#define DECL_RDFT_HALF (   n,
  mode,
  mod2 
)

Definition at line 1730 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 93 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 112 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 122 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 175 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 254 of file tx_template.c.

◆ fft9()

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

Definition at line 342 of file tx_template.c.

◆ fft15()

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

Definition at line 467 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 480 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 564 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 590 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 633 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 645 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 662 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 681 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 730 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 756 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 769 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 786 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 852 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 877 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 904 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 954 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 1064 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 1088 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 1138 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 1150 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 1171 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 1229 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 1279 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 1318 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 1378 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 1398 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 1431 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 1607 of file tx_template.c.

◆ 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 1836 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 1879 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 1939 of file tx_template.c.

◆ TX_NAME() [13/17]

static const FFTXCodelet TX_NAME ( ff_tx_dctII_def  )
static

◆ TX_NAME() [14/17]

static const FFTXCodelet TX_NAME ( ff_tx_dctIII_def  )
static

◆ ff_tx_dcstI_init()

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

Definition at line 2010 of file tx_template.c.

◆ ff_tx_dctI()

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

Definition at line 2042 of file tx_template.c.

◆ ff_tx_dstI()

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

Definition at line 2060 of file tx_template.c.

◆ TX_NAME() [15/17]

static const FFTXCodelet TX_NAME ( ff_tx_dctI_def  )
static

◆ TX_NAME() [16/17]

static const FFTXCodelet TX_NAME ( ff_tx_dstI_def  )
static

◆ ff_tx_mdct_gen_exp()

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

Definition at line 2111 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 81 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 87 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 134 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 140 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:564
AVTXContext
Definition: tx_priv.h:235
ff_tx_fft
static void TX_NAME() ff_tx_fft(AVTXContext *s, void *_dst, void *_src, ptrdiff_t stride)
Definition: tx_template.c:769
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:230
SR_TABLE
#define SR_TABLE(len)
Definition: tx_template.c:67
DECL_SR_CODELET_DEF
#define DECL_SR_CODELET_DEF(n)
Definition: tx_template.c:601
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:202
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:198
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:480
FF_TX_FORWARD_ONLY
#define FF_TX_FORWARD_ONLY
Definition: tx_priv.h:158
FFTXCodelet::cpu_flags
int cpu_flags
Definition: tx_priv.h:227
DECL_FACTOR_S
#define DECL_FACTOR_S(n)
Definition: tx_template.c:498
AV_ONCE_INIT
#define AV_ONCE_INIT
Definition: thread.h:201
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:161
FF_TX_OUT_OF_PLACE
#define FF_TX_OUT_OF_PLACE
Definition: tx_priv.h:154
FF_TX_PRESHUFFLE
#define FF_TX_PRESHUFFLE
Definition: tx_priv.h:156
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:590
ff_tx_init_tab_53
static av_cold void TX_TAB() ff_tx_init_tab_53(void)
Definition: tx_template.c:93
FF_TX_PRIO_BASE
@ FF_TX_PRIO_BASE
Definition: tx_priv.h:162
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:67
TXComplex
void TXComplex
Definition: tx_priv.h:65
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:255
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:112
ff_tx_init_tab_9
static av_cold void TX_TAB() ff_tx_init_tab_9(void)
Definition: tx_template.c:122
FFTXCodelet
Definition: tx_priv.h:199
t2
#define t2
Definition: regdef.h:30
FFTXCodelet::name
const char * name
Definition: tx_priv.h:200
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