Sound Open Firmware
Loading...
Searching...
No Matches
dct.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2022 Intel Corporation. All rights reserved.
4 *
5 * Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
6 */
7
14#ifndef __SOF_MATH_DCT_H__
15#define __SOF_MATH_DCT_H__
16
17#include <sof/math/matrix.h>
18#include <stdint.h>
19#include <string.h>
20
21#define DCT_MATRIX_SIZE_MAX 42 /* Max matrix size where cos() argument fits Q7.24 */
22
24 DCT_I = 0,
26};
27
30 int num_in;
33 bool ortho;
34};
35
43
50int mod_dct_free_16(struct processing_module *mod, struct dct_plan_16 *dct);
51
52#endif /* __SOF_MATH_DCT_H__ */
int mod_dct_free_16(struct processing_module *mod, struct dct_plan_16 *dct)
Free memory allocated for a 16-bit DCT plan matrix.
dct_type
Definition dct.h:23
@ DCT_I
Definition dct.h:24
@ DCT_II
Definition dct.h:25
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.
Matrix math routines, allocation, multiplication, and transposition.
Definition dct.h:28
int num_in
Definition dct.h:30
enum dct_type type
Definition dct.h:32
struct mat_matrix_16b * matrix
Definition dct.h:29
int num_out
Definition dct.h:31
bool ortho
Definition dct.h:33
Definition matrix.h:23
Definition base.h:103