-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'mazdermind/bugfix/137-field_order_progr…
…essive'
- Loading branch information
Showing
11 changed files
with
236 additions
and
47 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
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
Empty file.
Empty file.
Empty file.
46 changes: 46 additions & 0 deletions
46
voctocore/tests/sources/avsource/decklinkavsource/test_deinterlacer_setting.py
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,46 @@ | ||
from tests.helper.voctomix_test import VoctomixTest | ||
from gi.repository import Gst | ||
from lib.sources import DeckLinkAVSource | ||
from lib.config import Config | ||
|
||
|
||
# noinspection PyUnusedLocal | ||
class AudiomixMultipleSources(VoctomixTest): | ||
def setUp(self): | ||
super().setUp() | ||
|
||
Config.given("mix", "videocaps", "video/x-raw") | ||
Config.given("source.cam1", "kind", "decklink") | ||
Config.given("source.cam1", "devicenumber", "23") | ||
|
||
self.source = DeckLinkAVSource('cam1', ['test_mixer', 'test_preview'], has_audio=True, has_video=True) | ||
|
||
def test_unconfigured_does_not_add_a_deinterlacer(self): | ||
pipeline = self.simulate_connection_and_aquire_pipeline_description() | ||
self.assertRegexAnyWhitespace(pipeline, "videoconvert ! videoscale") | ||
|
||
def test_no_does_not_add_a_deinterlacer(self): | ||
Config.given("source.cam1", "deinterlace", "no") | ||
|
||
pipeline = self.simulate_connection_and_aquire_pipeline_description() | ||
self.assertRegexAnyWhitespace(pipeline, "videoconvert ! videoscale") | ||
|
||
def test_yes_does_add_yadif(self): | ||
Config.given("source.cam1", "deinterlace", "yes") | ||
|
||
pipeline = self.simulate_connection_and_aquire_pipeline_description() | ||
self.assertRegexAnyWhitespace(pipeline, "videoconvert ! yadif mode=interlaced ! videoscale") | ||
|
||
def simulate_connection_and_aquire_pipeline_description(self): | ||
Gst.parse_launch.reset_mock() | ||
self.source.launch_pipeline() | ||
|
||
Gst.parse_launch.assert_called() | ||
args, kwargs = Gst.parse_launch.call_args_list[0] | ||
pipeline = args[0] | ||
|
||
return pipeline | ||
|
||
def assertRegexAnyWhitespace(self, text, regex): | ||
regex = regex.replace(" ", "\s*") | ||
self.assertRegex(text, regex) |
Empty file.
Oops, something went wrong.