summaryrefslogtreecommitdiff
path: root/test/datarate_test.cc
AgeCommit message (Collapse)Author
2016-10-19vp8: Add control for gf boost for 1 pass cbr.Marco
Control already exists for vp9, adding it to vp8. Usage is only when error_resilient is off. Added a datarate unittest for non-zero boost. Change-Id: I4296055ebe2f4f048e8210f344531f6486ac9e35
2016-10-14VP8: Add realtime speed to datarate_test.ccJerome Jiang
Change-Id: Ia56f0e8dfba20143be3e69666d9184dd3ca5b563
2016-10-13vp8: Adjust thresholds in VP8/DatarateTestLarge tests.Marco
Fix unit_tests_ubsan failure VP8/DatarateTestLarge.BasicBufferModel. Failure was triggered by commit: df66f8e8. Change-Id: I2c49e5cc24094b15063161bab27b09ec7e6f2045
2016-10-11vp8: Adjust threshold on VP8/DatarateTestLarge.DenoiserOffOn.Marco
Fix unit_tests_ubsan failure for VP8/DatarateTestLarge.DenoiserOffOn. Failure was triggered by commit: df66f8e8. Change-Id: I7cc5bd309e85950cfc5755e01d0eb942d9ca6984
2016-08-24Add datarate tests for encoder multi-threads (vp8 and vp9).Marco
Change-Id: I7f9b23026aaee309095cc3f4724125ae319875af
2016-08-05test: apply clang-tidy google-readability-braces-around-statementsclang-format
applied against a x86_64 configure with and without --enable-vp9-highbitdepth clang-tidy-3.7.1 \ -checks='-*,google-readability-braces-around-statements' \ -header-filter='.*' -fix + clang-format afterward Change-Id: Ia2993ec64cf1eb3505d3bfb39068d9e44cfbce8d
2016-08-04Merge "test: apply clang-format"James Zern
2016-07-27test: apply clang-formatclang-format
Change-Id: I0d9ab85855eb723f653a7bb09b3d0d31dd6cfd2f
2016-07-25vp9 svc: Enable different speed setting for each spatial layer.jackychen
This change only affects 1 pass cbr svc mode. Change-Id: If0da87bb200f7e7762755340c40c8157cc7a16ca
2016-07-18vp9: Allow usage of lookahead for real-time, 1 pass vbr.Marco
Allow usage of lookahead for VBR in real-time mode, for 1 pass vbr. Current usage is for fast checking of future scene cuts/changes, and adjusting rate control (gf interval and active_worst/target size). Added unittests (datarate) for 1 pass vbr mode, with non-zero lag. Added an experimental option to limit QP based on lookahead. Overall positive gain in metrics on ytlive set: avgPNSR/SSIM up on average ~1-3%; several clips up by 5, 7%. Change-Id: I960d57dfc89de121c4824b9a9bf88d2814e74b56
2016-06-23datarate_test,DatarateTestLarge: normalize bits typeJames Zern
quiets a msvc warning: conversion from 'const int64_t' to 'size_t', possible loss of data Change-Id: I90a2ac6b040454dac7434fc9b63b98c42ea127b1
2016-06-16Fix ubsan warning: test/datarate_test.ccYaowu Xu
BUG=webm:1219 Change-Id: I48470a885cd64a60636a982cd68165c41a702306
2016-05-25vp9: Add datarate test for 1 pass VBR mode.Marco
Existing tests are only for CBR mode. Change-Id: Ie3b2cd46236457748e2650901d1a347a730f38af
2016-03-09vp9-svc: Fix to frame dropping in svc mode.Marco
Don't advance the svc frame counters on dropped frame, since this can break the referencing scheme and lead to a crash/assert. Updated svc-datarate unittest to add a lower bitrate test. Change only affects 1 pass cbr svc, with frame dropper enabled. Change-Id: Ibb7530b7a587a9344d46898d9286fd9e2ef0779c
2016-03-08vp9-svc unitests: Add more tests for key frame periods.Marco
Change-Id: Iea237760b508d87dab057dd824e26d2e66fa8433
2016-03-02vp9-svc: Fix issues with svc with periodic key frames.Marco
Use the superframe counter to set the key frame, and force it to the key frame on base spatial layer only. Also, update svc frame counters under frame dropping. Update unittest: add specific tests with short key frame period. https://bugs.chromium.org/p/webm/issues/detail?id=1150 Change-Id: I5b1c9a09253e6e5fbfce51b4cf603ae22d422b01
2016-03-01vp9-svc: Allow for 2 stage downscaling for spatial layers.Marco
For 1 pass cbr mode: allow for two-stage 1:2 scaling (which will use the 1:2 optimized scaler) if the spatial layer is 1/4x1/4 of souce. Without this change, the base layer for 3 spatial layers would be using the non-normative scaler which is un-optimized/C code. Change-Id: I9d73f92a4a96927d0f1d6bf75315c1e60513226a
2016-02-29vp9-datarate unittests: Include coverage up to speed 8.Marco
Change-Id: I8529cd04ea4f95d21d83f87d56d6dd882d0a5636
2016-02-29vp9: Remove effective_bitrate from SVC datarate tests.Marco
Change-Id: I1189c2403463e0aca288ba344052ba1c9cf94390
2016-02-26datarate_test/ChangingDropFrameThresh: set kf intervalJames Zern
restore the value for VP9 to 9999 to satisfy the current test expectations; without this VP9/DatarateTestVP9Large.ChangingDropFrameThresh/8 will overshoot. Change-Id: I88dad574ae4ab10f923579824c7347ff468c7045
2016-02-26vp9-svc: Bugfix for svc in non-rd variance partition.Marco
Reset the scale factors before build_inter_predictors. Add datarate tests for 3 spatial layers, which exposed this issue. Change-Id: I7f81efbe44345ecea9fdd5f639a4cca76aed3874
2016-02-25vp9: set kf_max_dist to a reasonable default (128)James Zern
the same as vp8, with the same reasoning from: 2a0d7b1 Reduce the default kf_max_dist to 128. see also: https://trac.ffmpeg.org/ticket/4904 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815673 + restore vpxenc behavior of taking the library default rather than forcing 5s This change also exposes an issue with one-pass svc in cbr mode, keep the old default in datarate_test.cc for now. Change-Id: Id6d1244f42490b06fefc1a7b4e12a423a1f83e88
2016-02-11tests: quiet some unused parameter warningsJames Zern
Change-Id: Iff8b0d77234f78bf407676891bccad92825bfcc6
2016-01-20vp9-svc: Allow frame-dropping in svc datarate control tests.Marco
Remove comment(s) and enable frame-dropper for tests. Frame dropper for 1 pass svc was fixed a while ago: https://chromium-review.googlesource.com/#/c/309230/ Change-Id: I5fd3192825b22e562db9210d3dc7b246a1799d8d
2015-11-23vp9-svc: Fix to allow setting qp-max/min per spatial and temporal layer.Marco
Change-Id: Ic0ec32c1d7f7c08c9f956592dccbfd9060b1f624
2015-11-03Adjust threshold for datarate frame drop test.Marco
Current threshold is little too strict. Change-Id: I99ec1409d095e0c2fd3b7ab398742cabcc05700b
2015-08-10Add unittest for SVC 1pass CBR mode with 4 threads.Marco
Change-Id: I2b25d495d0dd3eedea31aa12cb908a90480f25de
2015-06-03Remove ABI check for 1 pass CBR SVC.Marco
Remove the ABI check for the controls needed for SVC 1 pass CBR mode. Bump up the ABI version. Change-Id: I35b79ee010e14af83c6d1e801d574deaaa2fc7eb
2015-06-02Vidyo patch: Rate control for SVC, 1 pass CBR mode.Marco
-Make Rate control work for SVC 1 pass CBR mode. -Added temporal layering mode. -Fixed bug in non-rd variance partition. -Modified/updated the sample encoders (vp9_spatial_svc_encoder, vpx_temporal_svc_encoder). -Added datarate unittest(s) for 1 pass CBR SVC. Change-Id: Ie94b1b68a56ea1267b5087c625e5df04def2ee48
2015-03-19put spatial svc behind an ABI checkJames Zern
this removes the CONFIG_* checks from public headers, but means '--enable-experimental --enable-spatial-svc' builds will fail without a local change to the ABI in vpx_encoder.h. this should be all right for testing this experiment. Change-Id: Ief55e7b9d1e8332cfce990275e04c29b30af0c4a
2015-03-13Fix crash with vp9 denoiser on.Marco
Crash occured on very first key frame, because denoiser temporal function was beng entered. Updated denoiser unittest to set cpu_used from first frame, and verified fix fixes the crash. Change-Id: I3be1124b52846fbbe7248d2c3d6136e086c80bc1
2015-02-19Improve skip_txfm thresholds in the non-rd mode selectionYunqing Wang
Modified the thresholds of deciding whether or not to skip the transforms in model_rd_for_sb_y(). Used zbin[] instead of dequant[] to be more precise. Also, modified the checking coditions. Rtc set borg test results (at speed 6) showed: average PSNR gain: 0.138%, overall PSNR gain: 0.158%, and SSIM gain: 0.177%. The data rate test was modified slightly as suggested by Marco. Change-Id: Ieaf633ab77f4838cb3c45cf69065b29d55f8ae6c
2015-01-09Unit test for turning VP8 denoiser on/off periodically.JackyChen
Change-Id: Id537d1126f25c0218adcfb4d6ee641ee81a2169a
2015-01-07Unit test for turning VP9 denoiser on/off periodically.JackyChen
Change-Id: Ifd2813e8ccd8af189a8dc89b24efb6a5681714c7
2015-01-06Turn denoiser sensitivity on starting from kf in unit testJingning Han
The denoiser sensitivity level should be set to 1 starting from key frame. The internal function of denoiser should make the temporal denoising operations cut off in key frame coding. Change-Id: Id3e704a73e98e4ea801284a2cbbab2ea9c371d23
2014-12-02Enforce error resilient mode on in temporal svc real-time modeJingning Han
This commit makes the codec automatically turn on error resilient mode when using real-time mode for temporal scalable coding. It fixes an enc/dec mismatch issue and re-enables the corresponding unit test. Change-Id: Ie1f7134e9a78ddd43e9b1555b3ee991c8a3afd0d
2014-12-01Turn off temporal svc unit test in RTC settingJingning Han
A hidden enc/dec mismatch bug was accidentally triggered by https://gerrit.chromium.org/gerrit/#/c/72247/ Adaptively adjust mode test kick-off thresholds in RTC coding This commit temporarily turns off the broken unit tests to avoid blocking other CLs while fixing. Change-Id: I0a0f195030321190ce10879cd833187680576367
2014-09-18Add a conditional compilation macro to VP8 unit test.JackyChen
In many tests in VP8, the denoiser is disabled. By adding this conditional comilation macro, the unit test will not be included when denoiser is not enabled. Change-Id: I6edec85c996acca22aacd11161c52408be2660a3
2014-09-18Add unit test for VP9 denoiser.JackyChen
Check basic datarate targeting for a single bitrate when the denoiser is on. Change-Id: Iad0e664859ffeb4ae6dd5f6dfb71a121e917e3fb
2014-08-27Add a separate datarate test for denoiser enabled.Marco
Change-Id: Ibc91a46d11ad9c58e340b4346ed813a1be9b404a
2014-08-26Enable denoiser for vp8 datarate tests.Marco
Keep one test, BasicBufferModel, with denoiser set off. Change-Id: I762c2004b3adca24f677535cfa5b991108f31f01
2014-08-22datarate_test.cc: remove unused param warningsJames Zern
Change-Id: I627dc800f1925cc5a5d68630009cf8a454f07567
2014-06-30Decide the partitioning threshold from the variance histogramYunqing Wang
Before encoding a frame, calculate and store each 16x16 block's variance of source difference between last and current frame. Find partitioning threshold T for the frame from its variance histogram, and then use T to make partition decisions. Comparing with fixed 16x16 partitioning, rtc set test showed an overall psnr gain of 3.242%, and ssim gain of 3.751%. The best psnr gain is 8.653%. The overall encoding speed didn't change much. It got faster for some clips(for example, 12% speedup for vidyo1), and a little slower for others. Also, a minor modification was made in datarate unit test. Change-Id: Ie290743aa3814e83607b93831b667a2a49d0932c
2014-05-07Relax rc test thresholdYaowu Xu
For multilayer coding Change-Id: I830a0176c020658b836e3f5d2ce6bc5932736c0c
2014-04-17Relax the threshold for datarate test by 5%Yaowu Xu
Change-Id: Ibc770df77939a68f9f0d1d78c0edd737b0d398ad
2014-04-04Re-enable datarate tests for speeds 5 and 6.Marco Paniconi
Changed a parameter to make speed 5 pass, and valgring issue for speed 6 fixed: https://code.google.com/p/webm/issues/detail?id=740 Change-Id: I5b804b08069e29df3f08b9ec37f5b80151b4c910
2014-03-28Adjust rt speed steps.Yaowu Xu
This commit adjusted the speed steps in rt mode to make the steps more evenly spaced on speed and quality, specifically: 1. Merged 3 and 4 into one single step 3 and removed confilicting features. 2. Move 8, 7, 6, 5 to be 7, 6, 5, 4 repsectively. Change-Id: I38d56d61531f3561d772aef953c411c8fb38c063
2014-03-20Disable speed 6 for datarate test.Marco Paniconi
One of the tests for real-time mode is failing at speed 6. Introduced recently, will enable again when fixed. Change-Id: I8f42de6a3eca226c9aa5c5e1fab98d629993c087
2014-03-12datarate_test renaming with suffix large because it is slow.Jim Bankoski
Change-Id: I5cdff078159a379bc48f1d8e249e144c6d27c946
2014-03-07Add realtime-mode to datarate tests.Marco Paniconi
Change-Id: Ib7ef6afbc80a38b134522bff283c01fadbec874b