Skip to content

Commit

Permalink
ffmpeg-qsv: add mfx runtime check test
Browse files Browse the repository at this point in the history
Signed-off-by: U. Artie Eoff <[email protected]>
  • Loading branch information
uartie authored and FocusLuo committed Jun 24, 2021
1 parent 4219b8a commit c8d247b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/ffmpeg-qsv/general/__init__.py
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
###
27 changes: 27 additions & 0 deletions test/ffmpeg-qsv/general/runtime.py
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))
)

0 comments on commit c8d247b

Please sign in to comment.