Merge "Bugfix in the CLPF RDO." into nextgenv2
This commit is contained in:
@@ -108,12 +108,9 @@ int av1_clpf_frame(const YV12_BUFFER_CONFIG *frame,
|
||||
: frame->y_buffer;
|
||||
uint8_t *dst_buffer;
|
||||
|
||||
// Make buffer space for in-place filtering
|
||||
#if CONFIG_AOM_HIGHBITDEPTH
|
||||
strength <<= (cm->bit_depth - 8);
|
||||
#endif
|
||||
|
||||
// Make buffer space for in-place filtering
|
||||
#if CONFIG_AOM_HIGHBITDEPTH
|
||||
CHECK_MEM_ERROR(cm, cache, aom_malloc(cache_size << !!cm->use_highbitdepth));
|
||||
dst_buffer = cm->use_highbitdepth ? CONVERT_TO_BYTEPTR(cache) : cache;
|
||||
#else
|
||||
|
@@ -332,6 +332,6 @@ void av1_clpf_test_frame(const YV12_BUFFER_CONFIG *rec,
|
||||
for (j = 0; j < 4; j++)
|
||||
if ((!c || j) && sums[c][j] < best) best = sums[c][j];
|
||||
best &= 15;
|
||||
*best_bs = (best > 3) * (5 + (best < 12) + (best < 8));
|
||||
if (best_bs) *best_bs = (best > 3) * (5 + (best < 12) + (best < 8));
|
||||
*best_strength = best ? 1 << ((best - 1) & 3) : 0;
|
||||
}
|
||||
|
@@ -3438,10 +3438,8 @@ static void loopfilter_frame(AV1_COMP *cpi, AV1_COMMON *cm) {
|
||||
int fb_size_log2, strength_y, strength_u, strength_v;
|
||||
av1_clpf_test_frame(frame, cpi->Source, cm, &strength_y, &fb_size_log2,
|
||||
AOM_PLANE_Y);
|
||||
av1_clpf_test_frame(frame, cpi->Source, cm, &strength_u, &fb_size_log2,
|
||||
AOM_PLANE_U);
|
||||
av1_clpf_test_frame(frame, cpi->Source, cm, &strength_v, &fb_size_log2,
|
||||
AOM_PLANE_V);
|
||||
av1_clpf_test_frame(frame, cpi->Source, cm, &strength_u, 0, AOM_PLANE_U);
|
||||
av1_clpf_test_frame(frame, cpi->Source, cm, &strength_v, 0, AOM_PLANE_V);
|
||||
|
||||
if (!fb_size_log2) fb_size_log2 = get_msb(MAX_FB_SIZE);
|
||||
|
||||
|
Reference in New Issue
Block a user