mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-01 17:30:41 +00:00
Made quick fixes of these to get tests working
This commit is contained in:
6
.idea/wavinfo.iml
generated
6
.idea/wavinfo.iml
generated
@@ -1,8 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="PYTHON_MODULE" version="4">
|
<module type="PYTHON_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$">
|
||||||
<orderEntry type="jdk" jdkName="Python 3.8 (wavinfo)" jdkType="Python SDK" />
|
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
lxml~=4.5.2
|
||||||
|
setuptools~=49.6.0
|
||||||
|
ear~=2.0.0
|
||||||
2
setup.py
2
setup.py
@@ -31,7 +31,7 @@ setup(name='wavinfo',
|
|||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8"],
|
"Programming Language :: Python :: 3.8"],
|
||||||
keywords='waveform metadata audio ebu smpte avi library film tv editing editorial',
|
keywords='waveform metadata audio ebu smpte avi library film tv editing editorial',
|
||||||
install_requires=['lxml'],
|
install_requires=['lxml', 'ear'],
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'wavinfo = wavinfo.__main__:main'
|
'wavinfo = wavinfo.__main__:main'
|
||||||
|
|||||||
@@ -21,12 +21,15 @@ class _DPPGenericDownMixLevel(Enum):
|
|||||||
MUTE = 0b111
|
MUTE = 0b111
|
||||||
|
|
||||||
|
|
||||||
class _DPPGenericInUseIndicator(Enum):
|
class DPPDolbySurroundEncodingMode(Enum):
|
||||||
RESERVED = 0b11
|
RESERVED = 0b11
|
||||||
IN_USE = 0b10
|
IN_USE = 0b10
|
||||||
NOT_IN_USE = 0b01
|
NOT_IN_USE = 0b01
|
||||||
NOT_INDICATED = 0b00
|
NOT_INDICATED = 0b00
|
||||||
|
|
||||||
|
# DPPLoRoDownMixCenterLevel
|
||||||
|
# DPPLtRtCenterMixLevel
|
||||||
|
# DPPLtRtSurroundMixLevel
|
||||||
|
|
||||||
class DolbyMetadataSegmentTypes(IntEnum):
|
class DolbyMetadataSegmentTypes(IntEnum):
|
||||||
END_MARKER = 0
|
END_MARKER = 0
|
||||||
@@ -88,13 +91,6 @@ class DPPSurroundDownMixLevel(Enum):
|
|||||||
RESERVED = 0b11
|
RESERVED = 0b11
|
||||||
|
|
||||||
|
|
||||||
class DPPDolbySurroundEncodingMode(_DPPGenericInUseIndicator):
|
|
||||||
"""
|
|
||||||
`dsurmod` § 4.3.3.3
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class DPPLanguageCode(Enum):
|
class DPPLanguageCode(Enum):
|
||||||
"""
|
"""
|
||||||
§ 4.3.4.1 , 4.3.5 (always 0xFF)
|
§ 4.3.4.1 , 4.3.5 (always 0xFF)
|
||||||
@@ -122,20 +118,6 @@ class DPPRoomTime(Enum):
|
|||||||
RESERVED = 0b11
|
RESERVED = 0b11
|
||||||
|
|
||||||
|
|
||||||
class DPPLoRoDownMixCenterLevel(_DPPGenericDownMixLevel):
|
|
||||||
"""
|
|
||||||
`lorocmixlev` § 4.3.7.1
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class DPPLoRoDownMixSurroundLevel(_DPPGenericDownMixLevel):
|
|
||||||
"""
|
|
||||||
`lorosurmixlev` 4.3.7.2
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class DPPPreferredDownMixMode(Enum):
|
class DPPPreferredDownMixMode(Enum):
|
||||||
"""
|
"""
|
||||||
§ 4.3.8.1
|
§ 4.3.8.1
|
||||||
@@ -146,20 +128,20 @@ class DPPPreferredDownMixMode(Enum):
|
|||||||
PRO_LOGIC_2 = 0b11
|
PRO_LOGIC_2 = 0b11
|
||||||
|
|
||||||
|
|
||||||
class DPPLtRtCenterMixLevel(_DPPGenericDownMixLevel):
|
# class DPPLtRtCenterMixLevel(_DPPGenericDownMixLevel):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
|
#
|
||||||
class DPPLtRtSurroundMixLevel(_DPPGenericDownMixLevel):
|
# class DPPLtRtSurroundMixLevel(_DPPGenericDownMixLevel):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
|
#
|
||||||
class DPPSurroundEXMode(_DPPGenericInUseIndicator):
|
# class DPPSurroundEXMode(_DPPGenericInUseIndicator):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
|
#
|
||||||
class DPPHeadphoneMode(_DPPGenericInUseIndicator):
|
# class DPPHeadphoneMode(_DPPGenericInUseIndicator):
|
||||||
pass
|
# pass
|
||||||
|
|
||||||
|
|
||||||
class DPPADConverterType(Enum):
|
class DPPADConverterType(Enum):
|
||||||
|
|||||||
9
wavinfo/wave_axml_reader.py
Normal file
9
wavinfo/wave_axml_reader.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from lxml import etree as ET
|
||||||
|
from collections import namedtuple
|
||||||
|
|
||||||
|
from ear.fileio.bw64 import Bw64Reader
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
# import xml.etree.ElementTree as ET
|
|
||||||
from lxml import etree as ET
|
from lxml import etree as ET
|
||||||
import io
|
import io
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|||||||
Reference in New Issue
Block a user