-
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.
Merge branch 'master' into ffmpeg-stringapi
- Loading branch information
Showing
17 changed files
with
222 additions
and
25 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,31 @@ | ||
name: unit | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ubuntu-version: [ "ubuntu-22.04", "ubuntu-24.04", "ubuntu-latest" ] | ||
python-version: [ "3.10", "3.11", "3.12" ] | ||
runs-on: ${{ matrix.ubuntu-version }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: 'true' | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt setuptools | ||
sudo sysctl kernel.dmesg_restrict=0 | ||
- name: Test "list" | ||
run: ./vaapi-fits list | ||
- name: Test "self" | ||
run: ./vaapi-fits run --pl NA --device /dev/null -vv --parallel-metrics --call-timeout 10 --ctapr 0 test/self |
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
slash>=1.12.0 | ||
slash >= 1.12.0 | ||
numpy | ||
scikit-image | ||
distro | ||
|
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,29 @@ | ||
### | ||
### Copyright (C) 2024 Intel Corporation | ||
### | ||
### SPDX-License-Identifier: BSD-3-Clause | ||
### | ||
|
||
from .....lib import * | ||
from .....lib.ffmpeg.vaapi.util import * | ||
from .....lib.ffmpeg.vaapi.decoder import DecoderTest | ||
|
||
spec = load_test_spec("vvc", "decode", "10bit") | ||
|
||
@slash.requires(*platform.have_caps("decode", "vvc_10")) | ||
@slash.requires(*have_ffmpeg_decoder("vvc")) | ||
class default(DecoderTest): | ||
def before(self): | ||
vars(self).update( | ||
caps = platform.get_caps("decode", "vvc_10"), | ||
ffdecoder = "vvc", | ||
metric = dict(type = "ssim", miny = 1.0, minu = 1.0, minv = 1.0), # default metric | ||
strict = -2, # Currently, VVC decoder is experimental. Enable it with strict. | ||
) | ||
super().before() | ||
|
||
@slash.parametrize(("case"), sorted(spec.keys())) | ||
def test(self, case): | ||
vars(self).update(spec[case].copy()) | ||
self.case = case | ||
self.decode() |
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,29 @@ | ||
### | ||
### Copyright (C) 2024 Intel Corporation | ||
### | ||
### SPDX-License-Identifier: BSD-3-Clause | ||
### | ||
|
||
from ....lib import * | ||
from ....lib.ffmpeg.vaapi.util import * | ||
from ....lib.ffmpeg.vaapi.decoder import DecoderTest | ||
|
||
spec = load_test_spec("vvc", "decode", "8bit") | ||
|
||
@slash.requires(*platform.have_caps("decode", "vvc_8")) | ||
@slash.requires(*have_ffmpeg_decoder("vvc")) | ||
class default(DecoderTest): | ||
def before(self): | ||
vars(self).update( | ||
caps = platform.get_caps("decode", "vvc_8"), | ||
ffdecoder = "vvc", | ||
metric = dict(type = "ssim", miny = 1.0, minu = 1.0, minv = 1.0), # default metric | ||
strict = -2, # Currently, VVC decoder is experimental. Enable it with strict. | ||
) | ||
super().before() | ||
|
||
@slash.parametrize(("case"), sorted(spec.keys())) | ||
def test(self, case): | ||
vars(self).update(spec[case].copy()) | ||
self.case = case | ||
self.decode() |
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,25 @@ | ||
### | ||
### Copyright (C) 2024 Intel Corporation | ||
### | ||
### SPDX-License-Identifier: BSD-3-Clause | ||
### | ||
|
||
from .....lib import * | ||
from .....lib.gstreamer.va.util import * | ||
from .....lib.gstreamer.va.decoder import VVC_10DecoderTest as DecoderTest | ||
|
||
spec = load_test_spec("vvc", "decode", "10bit") | ||
|
||
class default(DecoderTest): | ||
def before(self): | ||
# default metric | ||
vars(self).update( | ||
metric = dict(type = "ssim", miny = 1.0, minu = 1.0, minv = 1.0), | ||
) | ||
super().before() | ||
|
||
@slash.parametrize(("case"), sorted(spec.keys())) | ||
def test(self, case): | ||
vars(self).update(spec[case].copy()) | ||
self.case = case | ||
self.decode() |
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,25 @@ | ||
### | ||
### Copyright (C) 2024 Intel Corporation | ||
### | ||
### SPDX-License-Identifier: BSD-3-Clause | ||
### | ||
|
||
from ....lib import * | ||
from ....lib.gstreamer.va.util import * | ||
from ....lib.gstreamer.va.decoder import VVC_8DecoderTest as DecoderTest | ||
|
||
spec = load_test_spec("vvc", "decode", "8bit") | ||
|
||
class default(DecoderTest): | ||
def before(self): | ||
# default metric | ||
vars(self).update( | ||
metric = dict(type = "ssim", miny = 1.0, minu = 1.0, minv = 1.0), | ||
) | ||
super().before() | ||
|
||
@slash.parametrize(("case"), sorted(spec.keys())) | ||
def test(self, case): | ||
vars(self).update(spec[case].copy()) | ||
self.case = case | ||
self.decode() |
Oops, something went wrong.