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
8/* Matrix calculation related functions */
9
10#ifndef __SOF_MATH_DCT_H__
11#define __SOF_MATH_DCT_H__
12
13#include <sof/math/matrix.h>
14#include <stdint.h>
15#include <string.h>
16
17#define DCT_MATRIX_SIZE_MAX 42 /* Max matrix size where cos() argument fits Q7.24 */
18
20 DCT_I = 0,
22};
23
26 int num_in;
29 bool ortho;
30};
31
32int mod_dct_initialize_16(struct processing_module *mod, struct dct_plan_16 *dct);
33
34int mod_dct_free_16(struct processing_module *mod, struct dct_plan_16 *dct);
35
36#endif /* __SOF_MATH_DCT_H__ */
int mod_dct_free_16(struct processing_module *mod, struct dct_plan_16 *dct)
dct_type
Definition dct.h:19
@ DCT_I
Definition dct.h:20
@ DCT_II
Definition dct.h:21
int mod_dct_initialize_16(struct processing_module *mod, struct dct_plan_16 *dct)
Definition dct.h:24
int num_in
Definition dct.h:26
enum dct_type type
Definition dct.h:28
struct mat_matrix_16b * matrix
Definition dct.h:25
int num_out
Definition dct.h:27
bool ortho
Definition dct.h:29
Definition matrix.h:19