vpx/vp8/encoder
Yunqing Wang 64075c9b01 Encoder denoiser performance improvement
The denoiser function was modified to reduce the computational
complexity.

1. The denoiser c function modification:
The original implementation calculated pixel's filter_coefficient
based on the pixel value difference between current raw frame and last
denoised raw frame, and stored them in lookup tables. For each pixel c,
find its coefficient using
    filter_coefficient[c] = LUT[abs_diff[c]];
and then apply filtering operation for the pixel.

The denoising filter costed about 12% of encoding time when it was
turned on, and half of the time was spent on finding coefficients in
lookup tables. In order to simplify the process, a short cut was taken.
The pixel adjustments vs. pixel diff value were calculated ahead of time.
    adjustment = filtered_value - current_raw
               = (filter_coefficient * diff + 128) >> 8

The adjustment vs. diff curve becomes flat very quick when diff increases.
This allowed us to use only several levels to get a close approximation
of the curve. Following the denoiser algorithm, the adjustments are
further modified according to how big the motion magnitude is.

2. The sse2 function was rewritten.

This change made denoiser filter function 3x faster, and improved the
encoder performance by 7% ~ 10% with the denoiser on.

Change-Id: I93a4308963b8e80c7307f96ffa8b8c667425bf50
2012-08-31 13:48:13 -07:00
..
arm Merge "Fix compiler warnings" into eider 2012-05-02 16:22:34 -07:00
ppc Move SAD and variance functions to common 2012-03-05 16:50:33 -08:00
x86 Encoder denoiser performance improvement 2012-08-31 13:48:13 -07:00
asm_enc_offsets.c remove unused BOOL_CODER::value 2012-03-29 13:56:48 -07:00
bitstream.c silent compiling warnings for VC9 build 2012-08-20 11:45:01 -07:00
bitstream.h Make global data const 2012-05-04 10:42:21 -07:00
block.h Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
boolhuff.c remove unused BOOL_CODER::value 2012-03-29 13:56:48 -07:00
boolhuff.h Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
dct_value_cost.h Make global data const 2012-05-04 10:42:21 -07:00
dct_value_tokens.h Make global data const 2012-05-04 10:42:21 -07:00
dct.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
defaultcoefcounts.h Faster vp8_default_coef_probs 2011-08-16 16:21:21 -04:00
denoising.c Encoder denoiser performance improvement 2012-08-31 13:48:13 -07:00
denoising.h Encoder denoiser performance improvement 2012-08-31 13:48:13 -07:00
encodeframe.c Fix inter_zz_count calculation bug 2012-08-20 17:43:06 -07:00
encodeframe.h Formalize encodeframe.c forward delclarations 2012-05-04 10:44:47 -07:00
encodeintra.c Rename vp8_intra4x4_predict_d 2012-08-01 11:17:57 -07:00
encodeintra.h RTCD: add arnr functions 2012-01-30 12:10:48 -08:00
encodemb.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
encodemb.h RTCD: add arnr functions 2012-01-30 12:10:48 -08:00
encodemv.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
encodemv.h Use full-pixel MV in mvsadcost calculation 2011-04-01 16:41:58 -04:00
ethreading.c Merge "Added error checking to vp8cx_create_encoder_threads()" 2012-08-23 13:55:06 -07:00
firstpass.c silent compiling warnings for VC9 build 2012-08-20 11:45:01 -07:00
firstpass.h Move firstpass motion map to stats packet 2010-10-21 14:04:20 -04:00
lookahead.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
lookahead.h Add motion search skipping in first pass 2012-03-16 15:59:00 -04:00
mcomp.c Be consistent with SAD values 2012-07-27 16:15:31 -07:00
mcomp.h Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
modecosts.c Shares one set of RD costs tables between all encoding threads 2012-04-23 14:15:23 -04:00
modecosts.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
mr_dissim.c multi-res: add drop_frame support 2012-07-26 08:36:53 -07:00
mr_dissim.h multi-res: add drop_frame support 2012-07-26 08:36:53 -07:00
onyx_if.c Merge "Added error checking to vp8cx_create_encoder_threads()" 2012-08-23 13:55:06 -07:00
onyx_int.h Add biasing to ZEROMV for videos with static background 2012-08-21 14:56:02 -07:00
pickinter.c Add biasing to ZEROMV for videos with static background 2012-08-21 14:56:02 -07:00
pickinter.h fix denoiser for temporal patterns and rd 2012-05-30 14:32:04 -07:00
picklpf.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
psnr.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
psnr.h Increase static linkage, remove unused functions 2011-03-17 20:53:47 -04:00
quantize.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
quantize.h RTCD: add quantizer functions 2012-01-30 12:10:46 -08:00
ratectrl.c silent compiling warnings for VC9 build 2012-08-20 11:45:01 -07:00
ratectrl.h Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
rdopt.c Pass B_PREDICTION_MODE to intra4x4_predict 2012-08-02 15:26:24 -07:00
rdopt.h Remove extra enum 2012-06-04 16:56:55 -07:00
segmentation.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
segmentation.h Fix relative include paths 2011-02-10 15:09:44 -05:00
ssim.c RTCD: add variance functions 2012-01-30 12:08:30 -08:00
temporal_filter.c Fix pedantic compiler warnings 2012-06-11 15:14:58 -07:00
tokenize.c Make global data const 2012-05-04 10:42:21 -07:00
tokenize.h Make global data const 2012-05-04 10:42:21 -07:00
treewriter.c vp8e - fix coefficient costing 2012-03-05 08:20:42 -08:00
treewriter.h remove __inline for compiler compatibility 2012-03-21 14:11:10 -04:00