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
19
enum
dct_type
{
20
DCT_I
= 0,
21
DCT_II
,
22
};
23
24
struct
dct_plan_16
{
25
struct
mat_matrix_16b
*
matrix
;
26
int
num_in
;
27
int
num_out
;
28
enum
dct_type
type
;
29
bool
ortho
;
30
};
31
32
int
mod_dct_initialize_16
(
struct
processing_module *mod,
struct
dct_plan_16
*dct);
33
34
int
mod_dct_free_16
(
struct
processing_module *mod,
struct
dct_plan_16
*dct);
35
36
#endif
/* __SOF_MATH_DCT_H__ */
mod_dct_free_16
int mod_dct_free_16(struct processing_module *mod, struct dct_plan_16 *dct)
dct_type
dct_type
Definition
dct.h:19
DCT_I
@ DCT_I
Definition
dct.h:20
DCT_II
@ DCT_II
Definition
dct.h:21
mod_dct_initialize_16
int mod_dct_initialize_16(struct processing_module *mod, struct dct_plan_16 *dct)
matrix.h
string.h
dct_plan_16
Definition
dct.h:24
dct_plan_16::num_in
int num_in
Definition
dct.h:26
dct_plan_16::type
enum dct_type type
Definition
dct.h:28
dct_plan_16::matrix
struct mat_matrix_16b * matrix
Definition
dct.h:25
dct_plan_16::num_out
int num_out
Definition
dct.h:27
dct_plan_16::ortho
bool ortho
Definition
dct.h:29
mat_matrix_16b
Definition
matrix.h:19
src
include
sof
math
dct.h
Generated by
1.15.0