зеркало из https://github.com/mozilla/js_mse_eme.git
Add jsdoc for playbackperf test and webgl test in both 2019 and tip.
Change-Id: I72b766af97fe5256b4ecf50efaced020c0cf3930
This commit is contained in:
Родитель
10fcadaad9
Коммит
46061e4e7a
|
@ -102,6 +102,10 @@ var createTotalVideoFramesValidationTest = function(videoStream, frames) {
|
|||
|
||||
createTotalVideoFramesValidationTest(Media.H264.Video1MB, 25);
|
||||
|
||||
/**
|
||||
* Ensure that browser is able to detect frame drops by correctly implementing
|
||||
* the DroppedFrameCount API.
|
||||
*/
|
||||
var createFrameDropValidationTest = function(videoStream1, videoStream2) {
|
||||
var test = createPerfTest('FrameDrop', 'Media Playback Quality');
|
||||
test.prototype.title = 'Frame Drop Validation';
|
||||
|
@ -148,7 +152,10 @@ var createFrameDropValidationTest = function(videoStream1, videoStream2) {
|
|||
createFrameDropValidationTest(
|
||||
Media.H264.Webgl1080p60fps, Media.VP9.Webgl2160p60fps);
|
||||
|
||||
|
||||
/**
|
||||
* Ensure no dropped frame is encountered during playback of specified media
|
||||
* format in certain playback rate.
|
||||
*/
|
||||
var createPlaybackPerfTest = function(
|
||||
videoStream, playbackRate, category, optional) {
|
||||
var test = createPerfTest('PlaybackPerf' + '.' + videoStream.codec +
|
||||
|
|
|
@ -15,6 +15,10 @@ limitations under the License.
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* WebGL Performance Test Suite.
|
||||
* @class
|
||||
*/
|
||||
var WebglTest = function() {
|
||||
|
||||
var webkitPrefix = MediaSource.prototype.version.indexOf('webkit') >= 0;
|
||||
|
@ -52,7 +56,10 @@ function setupWebglTest(video, runner, videoStream) {
|
|||
return new WebglHandler(video, canvas);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ensure WebGL performance of given video format by comparing the playback
|
||||
* frame rate with threshold values.
|
||||
*/
|
||||
var createWebglPerformanceTest = function(videoStream) {
|
||||
var test = createWebglTest('WebGLPerformance' + '.' + videoStream.codec +
|
||||
'.' + videoStream.get('resolution') + videoStream.get('fps'),
|
||||
|
|
|
@ -102,6 +102,10 @@ var createTotalVideoFramesValidationTest = function(videoStream, frames) {
|
|||
|
||||
createTotalVideoFramesValidationTest(Media.H264.Video1MB, 25);
|
||||
|
||||
/**
|
||||
* Ensure that browser is able to detect frame drops by correctly implementing
|
||||
* the DroppedFrameCount API.
|
||||
*/
|
||||
var createFrameDropValidationTest = function(videoStream1, videoStream2) {
|
||||
var test = createPerfTest('FrameDrop', 'Media Playback Quality');
|
||||
test.prototype.title = 'Frame Drop Validation';
|
||||
|
@ -148,7 +152,10 @@ var createFrameDropValidationTest = function(videoStream1, videoStream2) {
|
|||
createFrameDropValidationTest(
|
||||
Media.H264.Webgl1080p60fps, Media.VP9.Webgl2160p60fps);
|
||||
|
||||
|
||||
/**
|
||||
* Ensure no dropped frame is encountered during playback of specified media
|
||||
* format in certain playback rate.
|
||||
*/
|
||||
var createPlaybackPerfTest = function(
|
||||
videoStream, playbackRate, category, optional) {
|
||||
var test = createPerfTest('PlaybackPerf' + '.' + videoStream.codec +
|
||||
|
|
|
@ -15,6 +15,10 @@ limitations under the License.
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* WebGL Performance Test Suite.
|
||||
* @class
|
||||
*/
|
||||
var WebglTest = function() {
|
||||
|
||||
var webkitPrefix = MediaSource.prototype.version.indexOf('webkit') >= 0;
|
||||
|
@ -52,7 +56,10 @@ function setupWebglTest(video, runner, videoStream) {
|
|||
return new WebglHandler(video, canvas);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ensure WebGL performance of given video format by comparing the playback
|
||||
* frame rate with threshold values.
|
||||
*/
|
||||
var createWebglPerformanceTest = function(videoStream) {
|
||||
var test = createWebglTest('WebGLPerformance' + '.' + videoStream.codec +
|
||||
'.' + videoStream.get('resolution') + videoStream.get('fps'),
|
||||
|
|
Загрузка…
Ссылка в новой задаче