forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdct.h
More file actions
34 lines (26 loc) · 667 Bytes
/
dct.h
File metadata and controls
34 lines (26 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2022 Intel Corporation. All rights reserved.
*
* Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
*/
/* Matrix calculation related functions */
#ifndef __SOF_MATH_DCT_H__
#define __SOF_MATH_DCT_H__
#include <sof/math/matrix.h>
#include <stdint.h>
#include <string.h>
#define DCT_MATRIX_SIZE_MAX 42 /* Max matrix size where cos() argument fits Q7.24 */
enum dct_type {
DCT_I = 0,
DCT_II,
};
struct dct_plan_16 {
struct mat_matrix_16b *matrix;
int num_in;
int num_out;
enum dct_type type;
bool ortho;
};
int dct_initialize_16(struct dct_plan_16 *dct);
#endif /* __SOF_MATH_DCT_H__ */