summaryrefslogtreecommitdiff
path: root/test/datarate_test.cc
AgeCommit message (Collapse)Author
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
2014-03-06Add speeed 5 to datarate test.Marco Paniconi
Change-Id: I7126e4b36994020cc656d046d10df5d6a6c53e66
2014-02-21Stop gating non420 features with a configure flag.Alex Converse
Change-Id: I8cc38fdef6a2a0968af8dfe15e7c2b3c46c531ea
2014-02-13Datarate test for temporal layers and frame dropper.Marco Paniconi
Also, removed a TODO and removed speed 1 from the tests. Change-Id: I4e6b114204b6d42d93fd1902a56eb0c459bad135
2014-02-11Fix frames that have no references to them.Frank Galligan
BasicRateTargeting3TemporalLayers found an error with the get/release frame buffer management. Change-Id: Iccff25cba1d2f276f2a0d0fb7b20cf99b4405549
2014-02-11Disabling BasicRateTargeting3TemporalLayers test.Dmitry Kovalev
Frank is going to fix it soon, disabling for now. Change-Id: Ifb7092d7db5af01bde62897af189fd620b7bbdf3
2014-02-10Some updates and fixes for layered CBR mode.Marco Paniconi
-Properly set the average frame size for each layer. -Allow each layer to update its average/last Q stats after encoding. -Initialize for some layer context variables. Change-Id: Iaa37d144fcf4f30ff4283a4e8db8b9ca8bf4c815
2014-02-06Layer based rate control for CBR mode.Marco Paniconi
This patch adds a buffer-based rate control for temporal layers, under CBR mode. Added vpx_temporal_scalable_patters.c encoder for testing temporal layers, for both vp9 and vp8 (replaces the old vp8_scalable_patterns). Updated datarate unittest with tests for temporal layer rate-targeting. Change-Id: I8900a854288b9354d9c697cfeb0243a9fd6790b1
2014-02-03Revert "Layer based rate control for CBR mode."Marco Paniconi
This reverts commit 6be2b750b8968a0b19180a6474864c0b6a41db13 Change-Id: Ic52acd98b37c3ba49d4999b463389eb564f49c4b
2014-02-02Layer based rate control for CBR mode.Marco Paniconi
This patch adds a buffer-based rate control for temporal layers, under CBR mode. Added vpx_temporal_scalable_patters.c encoder for testing temporal layers, for both vp9 and vp8 (replaces the old vp8_scalable_patterns). Updated datarate unittest with tests for temporal layer rate-targeting. Change-Id: I9cb6cce2494390ae6096ee17774af7fb9308bde7
2014-01-22Expand the lossless and datarate tests to cover 4:4:4.Alex Converse
Change-Id: I2dc7b3265d0a87d7a26c95b48e360c7c68cc7355
2013-12-18datarate_test: fix some type conversionsJames Zern
Change-Id: I9840dfab644b0c75ff667174f8005dece005e700
2013-12-18Updates for 1-pass CBR rate control.Marco Paniconi
Adjustments based on buffer level, frame dropper. Change-Id: Iaa85b570493526a60c4b9fb7ded4c0226b1b3a33
2013-12-16Change in data rate test to be less stringentDeb Mukherjee
Makes the thresholds for bitrate control more leniant to prevent test failures. Change-Id: I535c1565174a8a46493b033531eb40360def883b