TUT HEVC Encoder
Loading...
Searching...
No Matches
encode_coding_tree.h
Go to the documentation of this file.
1#ifndef ENCODE_CODING_TREE_H_
2#define ENCODE_CODING_TREE_H_
3
4/*****************************************************************************
5 * This file is part of Kvazaar HEVC encoder.
6 *
7 * Copyright (c) 2021, Tampere University, ITU/ISO/IEC, project contributors
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without modification,
11 * are permitted provided that the following conditions are met:
12 *
13 * * Redistributions of source code must retain the above copyright notice, this
14 * list of conditions and the following disclaimer.
15 *
16 * * Redistributions in binary form must reproduce the above copyright notice, this
17 * list of conditions and the following disclaimer in the documentation and/or
18 * other materials provided with the distribution.
19 *
20 * * Neither the name of the Tampere University or ITU/ISO/IEC nor the names of its
21 * contributors may be used to endorse or promote products derived from
22 * this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
28 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29 * INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON
31 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 * INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS
34 ****************************************************************************/
35
41#include "encoderstate.h"
42#include "global.h"
43
45 uint16_t x_ctb,
46 uint16_t y_ctb,
47 uint8_t depth);
48
49void kvz_encode_mvd(encoder_state_t * const state,
50 cabac_data_t *cabac,
51 int32_t mvd_hor,
52 int32_t mvd_ver,
53 double* bits_out);
54
56 encoder_state_t* const state,
57 cabac_data_t* cabac,
58 int x, int y, int depth,
59 lcu_t* lcu, cu_info_t* cur_cu);
60
61double kvz_encode_part_mode(encoder_state_t* const state,
62 cabac_data_t* const cabac,
63 const cu_info_t* const cur_cu,
64 int depth);
65
67 cabac_data_t* const cabac,
68 const cu_info_t* const cur_cu,
69 int x, int y, int width, int height,
70 int depth,
71 lcu_t* lcu,
72 double* bits_out);
73
75 uint8_t lastpos_x, uint8_t lastpos_y,
76 uint8_t width, uint8_t height,
77 uint8_t type, uint8_t scan, double* bits_out);
78
79#endif // ENCODE_CODING_TREE_H_
double kvz_mock_encode_coding_unit(encoder_state_t *const state, cabac_data_t *cabac, int x, int y, int depth, lcu_t *lcu, cu_info_t *cur_cu)
Definition encode_coding_tree.c:948
void kvz_encode_last_significant_xy(cabac_data_t *const cabac, uint8_t lastpos_x, uint8_t lastpos_y, uint8_t width, uint8_t height, uint8_t type, uint8_t scan, double *bits_out)
Encode (X,Y) position of the last significant coefficient.
Definition encode_coding_tree.c:63
void kvz_encode_inter_prediction_unit(encoder_state_t *const state, cabac_data_t *const cabac, const cu_info_t *const cur_cu, int x, int y, int width, int height, int depth, lcu_t *lcu, double *bits_out)
Definition encode_coding_tree.c:311
void kvz_encode_coding_tree(encoder_state_t *const state, uint16_t x_ctb, uint16_t y_ctb, uint8_t depth)
Definition encode_coding_tree.c:745
double kvz_encode_part_mode(encoder_state_t *const state, cabac_data_t *const cabac, const cu_info_t *const cur_cu, int depth)
Definition encode_coding_tree.c:659
void kvz_encode_mvd(encoder_state_t *const state, cabac_data_t *cabac, int32_t mvd_hor, int32_t mvd_ver, double *bits_out)
Definition encode_coding_tree.c:1062
Top level of the encoder implementation.
Header that is included in every other header.
Definition cabac.h:54
Struct for CU info.
Definition cu.h:130
Definition encoderstate.h:274
Definition cu.h:299