From: Steinar Midtskogen Date: Thu, 8 Sep 2016 07:48:31 +0000 (+0200) Subject: Reduce memory footprint for CLPF encoding. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8af9126fbddabe842319856dc39bf5462145eec;p=libvpx Reduce memory footprint for CLPF encoding. Use in-place filtering, like in the decoder (see eb5794da1659f87597291d84c2fbdfd89280065d). Change-Id: If037ead45f5cb3461347a63e0e415954d5dcba8b --- diff --git a/av1/encoder/encoder.c b/av1/encoder/encoder.c index bea0fa290..c7a203106 100644 --- a/av1/encoder/encoder.c +++ b/av1/encoder/encoder.c @@ -3442,10 +3442,9 @@ static void loopfilter_frame(AV1_COMP *cpi, AV1_COMMON *cm) { cm->clpf_strength = strength - (strength == 4); cm->clpf_size = fb_size_log2 ? fb_size_log2 - get_msb(MAX_FB_SIZE) + 3 : 0; - aom_yv12_copy_frame(cm->frame_to_show, &cpi->last_frame_uf); cm->clpf_numblocks = - av1_clpf_frame(cm->frame_to_show, &cpi->last_frame_uf, cpi->Source, - cm, !!cm->clpf_size, strength, 4 + cm->clpf_size, + av1_clpf_frame(cm->frame_to_show, cm->frame_to_show, cpi->Source, cm, + !!cm->clpf_size, strength, 4 + cm->clpf_size, cm->clpf_blocks, av1_clpf_decision); } }