FFmpeg
Data Structures | Macros | Functions | Variables
cbrt_data.h File Reference
#include <stdint.h>
#include "config.h"

Go to the source code of this file.

Data Structures

union  CBRT
 

Macros

#define LUT_SIZE   (1 << 13)
 
#define BUILD_TABLES   !CONFIG_HARDCODED_TABLES
 
#define TMP_LUT_SIZE   (LUT_SIZE / 2)
 
#define ff_cbrt_tab   ff_cbrt_tab_internal.cbrt_tab
 
#define ff_cbrt_tab_fixed   ff_cbrt_tab_internal_fixed.cbrt_tab
 

Functions

void ff_cbrt_tableinit (void)
 
void ff_cbrt_tableinit_fixed (void)
 
void ff_cbrt_dbl_tableinit (double tmp_lut[TMP_LUT_SIZE])
 Creates a LUT (of doubles) for the powers of the odd integers: tmp_lut[idx] will be set to (2 * idx + 1)^{4/3}. More...
 

Variables

union CBRT ff_cbrt_tab_internal
 
union CBRT ff_cbrt_tab_internal_fixed
 

Macro Definition Documentation

◆ LUT_SIZE

#define LUT_SIZE   (1 << 13)

Definition at line 26 of file cbrt_data.h.

◆ BUILD_TABLES

#define BUILD_TABLES   !CONFIG_HARDCODED_TABLES

Definition at line 30 of file cbrt_data.h.

◆ TMP_LUT_SIZE

#define TMP_LUT_SIZE   (LUT_SIZE / 2)

Definition at line 42 of file cbrt_data.h.

◆ ff_cbrt_tab

#define ff_cbrt_tab   ff_cbrt_tab_internal.cbrt_tab

Definition at line 54 of file cbrt_data.h.

◆ ff_cbrt_tab_fixed

#define ff_cbrt_tab_fixed   ff_cbrt_tab_internal_fixed.cbrt_tab

Definition at line 55 of file cbrt_data.h.

Function Documentation

◆ ff_cbrt_tableinit()

void ff_cbrt_tableinit ( void  )

Definition at line 42 of file cbrt_tablegen.h.

Referenced by init_tables_float_fn(), and main().

◆ ff_cbrt_tableinit_fixed()

void ff_cbrt_tableinit_fixed ( void  )

Referenced by init_tables_fixed_fn().

◆ ff_cbrt_dbl_tableinit()

void ff_cbrt_dbl_tableinit ( double  tmp_lut[TMP_LUT_SIZE])

Creates a LUT (of doubles) for the powers of the odd integers: tmp_lut[idx] will be set to (2 * idx + 1)^{4/3}.

Definition at line 31 of file cbrt_tablegen_common.c.

Referenced by ff_cbrt_tableinit().

Variable Documentation

◆ ff_cbrt_tab_internal

union CBRT ff_cbrt_tab_internal

Referenced by ff_cbrt_tableinit().

◆ ff_cbrt_tab_internal_fixed

union CBRT ff_cbrt_tab_internal_fixed