-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffmpeg-qsv: add mfx runtime check test
Signed-off-by: U. Artie Eoff <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### | ||
### Copyright (C) 2021 Intel Corporation | ||
### | ||
### SPDX-License-Identifier: BSD-3-Clause | ||
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### | ||
### Copyright (C) 2021 Intel Corporation | ||
### | ||
### SPDX-License-Identifier: BSD-3-Clause | ||
### | ||
|
||
import slash | ||
|
||
from ....lib.common import get_media | ||
from ....lib.ffmpeg.qsv.util import * | ||
from ....lib.mfx.runtime import MFXRuntimeTest | ||
|
||
@slash.requires(have_ffmpeg) | ||
@slash.requires(have_ffmpeg_qsv_accel) | ||
@slash.requires(using_compatible_driver) | ||
class detect(MFXRuntimeTest): | ||
def before(self): | ||
super().before() | ||
self.renderDevice = get_media().render_device | ||
|
||
def test(self): | ||
self.check( | ||
"ffmpeg -nostats -v verbose -init_hw_device qsv=qsv:hw" | ||
" -qsv_device {renderDevice} -hwaccel qsv" | ||
" -filter_hw_device qsv -f lavfi -i yuvtestsrc" | ||
" -f null /dev/null".format(**vars(self)) | ||
) |