12#ifndef AOM_AV1_ENCODER_PARTITION_SEARCH_H_
13#define AOM_AV1_ENCODER_PARTITION_SEARCH_H_
17#include "av1/encoder/encodeframe.h"
18#include "av1/encoder/tokenize.h"
20void av1_set_offsets_without_segment_id(
const AV1_COMP *
const cpi,
21 const TileInfo *
const tile,
23 int mi_col, BLOCK_SIZE bsize);
24void av1_set_offsets(
const AV1_COMP *
const cpi,
const TileInfo *
const tile,
29 int mi_col, BLOCK_SIZE bsize,
int *rate,
30 int64_t *dist,
int do_recon, PC_TREE *pc_tree);
33 TokenExtra **tp,
int mi_row,
int mi_col,
34 BLOCK_SIZE bsize, PC_TREE *pc_tree);
35#if CONFIG_RT_ML_PARTITIONING
36void av1_nonrd_pick_partition(AV1_COMP *cpi, ThreadData *td,
37 TileDataEnc *tile_data, TokenExtra **tp,
38 int mi_row,
int mi_col, BLOCK_SIZE bsize,
39 RD_STATS *rd_cost,
int do_recon, int64_t best_rd,
42void av1_reset_part_sf(PARTITION_SPEED_FEATURES *part_sf);
43void av1_reset_sf_for_ext_part(AV1_COMP *
const cpi);
45bool av1_rd_partition_search(AV1_COMP *
const cpi, ThreadData *td,
46 TileDataEnc *tile_data, TokenExtra **tp,
47 SIMPLE_MOTION_DATA_TREE *sms_root,
int mi_row,
48 int mi_col, BLOCK_SIZE bsize,
49 RD_STATS *best_rd_cost);
51 TileDataEnc *tile_data, TokenExtra **tp,
int mi_row,
52 int mi_col, BLOCK_SIZE bsize, RD_STATS *rd_cost,
53 RD_STATS best_rdc, PC_TREE *pc_tree,
54 SIMPLE_MOTION_DATA_TREE *sms_tree, int64_t *none_rd,
55 SB_MULTI_PASS_MODE multi_pass_mode,
56 RD_RECT_PART_WIN_INFO *rect_part_win_info);
58static AOM_INLINE
void set_cb_offsets(uint16_t *cb_offset,
59 const uint16_t cb_offset_y,
60 const uint16_t cb_offset_uv) {
61 cb_offset[PLANE_TYPE_Y] = cb_offset_y;
62 cb_offset[PLANE_TYPE_UV] = cb_offset_uv;
65static AOM_INLINE
void update_cb_offsets(
MACROBLOCK *x,
const BLOCK_SIZE bsize,
66 const int subsampling_x,
67 const int subsampling_y) {
68 x->
cb_offset[PLANE_TYPE_Y] += block_size_wide[bsize] * block_size_high[bsize];
70 const BLOCK_SIZE plane_bsize =
71 get_plane_block_size(bsize, subsampling_x, subsampling_y);
72 assert(plane_bsize != BLOCK_INVALID);
74 block_size_wide[plane_bsize] * block_size_high[plane_bsize];
Declares top-level encoder structures and functions.
void av1_nonrd_use_partition(AV1_COMP *cpi, ThreadData *td, TileDataEnc *tile_data, MB_MODE_INFO **mib, TokenExtra **tp, int mi_row, int mi_col, BLOCK_SIZE bsize, PC_TREE *pc_tree)
AV1 block partition application (minimal RD search).
Definition: partition_search.c:2505
void av1_rd_use_partition(AV1_COMP *cpi, ThreadData *td, TileDataEnc *tile_data, MB_MODE_INFO **mib, TokenExtra **tp, int mi_row, int mi_col, BLOCK_SIZE bsize, int *rate, int64_t *dist, int do_recon, PC_TREE *pc_tree)
AV1 block partition search (partition estimation and partial search).
Definition: partition_search.c:1744
bool av1_rd_pick_partition(AV1_COMP *const cpi, ThreadData *td, TileDataEnc *tile_data, TokenExtra **tp, int mi_row, int mi_col, BLOCK_SIZE bsize, RD_STATS *rd_cost, RD_STATS best_rdc, PC_TREE *pc_tree, SIMPLE_MOTION_DATA_TREE *sms_tree, int64_t *none_rd, SB_MULTI_PASS_MODE multi_pass_mode, RD_RECT_PART_WIN_INFO *rect_part_win_info)
AV1 block partition search (full search).
Definition: partition_search.c:4981
Stores the prediction/txfm mode of the current coding block.
Definition: blockd.h:222
Encoder's parameters related to the current coding block.
Definition: block.h:813
MACROBLOCKD e_mbd
Decoder's view of current coding block.
Definition: block.h:831
uint16_t cb_offset[PLANE_TYPES]
Offset of current coding block's coeff buffer relative to the sb.
Definition: block.h:869
bool is_chroma_ref
Definition: blockd.h:608