summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-04-01Calculate SSIM over both reconstruction as well as postproc buffer.Ronald S. Bultje
We used to calculate SSIM only over the postproc buffer, whereas we calculate PSNR for both. Compared to postproc-SSIM, this is about 0.3% higher for derf, 1.4% lower for hd and 0.5% lower for stdhd, although it is highly variable on a per-clip basis. Change-Id: I8dd491f0f5b4201dedfb15d288c854d5d4caa10f
2013-03-28Fix mix-up in pt token indexing.Ronald S. Bultje
This fixes uninitialized reads in the trellis, and probably makes the trellis do something again. Change-Id: Ifac8dae9aa77574bde0954a71d4571c5c556df3c
2013-03-27Save nzcstats.Ronald S. Bultje
Change-Id: I4a3a9eb9f9d17218a0f0d7e148123d34dae879c2
2013-03-27Scatter-based scantables.Ronald S. Bultje
This gains about 0.2% on derf, 0.1% on hd and 0.4% on stdhd. I can put this under an experimental flag if wanted, just trying to get my patch queue in shape. Change-Id: Ibe1a30fe0e0b07bec4802e0f3ff0ba22e505f576
2013-03-26Merge "ENTROPY_STATS -> VP8_ENTROPY_STATS in vp8/." into experimentalRonald S. Bultje
2013-03-26Merge "Add col/row-based coefficient scanning patterns for 1D 8x8/16x16 ↵Ronald S. Bultje
ADSTs." into experimental
2013-03-26Merge "Redo banding for all transforms." into experimentalRonald S. Bultje
2013-03-26Merge "Use above/left (instead of previous in scan-order) as token context." ↵Ronald S. Bultje
into experimental
2013-03-26Implicit weighted prediction experimentDeb Mukherjee
Adds an experiment to use a weighted prediction of two INTER predictors, where the weight is one of (1/4, 3/4), (3/8, 5/8), (1/2, 1/2), (5/8, 3/8) or (3/4, 1/4), and is chosen implicitly based on consistency of the predictors to the already reconstructed pixels to the top and left of the current macroblock or superblock. Currently the weighting is not applied to SPLITMV modes, which default to the usual (1/2, 1/2) weighting. However the code is in place controlled by a macro. The same weighting is used for Y and UV components, where the weight is derived from analyzing the Y component only. Results (over compound inter-intra experiment) derf: +0.18% yt: +0.34% hd: +0.49% stdhd: +0.23% The experiment suggests bigger benefit for explicitly signaled weights. Change-Id: I5438539ff4485c5752874cd1eb078ff14bf5235a
2013-03-26Add col/row-based coefficient scanning patterns for 1D 8x8/16x16 ADSTs.Ronald S. Bultje
These are mostly just for experimental purposes. I saw small gains (in the 0.1% range) when playing with this on derf. Change-Id: Ib21eed477bbb46bddcd73b21c5c708a5b46abedc
2013-03-26Redo banding for all transforms.Ronald S. Bultje
Now that the first AC coefficient in both directions use the same DC as their context, there no longer is a purpose in letting both have their own band. Merging these two bands allows us to split bands for some of the very high-frequency AC bands. In addition, I'm redoing the banding for the 1D-ADST col/row scans. I don't think the old banding made any sense at all (it merged the last coefficient of the first row/col in the same band as the first two of the second row/col), which was clearly an oversight from the band being applied in scan-order (rather than in their actual position). Now, coefficients at the same position will be in the same band, regardless what scan order is used. I think this makes most sense for the purpose of banding, which is basically "predict energy for this coefficient depending on the energy of context coefficients" (i.e. pt). After full re-training, together with previous patch, derf gains about 1.2-1.3%, and hd/stdhd gain about 0.9-1.0%. Change-Id: I7a0cc12ba724e88b278034113cb4adaaebf87e0c
2013-03-26Use above/left (instead of previous in scan-order) as token context.Ronald S. Bultje
Pearson correlation for above or left is significantly higher than for previous-in-scan-order (absolute values depend on position in scan, but in general, we gain about 0.1-0.2 by using either above or left; using both basically just makes this even better). For eob branch skipping, we continue to use the previous token in scan order. This helps about 0.9% on derf after re-training on a limited data set. Full re-training and results on larger-resolution clips are pending. Note that this commit breaks trellis, so we can probably get further gains out of it by fixing trellis at some later point. Change-Id: Iead68e296fc3a105cca746b5e3da9555d6010cfe
2013-03-26Merge "Cleaning up loopfilter code." into experimentalJohn Koleszar
2013-03-26Cleaning up loopfilter code.Dmitry Kovalev
Lower case variable names, removing redundant variables, declaration and initialization on the same line. Change-Id: Ie0c6c95b14103990eb6a9d7784f8259c662e1251
2013-03-26Decomposition of vp9_decode_frame function.Dmitry Kovalev
Moving code from vp9_decode_frame function into setup_loopfilter and setup_segmentation functions. A little bit of cleanup. Change-Id: I2cce1813e4d7aeec701ccf752bf57e3bdd41b51c
2013-03-26Merge "Add an in-loop deringing experiment" into experimentalJohn Koleszar
2013-03-26Merge "Code cleanup." into experimentalJohn Koleszar
2013-03-26Merge "Code cleanup." into experimentalJohn Koleszar
2013-03-26Merge "Changing initialization order of mb_to_top_edge & mb_to_bottom_edge" ↵John Koleszar
into experimental
2013-03-26Add an in-loop deringing experimentJohn Koleszar
Adds a per-frame, strength adjustable, in loop deringing filter. Uses the existing vp9_post_proc_down_and_across 5 tap thresholded blur code, with a brute force search for the threshold. Results almost strictly positive on the YT HD set, either having no effect or helping PSNR in the range of 1-3% (overall average 0.8%). Results more mixed for the CIF set, (-0.5 min, 1.4 max, 0.1 avg). This has an almost strictly negative impact to SSIM, so examining a different filter or a more balanced search heuristic is in order. Other test set results pending. Change-Id: I5ca6ee8fe292dfa3f2eab7f65332423fa1710b58
2013-03-26Bugfix in model coef prob experimentDeb Mukherjee
Fixes an issue with model based update that got into the original patch that was merged. Change-Id: Ie42d3d0aff2e48cd187d96664dbd3e9d6d3ac22f
2013-03-26Merge "Modeling default coef probs with distribution" into experimentalDeb Mukherjee
2013-03-25Modeling default coef probs with distributionDeb Mukherjee
Replaces the default tables for single coefficient magnitudes with those obtained from an appropriate distribution. The EOB node is left unchanged. The model is represeted as a 256-size codebook where the index corresponds to the probability of the Zero or the One node. Two variations are implemented corresponding to whether the Zero node or the One-node is used as the peg. The main advantage is that the default prob tables will become considerably smaller and manageable. Besides there is substantially less risk of over-fitting for a training set. Various distributions are tried and the one that gives the best results is the family of Generalized Gaussian distributions with shape parameter 0.75. The results are within about 0.2% of fully trained tables for the Zero peg variant, and within 0.1% of the One peg variant. The forward updates are optionally (controlled by a macro) model-based, i.e. restricted to only convey probabilities from the codebook. Backward updates can also be optionally (controlled by another macro) model-based, but is turned off by default. Currently model-based forward updates work about the same as unconstrained updates, but there is a drop in performance with backward-updates being model based. The model based approach also allows the probabilities for the key frames to be adjusted from the defaults based on the base_qindex of the frame. Currently the adjustment function is a placeholder that adjusts the prob of EOB and Zero node from the nominal one at higher quality (lower qindex) or lower quality (higher qindex) ends of the range. The rest of the probabilities are then derived based on the model from the adjusted prob of zero. Change-Id: Iae050f3cbcc6d8b3f204e8dc395ae47b3b2192c9
2013-03-25Code cleanup.Dmitry Kovalev
Fixing function arguments alignment, reusing MIN/MAX and clamp functions. Change-Id: I87dd5a40ffb65b521b8abbf0fccf2f50552c5309
2013-03-25Code cleanup.Dmitry Kovalev
Lower case variable names, code simplification by using already defined clamp and read_le16 functions. Change-Id: I8fd544365bd8d1daed86d7b2ae0843e4ef80df08
2013-03-22Merge "Optimize 16x16 idct10 function" into experimentalYunqing Wang
2013-03-22Merge "Disable zero bin mode boost." into experimentalPaul Wilkins
2013-03-22Merge "Minor code clean up" into experimentalPaul Wilkins
2013-03-22Disable zero bin mode boost.Paul Wilkins
As things stand the zero bin mode boost is hurting somewhat. In part this seems to be because the boost applied as is interferes with the rd mode selection loop. Average gains (derf 0.072, yt 0.243, ythd 0.179 std-hd 0.212%) Change-Id: Icaecea3908d9a7352370e49b8fa822f2c2c49dc1
2013-03-22Minor code clean upPaul Wilkins
Change-Id: Ifa864e0acb253b238b03cdeed0fe5d6ee30a45d8
2013-03-22Merge "Remove TX size segment feature" into experimentalPaul Wilkins
2013-03-21Optimize 16x16 idct10 functionYunqing Wang
Wrote sse2 version of vp9_short_idct10_16x16 function. Compared to c version, the sse2 version is 2.3X faster. Change-Id: I314c4f09369648721798321eeed6f58e38857f26
2013-03-21Changing initialization order of mb_to_top_edge & mb_to_bottom_edgeDmitry Kovalev
Making consistent initialization of mb_to_{top,botton,left,right}_edge variables after set_mb_row & set_mb_col calls. A little bit of code cleanup additionally. Change-Id: I245bfe32c5701e9836956dc25cf8c770d109cbc1
2013-03-21Merge "Optimize 16x16 idct function" into experimentalYunqing Wang
2013-03-21Optimize 16x16 idct functionYunqing Wang
Wrote sse2 version of vp9_short_idct16x16 function. Compared to c version, the sse2 version is over 2.5X faster. Change-Id: I38536e2b846427a2cc5c5423aaf305fd0e605d61
2013-03-20Code cleanup: lower case variable names.Dmitry Kovalev
Renaming Width to width, Height to height and Version to version in several structs and function signatures. Change-Id: I084c3f7e747cb2ce3345aff27a3dff9b13a87543
2013-03-19Merge "Motion vector code cleanup." into experimentalDmitry Kovalev
2013-03-19Remove TX size segment featurePaul Wilkins
Change-Id: I0d226e4cb240caced37230f46905bf69b46e0cce
2013-03-18Changes to rd error_per_bit calculation.Paul Wilkins
Specifically changes to retain more precision especially at low Q through to the point of use. Change-Id: Ief5f010f2ca4daaabef49520e7edb46c35daf397
2013-03-18Merge "Fix ENTROPY_STATS code in vp9_tokenize.c." into experimentalRonald S. Bultje
2013-03-18ENTROPY_STATS -> VP8_ENTROPY_STATS in vp8/.Ronald S. Bultje
Change-Id: I0027483e47900de84394de47c3273cc8292e6119
2013-03-18Fix ENTROPY_STATS code in vp9_tokenize.c.Ronald S. Bultje
Change-Id: I9b4cb1e2ce6c6a99cffd473ff2fa7579bd318fcd
2013-03-18Optimize 8x8 idct functionYunqing Wang
Wrote sse2 functions of vp9_short_idct8x8 and vp9_short_idct10_8x8. Compared to c version, the sse2 version is 2X faster. The decoder test didn't show noticeable gain since 8x8 idct doesn't take much of decoding time (less than 1% in my test). Change-Id: I56313e18cd481700b3b52c4eda5ca204ca6365f3
2013-03-18VP9/ResizeInternalTest: adjust passing thresholdJohn Koleszar
Update to +/- 1dB. Change-Id: Idada001f261b36945c9334e288a415ee2c79c415
2013-03-18Merge "Replace scaling byte with explicit display size" into experimentalJohn Koleszar
2013-03-18Replace scaling byte with explicit display sizeJohn Koleszar
If the intended display size is different than the size the frame is coded at, then send that size explicitly in the bitstream. Adds a new bit to the frame header to indicate whether the extra size fields are present. Change-Id: I525c66f22d207efaf1e5f903c6a2a91b80245854
2013-03-18Merge "Adapt ARNR filter length and strength." into experimentalPaul Wilkins
2013-03-18Merge "Fix pulsing issue with scaling" into experimentalJohn Koleszar
2013-03-18Merge "Add VP9_GET_REFERENCE control" into experimentalJohn Koleszar
2013-03-18Adapt ARNR filter length and strength.Paul Wilkins
Adjust the filter length and strength for each ARF group based on a measure of difficulty (the boost) and the active q range. Remove lower limit on RDMULT value. Average gains on the different sets in range 0.4%-0.9%. However the ARNR changes give a very big boost on a few clips. Eg. Soccer ~5%, in derf set and Cyclist ~ 10% in the std-hd set Change-Id: I2078d78798e27ad2bcc2b32d703ea37b67412ec4