mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 08:50:54 +00:00
Compare commits
3 Commits
19-unusual
...
v1.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 610d406e97 | |||
| 28307608fc | |||
| 9ab3804c89 |
@@ -1,8 +1,8 @@
|
||||
# pycmx
|
||||
# (c) 2018-2025 Jamie Hardt
|
||||
|
||||
from pycmx.cdl import AscSopComponents, FramecountTriple
|
||||
from pycmx.statements import (
|
||||
from .cdl import AscSopComponents, FramecountTriple
|
||||
from .statements import (
|
||||
StmtCdlSat,
|
||||
StmtCdlSop,
|
||||
StmtFrmc,
|
||||
@@ -177,6 +177,16 @@ class Edit:
|
||||
|
||||
return self._asc_sop_statement.cdl_sop
|
||||
|
||||
@property
|
||||
def asc_sop_raw(self) -> Optional[str]:
|
||||
"""
|
||||
ASC CDL Slope-Offset-Power statement raw line
|
||||
"""
|
||||
if self._asc_sop_statement is None:
|
||||
return None
|
||||
|
||||
return self._asc_sop_statement.line
|
||||
|
||||
@property
|
||||
def asc_sat(self) -> Optional[float]:
|
||||
"""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# pycmx
|
||||
# (c) 2018-2025 Jamie Hardt
|
||||
|
||||
from pycmx.statements import (StmtCorruptRemark, StmtTitle, StmtEvent,
|
||||
from .statements import (StmtCorruptRemark, StmtTitle, StmtEvent,
|
||||
StmtUnrecognized, StmtSourceUMID)
|
||||
from .event import Event
|
||||
from .channel_map import ChannelMap
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# pycmx
|
||||
# (c) 2023-2025 Jamie Hardt
|
||||
|
||||
from pycmx.statements import StmtFrmc
|
||||
from .parse_cmx_statements import (
|
||||
StmtEvent, StmtClipName, StmtSourceFile, StmtAudioExt, StmtUnrecognized,
|
||||
StmtEffectsName, StmtCdlSop, StmtCdlSat)
|
||||
from .statements import (StmtFrmc, StmtEvent, StmtClipName, StmtSourceFile,
|
||||
StmtAudioExt, StmtUnrecognized, StmtEffectsName,
|
||||
StmtCdlSop, StmtCdlSat)
|
||||
from .edit import Edit
|
||||
|
||||
from typing import List, Generator, Optional, Tuple, Any
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import re
|
||||
from typing import TextIO, List
|
||||
|
||||
from pycmx.cdl import AscSopComponents, Rgb
|
||||
from .cdl import AscSopComponents, Rgb
|
||||
|
||||
from .statements import (StmtCdlSat, StmtCdlSop, StmtCorruptRemark, StmtFrmc,
|
||||
StmtRemark, StmtTitle, StmtUnrecognized, StmtFCM,
|
||||
@@ -121,12 +121,16 @@ def _parse_remark(line, line_number) -> object:
|
||||
|
||||
else:
|
||||
try:
|
||||
return StmtCdlSop(cdl_sop=AscSopComponents(
|
||||
slope=Rgb(red=float(v[0][0]), green=float(v[0][1]),
|
||||
return StmtCdlSop(line=line,
|
||||
cdl_sop=AscSopComponents(
|
||||
slope=Rgb(red=float(v[0][0]),
|
||||
green=float(v[0][1]),
|
||||
blue=float(v[0][2])),
|
||||
offset=Rgb(red=float(v[1][0]), green=float(v[1][1]),
|
||||
offset=Rgb(red=float(v[1][0]),
|
||||
green=float(v[1][1]),
|
||||
blue=float(v[1][2])),
|
||||
power=Rgb(red=float(v[2][0]), green=float(v[2][1]),
|
||||
power=Rgb(red=float(v[2][0]),
|
||||
green=float(v[2][1]),
|
||||
blue=float(v[2][2]))
|
||||
),
|
||||
line_number=line_number)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
from typing import Any, NamedTuple
|
||||
|
||||
from pycmx.cdl import AscSopComponents
|
||||
from .cdl import AscSopComponents
|
||||
|
||||
# type str = str
|
||||
|
||||
@@ -50,6 +50,7 @@ class StmtSourceFile(NamedTuple):
|
||||
|
||||
|
||||
class StmtCdlSop(NamedTuple):
|
||||
line: str
|
||||
cdl_sop: AscSopComponents[float]
|
||||
line_number: int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user