TUT HEVC Encoder
strategies-intra.h
Go to the documentation of this file.
1#ifndef STRATEGIES_INTRA_H_
2#define STRATEGIES_INTRA_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 "kvazaar.h"
43
44
45typedef void (angular_pred_func)(
46 const int_fast8_t log2_width,
47 const int_fast8_t intra_mode,
48 const kvz_pixel *const in_ref_above,
49 const kvz_pixel *const in_ref_left,
50 kvz_pixel *const dst);
51
53 const int_fast8_t log2_width,
54 const kvz_pixel *const ref_top,
55 const kvz_pixel *const ref_left,
56 kvz_pixel *const dst);
57
59 const int_fast8_t log2_width,
60 const kvz_pixel *const ref_top,
61 const kvz_pixel *const ref_left,
62 kvz_pixel *const out_block);
63
64// Declare function pointers.
68
69int kvz_strategy_register_intra(void* opaque, uint8_t bitdepth);
70
71
72#define STRATEGIES_INTRA_EXPORTS \
73 {"angular_pred", (void**) &kvz_angular_pred}, \
74 {"intra_pred_planar", (void**) &kvz_intra_pred_planar}, \
75 {"intra_pred_filtered_dc", (void**) &kvz_intra_pred_filtered_dc}, \
76
77
78
79#endif //STRATEGIES_INTRA_H_
Header that is included in every other header.
This file defines the public API of Kvazaar when used as a library.
uint8_t kvz_pixel
Definition: kvazaar.h:95
void() intra_pred_filtered_dc_func(const int_fast8_t log2_width, const kvz_pixel *const ref_top, const kvz_pixel *const ref_left, kvz_pixel *const out_block)
Definition: strategies-intra.h:58
void() angular_pred_func(const int_fast8_t log2_width, const int_fast8_t intra_mode, const kvz_pixel *const in_ref_above, const kvz_pixel *const in_ref_left, kvz_pixel *const dst)
Definition: strategies-intra.h:45
int kvz_strategy_register_intra(void *opaque, uint8_t bitdepth)
Definition: strategies-intra.c:45
intra_pred_planar_func * kvz_intra_pred_planar
Definition: strategies-intra.c:42
angular_pred_func * kvz_angular_pred
Definition: strategies-intra.c:41
intra_pred_filtered_dc_func * kvz_intra_pred_filtered_dc
Definition: strategies-intra.c:43
void() intra_pred_planar_func(const int_fast8_t log2_width, const kvz_pixel *const ref_top, const kvz_pixel *const ref_left, kvz_pixel *const dst)
Definition: strategies-intra.h:52