AOMedia AV1 Codec
txb_rdopt.h
1/*
2 * Copyright (c) 2021, Alliance for Open Media. All rights reserved.
3 *
4 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10 */
11
12#ifndef AOM_AV1_ENCODER_TXB_RDOPT_H_
13#define AOM_AV1_ENCODER_TXB_RDOPT_H_
14
15#include "av1/common/blockd.h"
16#include "av1/common/txb_common.h"
17#include "av1/encoder/encoder.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
53int av1_optimize_txb(const struct AV1_COMP *cpi, MACROBLOCK *x, int plane,
54 int block, TX_SIZE tx_size, TX_TYPE tx_type,
55 const TXB_CTX *const txb_ctx, int *rate_cost,
56 int sharpness);
57
77int av1_cost_coeffs_txb(const MACROBLOCK *x, const int plane, const int block,
78 const TX_SIZE tx_size, const TX_TYPE tx_type,
79 const TXB_CTX *const txb_ctx, int reduced_tx_set_used);
80
116int av1_cost_coeffs_txb_laplacian(const MACROBLOCK *x, const int plane,
117 const int block, const TX_SIZE tx_size,
118 const TX_TYPE tx_type,
119 const TXB_CTX *const txb_ctx,
120 const int reduced_tx_set_used,
121 const int adjust_eob);
122
152int av1_cost_coeffs_txb_estimate(const MACROBLOCK *x, const int plane,
153 const int block, const TX_SIZE tx_size,
154 const TX_TYPE tx_type);
155
156#ifdef __cplusplus
157}
158#endif
159
160#endif // AOM_AV1_ENCODER_TXB_RDOPT_H_
Declares top-level encoder structures and functions.
int av1_cost_coeffs_txb_estimate(const MACROBLOCK *x, const int plane, const int block, const TX_SIZE tx_size, const TX_TYPE tx_type)
Estimate the entropy cost of transform coefficients using Laplacian distribution.
int av1_cost_coeffs_txb_laplacian(const MACROBLOCK *x, const int plane, const int block, const TX_SIZE tx_size, const TX_TYPE tx_type, const TXB_CTX *const txb_ctx, const int reduced_tx_set_used, const int adjust_eob)
Estimate the entropy cost of coding a transform block using Laplacian distribution.
int av1_optimize_txb(const struct AV1_COMP *cpi, MACROBLOCK *x, int plane, int block, TX_SIZE tx_size, TX_TYPE tx_type, const TXB_CTX *const txb_ctx, int *rate_cost, int sharpness)
Adjust the magnitude of quantized coefficients to achieve better rate-distortion (RD) trade-off.
int av1_cost_coeffs_txb(const MACROBLOCK *x, const int plane, const int block, const TX_SIZE tx_size, const TX_TYPE tx_type, const TXB_CTX *const txb_ctx, int reduced_tx_set_used)
Compute the entropy cost of coding coefficients in a transform block.
Top level encoder structure.
Definition encoder.h:2870
Encoder's parameters related to the current coding block.
Definition block.h:878