Sound Open Firmware
Loading...
Searching...
No Matches
dct.h File Reference

Discrete Cosine Transform (DCT) matrix generation and planning. More...

Include dependency graph for dct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dct_plan_16
 

Macros

#define DCT_MATRIX_SIZE_MAX   42 /* Max matrix size where cos() argument fits Q7.24 */
 

Enumerations

enum  dct_type { DCT_I = 0 , DCT_II }
 

Functions

int mod_dct_initialize_16 (struct processing_module *mod, struct dct_plan_16 *dct)
 Initialize a 16-bit Discrete Cosine Transform plan and compute transform matrix.
 
int mod_dct_free_16 (struct processing_module *mod, struct dct_plan_16 *dct)
 Free memory allocated for a 16-bit DCT plan matrix.
 

Detailed Description

Discrete Cosine Transform (DCT) matrix generation and planning.

Macro Definition Documentation

◆ DCT_MATRIX_SIZE_MAX

#define DCT_MATRIX_SIZE_MAX   42 /* Max matrix size where cos() argument fits Q7.24 */

Enumeration Type Documentation

◆ dct_type

enum dct_type
Enumerator
DCT_I 
DCT_II 

Function Documentation

◆ mod_dct_free_16()

int mod_dct_free_16 ( struct processing_module *  mod,
struct dct_plan_16 *  dct 
)

Free memory allocated for a 16-bit DCT plan matrix.

Parameters
modProcessing module owning the plan.
dctPointer to DCT plan structure to free.
Returns
0 on success, negative error code on failure.

◆ mod_dct_initialize_16()

int mod_dct_initialize_16 ( struct processing_module *  mod,
struct dct_plan_16 *  dct 
)

Initialize a 16-bit Discrete Cosine Transform plan and compute transform matrix.

Parameters
modProcessing module requesting the plan (for memory allocation).
dctPointer to DCT plan configuration structure.
Returns
0 on success, negative error code on failure.