Unit test for video ratio scaling
This commit is contained in:
0
test/__init__.py
Normal file
0
test/__init__.py
Normal file
17
test/test_aspect.py
Normal file
17
test/test_aspect.py
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
from minfo import MediaInfo, Ratio, Resolution
|
||||
|
||||
def test_square_source():
|
||||
info = MediaInfo()
|
||||
info.general = {
|
||||
|
||||
}
|
||||
info.video = {
|
||||
"Width": 576,
|
||||
"Height": 576,
|
||||
"DisplayAspectRatio": 1.778
|
||||
}
|
||||
info.determine_aspect_properties()
|
||||
|
||||
assert info.resolution == Resolution(576, 576)
|
||||
assert info.pixel_aspect_ratio == Ratio(16, 9)
|
||||
Reference in New Issue
Block a user