TUT HEVC Encoder
Loading...
Searching...
No Matches
strategies-dct.h
Go to the documentation of this file.
1#ifndef STRATEGIES_DCT_H_
2#define STRATEGIES_DCT_H_
3/*****************************************************************************
4 * This file is part of Kvazaar HEVC encoder.
5 *
6 * Copyright (c) 2021, Tampere University, ITU/ISO/IEC, project contributors
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without modification,
10 * are permitted provided that the following conditions are met:
11 *
12 * * Redistributions of source code must retain the above copyright notice, this
13 * list of conditions and the following disclaimer.
14 *
15 * * Redistributions in binary form must reproduce the above copyright notice, this
16 * list of conditions and the following disclaimer in the documentation and/or
17 * other materials provided with the distribution.
18 *
19 * * Neither the name of the Tampere University or ITU/ISO/IEC nor the names of its
20 * contributors may be used to endorse or promote products derived from
21 * this software without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33 ****************************************************************************/
34
41#include "global.h" // IWYU pragma: keep
42#include "cu.h"
43
44typedef void (dct_func)(int8_t bitdepth, const int16_t *input, int16_t *output);
45
46
47// Declare function pointers.
49
50extern dct_func * kvz_dct_4x4;
51extern dct_func * kvz_dct_8x8;
52extern dct_func * kvz_dct_16x16;
53extern dct_func * kvz_dct_32x32;
54
56
57extern dct_func * kvz_idct_4x4;
58extern dct_func * kvz_idct_8x8;
61
62
63int kvz_strategy_register_dct(void* opaque, uint8_t bitdepth);
66
67
68
69#define STRATEGIES_DCT_EXPORTS \
70 {"fast_forward_dst_4x4", (void**) &kvz_fast_forward_dst_4x4}, \
71 \
72 {"dct_4x4", (void**) &kvz_dct_4x4}, \
73 {"dct_8x8", (void**) &kvz_dct_8x8}, \
74 {"dct_16x16", (void**) &kvz_dct_16x16}, \
75 {"dct_32x32", (void**) &kvz_dct_32x32}, \
76 \
77 {"fast_inverse_dst_4x4", (void**) &kvz_fast_inverse_dst_4x4}, \
78 \
79 {"idct_4x4", (void**)&kvz_idct_4x4}, \
80 {"idct_8x8", (void**)&kvz_idct_8x8}, \
81 {"idct_16x16", (void**)&kvz_idct_16x16}, \
82 {"idct_32x32", (void**)&kvz_idct_32x32}, \
83
84
85
86#endif //STRATEGIES_DCT_H_
Coding Unit data structure and related functions.
cu_type_t
Definition cu.h:50
Header that is included in every other header.
color_t
Definition global.h:302
#define MAX_TILES_PER_DIM
Definition global.h:232
dct_func * kvz_get_idct_func(int8_t width, color_t color, cu_type_t type)
Get a function that performs the inverse transform for a block.
Definition strategies-dct.c:107
dct_func * kvz_dct_8x8
Definition strategies-dct.c:44
dct_func * kvz_get_dct_func(int8_t width, color_t color, cu_type_t type)
Get a function that performs the transform for a block.
Definition strategies-dct.c:78
dct_func * kvz_idct_16x16
Definition strategies-dct.c:52
dct_func * kvz_fast_forward_dst_4x4
Definition strategies-dct.c:41
dct_func * kvz_fast_inverse_dst_4x4
Definition strategies-dct.c:48
dct_func * kvz_idct_32x32
Definition strategies-dct.c:53
dct_func * kvz_dct_4x4
Definition strategies-dct.c:43
int kvz_strategy_register_dct(void *opaque, uint8_t bitdepth)
Definition strategies-dct.c:56
dct_func * kvz_dct_16x16
Definition strategies-dct.c:45
dct_func * kvz_idct_4x4
Definition strategies-dct.c:50
void() dct_func(int8_t bitdepth, const int16_t *input, int16_t *output)
Definition strategies-dct.h:44
dct_func * kvz_idct_8x8
Definition strategies-dct.c:51
dct_func * kvz_dct_32x32
Definition strategies-dct.c:46