11#ifndef AOM_AV1_ENCODER_PICKRST_H_
12#define AOM_AV1_ENCODER_PICKRST_H_
29#define DEBUG_LR_COSTING 0
32#define MAX_LR_UNITS_W 64
33#define MAX_LR_UNITS_H 64
48 [MAX_LR_UNITS_W * MAX_LR_UNITS_H];
51static const uint8_t g_shuffle_stats_data[16] = {
52 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8,
55static const uint8_t g_shuffle_stats_highbd_data[32] = {
56 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 8, 9,
57 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 8, 9,
60static inline uint8_t find_average(
const uint8_t *src,
int h_start,
int h_end,
61 int v_start,
int v_end,
int stride) {
63 for (
int i = v_start; i < v_end; i++) {
64 for (
int j = h_start; j < h_end; j++) {
65 sum += src[i * stride + j];
68 uint64_t avg = sum / ((v_end - v_start) * (h_end - h_start));
72#if CONFIG_AV1_HIGHBITDEPTH
73static inline uint16_t find_average_highbd(
const uint16_t *src,
int h_start,
74 int h_end,
int v_start,
int v_end,
77 for (
int i = v_start; i < v_end; i++) {
78 for (
int j = h_start; j < h_end; j++) {
79 sum += src[i * stride + j];
82 uint64_t avg = sum / ((v_end - v_start) * (h_end - h_start));
Declares top-level encoder structures and functions.
@ RESTORE_TYPES
Definition enums.h:615
void av1_pick_filter_restoration(const YV12_BUFFER_CONFIG *sd, AV1_COMP *cpi)
Algorithm for AV1 loop restoration search and estimation.
Top level encoder structure.
Definition encoder.h:2870
Parameters related to Restoration Unit Info.
Definition restoration.h:190
YV12 frame buffer data structure.
Definition yv12config.h:46