TUT HEVC Encoder
strategies-encode.h
Go to the documentation of this file.
1#ifndef STRATEGIES_ENCODE_H_
2#define STRATEGIES_ENCODE_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 "cu.h"
42#include "encoderstate.h"
43#include "global.h" // IWYU pragma: keep
44#include "kvazaar.h"
45#include "tables.h"
46
47
48// Declare function pointers.
49typedef void (encode_coeff_nxn_func)(encoder_state_t * const state,
50 cabac_data_t * const cabac,
51 const coeff_t *coeff,
52 uint8_t width,
53 uint8_t type,
54 int8_t scan_mode,
55 int8_t tr_skip,
56 double *bits_out);
57
58// Declare function pointers.
60
61int kvz_strategy_register_encode(void* opaque, uint8_t bitdepth);
62
63
64#define STRATEGIES_ENCODE_EXPORTS \
65 {"encode_coeff_nxn", (void**) &kvz_encode_coeff_nxn}, \
66
67
68
69#endif //STRATEGIES_ENCODE_H_
Coding Unit data structure and related functions.
Top level of the encoder implementation.
Header that is included in every other header.
int16_t coeff_t
Definition: global.h:115
This file defines the public API of Kvazaar when used as a library.
int kvz_strategy_register_encode(void *opaque, uint8_t bitdepth)
Definition: strategies-encode.c:44
void() encode_coeff_nxn_func(encoder_state_t *const state, cabac_data_t *const cabac, const coeff_t *coeff, uint8_t width, uint8_t type, int8_t scan_mode, int8_t tr_skip, double *bits_out)
Definition: strategies-encode.h:49
encode_coeff_nxn_func * kvz_encode_coeff_nxn
Definition: strategies-encode.c:41
Definition: cabac.h:54
Definition: encoderstate.h:274
Various tables.