未验证 提交 b03024e1 编写于 作者: O openharmony_ci 提交者: Gitee

!3693 修复编解码eos相关时序问题导致的概率性用例失败

Merge pull request !3693 from ling990/ling990
...@@ -712,7 +712,7 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -712,7 +712,7 @@ describe('AudioDecoderFuncCallback', function () {
audioDecodeProcessor.start(async(err) => { audioDecodeProcessor.start(async(err) => {
expect(err).assertUndefined(); expect(err).assertUndefined();
console.info(`case start 1`); console.info(`case start 1`);
await sleep(2000); await sleep(500);
eventEmitter.emit('flush'); eventEmitter.emit('flush');
}) })
}); });
......
...@@ -644,7 +644,7 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -644,7 +644,7 @@ describe('AudioDecoderFuncPromise', function () {
await audioDecodeProcessor.start().then(() => { await audioDecodeProcessor.start().then(() => {
console.info("case start success"); console.info("case start success");
}, failCallback).catch(failCatch); }, failCallback).catch(failCatch);
await sleep(3000).then(() => { await sleep(500).then(() => {
inputQueue = []; inputQueue = [];
outputQueue = []; outputQueue = [];
audioDecodeProcessor.flush().then(() => { audioDecodeProcessor.flush().then(() => {
......
...@@ -543,7 +543,7 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -543,7 +543,7 @@ describe('AudioEncoderFuncCallback', function () {
audioEncodeProcessor.start(async(err) => { audioEncodeProcessor.start(async(err) => {
expect(err).assertUndefined(); expect(err).assertUndefined();
console.info(`case start 1`); console.info(`case start 1`);
await sleep(2000); await sleep(500);
eventEmitter.emit('flush'); eventEmitter.emit('flush');
}) })
}); });
......
...@@ -498,7 +498,7 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -498,7 +498,7 @@ describe('AudioEncoderFuncPromise', function () {
await audioEncodeProcessor.start().then(() => { await audioEncodeProcessor.start().then(() => {
console.info("case start success") console.info("case start success")
}, failCallback).catch(failCatch); }, failCallback).catch(failCatch);
await sleep(5000).then(() => { await sleep(500).then(() => {
inputQueue = []; inputQueue = [];
outputQueue = []; outputQueue = [];
audioEncodeProcessor.flush().then(() => { audioEncodeProcessor.flush().then(() => {
......
...@@ -490,7 +490,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -490,7 +490,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS); DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50; eosFrameId = 10;
workdoneAtEOS = true; workdoneAtEOS = true;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -519,9 +519,9 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -519,9 +519,9 @@ describe('VideoDecoderReliCallbackTest', function () {
*/ */
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -605,7 +605,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -605,7 +605,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -743,7 +743,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -743,7 +743,7 @@ describe('VideoDecoderReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -855,7 +855,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -855,7 +855,7 @@ describe('VideoDecoderReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -966,7 +966,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -966,7 +966,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1077,7 +1077,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -1077,7 +1077,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1188,7 +1188,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -1188,7 +1188,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1217,7 +1217,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -1217,7 +1217,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1232,7 +1232,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -1232,7 +1232,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1247,7 +1247,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -1247,7 +1247,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1262,7 +1262,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -1262,7 +1262,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1277,7 +1277,7 @@ describe('VideoDecoderReliCallbackTest', function () { ...@@ -1277,7 +1277,7 @@ describe('VideoDecoderReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
}) })
...@@ -484,7 +484,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -484,7 +484,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS); DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50; eosFrameId = 10;
workdoneAtEOS = true; workdoneAtEOS = true;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -513,9 +513,9 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -513,9 +513,9 @@ describe('VideoDecoderReliPromiseTest', function () {
*/ */
it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -599,7 +599,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -599,7 +599,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -737,7 +737,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -737,7 +737,7 @@ describe('VideoDecoderReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -849,7 +849,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -849,7 +849,7 @@ describe('VideoDecoderReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -960,7 +960,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -960,7 +960,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1071,7 +1071,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -1071,7 +1071,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_STOP_PROMISE_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_STOP_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1182,7 +1182,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -1182,7 +1182,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_RESET_PROMISE_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_RESET_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1211,7 +1211,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -1211,7 +1211,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0100', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1226,7 +1226,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -1226,7 +1226,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0200', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1241,7 +1241,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -1241,7 +1241,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1256,7 +1256,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -1256,7 +1256,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0400', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
...@@ -1271,7 +1271,7 @@ describe('VideoDecoderReliPromiseTest', function () { ...@@ -1271,7 +1271,7 @@ describe('VideoDecoderReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByMime('video/avc', mySteps, done); toCreateVideoDecoderByMime('video/avc', mySteps, done);
}) })
}) })
...@@ -491,7 +491,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -491,7 +491,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS); DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50; eosFrameId = 10;
workdoneAtEOS = true; workdoneAtEOS = true;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -520,9 +520,9 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -520,9 +520,9 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
*/ */
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -606,7 +606,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -606,7 +606,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -744,7 +744,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -744,7 +744,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -856,7 +856,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -856,7 +856,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -967,7 +967,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -967,7 +967,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1078,7 +1078,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -1078,7 +1078,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1189,7 +1189,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -1189,7 +1189,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1218,7 +1218,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -1218,7 +1218,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1233,7 +1233,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -1233,7 +1233,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1248,7 +1248,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -1248,7 +1248,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1263,7 +1263,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -1263,7 +1263,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1278,7 +1278,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { ...@@ -1278,7 +1278,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
}) })
...@@ -486,7 +486,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -486,7 +486,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_ALL_OUTS); DECODE_STEP.WAIT_FOR_ALL_OUTS);
eosFrameId = 50; eosFrameId = 10;
workdoneAtEOS = true; workdoneAtEOS = true;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -515,9 +515,9 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -515,9 +515,9 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
*/ */
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP,
DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -601,7 +601,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -601,7 +601,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -739,7 +739,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -739,7 +739,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.WAIT_FOR_EOS ,
DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -851,7 +851,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -851,7 +851,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START,
DECODE_STEP.ERROR, DECODE_STEP.RELEASE); DECODE_STEP.ERROR, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -962,7 +962,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -962,7 +962,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1073,7 +1073,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -1073,7 +1073,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_PROMISE_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1184,7 +1184,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -1184,7 +1184,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_PROMISE_0700', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_PROMISE_0700', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1213,7 +1213,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -1213,7 +1213,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0100', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0100', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1228,7 +1228,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -1228,7 +1228,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0200', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0200', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1243,7 +1243,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -1243,7 +1243,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0300', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0300', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1258,7 +1258,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -1258,7 +1258,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0400', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0400', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
...@@ -1273,7 +1273,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { ...@@ -1273,7 +1273,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () {
it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0500', 0, async function (done) { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0500', 0, async function (done) {
let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START,
DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE);
eosFrameId = 50; eosFrameId = 10;
toCreateVideoDecoderByName('avdec_h264', mySteps, done); toCreateVideoDecoderByName('avdec_h264', mySteps, done);
}) })
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册