| 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
20 extern "C" {
21#endif
22
53 int 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
77 int 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
116 int 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#ifdef __cplusplus
123}
124#endif
125
126#endif // AOM_AV1_ENCODER_TXB_RDOPT_H_
MACROBLOCK
struct macroblock MACROBLOCK
Encoder's parameters related to the current coding block.
encoder.h
Declares top-level encoder structures and functions.
av1_cost_coeffs_txb_laplacian
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.
av1_optimize_txb
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.
av1_cost_coeffs_txb
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.
AV1_COMP
Top level encoder structure.
Definition encoder.h:2896