mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-11 17:57:32 +09:00
update libaom to rev 5bdd95475e07ac8641114cb139105b8d734a1b60 (without moz.build and aom_ports/aom_once.h)
This commit is contained in:
parent
402c27b560
commit
fb515ea77b
177 changed files with 21088 additions and 11681 deletions
24
third_party/aom/av1/encoder/pickrst.c
vendored
24
third_party/aom/av1/encoder/pickrst.c
vendored
|
|
@ -1413,20 +1413,22 @@ void av1_pick_filter_restoration(const YV12_BUFFER_CONFIG *src, AV1_COMP *cpi) {
|
|||
RestorationType best_rtype = RESTORE_NONE;
|
||||
|
||||
const int highbd = rsc.cm->seq_params.use_highbitdepth;
|
||||
extend_frame(rsc.dgd_buffer, rsc.plane_width, rsc.plane_height,
|
||||
rsc.dgd_stride, RESTORATION_BORDER, RESTORATION_BORDER,
|
||||
highbd);
|
||||
if (!cpi->sf.disable_loop_restoration_chroma || !plane) {
|
||||
extend_frame(rsc.dgd_buffer, rsc.plane_width, rsc.plane_height,
|
||||
rsc.dgd_stride, RESTORATION_BORDER, RESTORATION_BORDER,
|
||||
highbd);
|
||||
|
||||
for (RestorationType r = 0; r < num_rtypes; ++r) {
|
||||
if ((force_restore_type != RESTORE_TYPES) && (r != RESTORE_NONE) &&
|
||||
(r != force_restore_type))
|
||||
continue;
|
||||
for (RestorationType r = 0; r < num_rtypes; ++r) {
|
||||
if ((force_restore_type != RESTORE_TYPES) && (r != RESTORE_NONE) &&
|
||||
(r != force_restore_type))
|
||||
continue;
|
||||
|
||||
double cost = search_rest_type(&rsc, r);
|
||||
double cost = search_rest_type(&rsc, r);
|
||||
|
||||
if (r == 0 || cost < best_cost) {
|
||||
best_cost = cost;
|
||||
best_rtype = r;
|
||||
if (r == 0 || cost < best_cost) {
|
||||
best_cost = cost;
|
||||
best_rtype = r;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue