TUT HEVC Encoder
search_intra.h
Go to the documentation of this file.
1#ifndef SEARCH_INTRA_H_
2#define SEARCH_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 "cu.h"
42#include "encoderstate.h"
43#include "global.h" // IWYU pragma: keep
44
45
46double kvz_luma_mode_bits(const encoder_state_t *state,
47 int8_t luma_mode, const int8_t *intra_preds);
48
49double kvz_chroma_mode_bits(const encoder_state_t *state,
50 int8_t chroma_mode, int8_t luma_mode);
51
53 const int x_px, const int y_px,
54 const int depth, lcu_t *lcu);
55
56void kvz_search_cu_intra(encoder_state_t * const state,
57 const int x_px, const int y_px,
58 const int depth, lcu_t *lcu,
59 int8_t *mode_out, double *cost_out);
60
61#endif // SEARCH_INTRA_H_
Coding Unit data structure and related functions.
Top level of the encoder implementation.
Header that is included in every other header.
int8_t kvz_search_cu_intra_chroma(encoder_state_t *const state, const int x_px, const int y_px, const int depth, lcu_t *lcu)
Definition: search_intra.c:752
void kvz_search_cu_intra(encoder_state_t *const state, const int x_px, const int y_px, const int depth, lcu_t *lcu, int8_t *mode_out, double *cost_out)
Update lcu to have best modes at this depth.
Definition: search_intra.c:816
double kvz_luma_mode_bits(const encoder_state_t *state, int8_t luma_mode, const int8_t *intra_preds)
Definition: search_intra.c:645
double kvz_chroma_mode_bits(const encoder_state_t *state, int8_t chroma_mode, int8_t luma_mode)
Definition: search_intra.c:683
Definition: encoderstate.h:274
Definition: cu.h:299