Models for CINE file metadata.
Module Contents
API
-
boilercine.models.BYTES_TYPE_FIELDS
None
-
boilercine.models.CHAR_ARRAY_FIELDS
None
-
boilercine.models.LIST_TYPE_FIELDS
None
-
boilercine.models.SETUP_IGNORED_FIELDS
None
Ignore these fields.
See: ottomatic-io/pycine
-
boilercine.models.SETUP_FIELDS_MAPPING_ORIGINAL_TO_UPDATED
None
Use the updated fields here instead of the original ones.
See: ottomatic-io/pycine
-
boilercine.models.SETUP_FIELDS_TO_REMOVE
None
None
These fields are invalid for the camera and PCC software used in this study.
-
boilercine.models.SETUP_INVALID_FIELDS_THIS_STUDY
None
These setup fields are invalid for the camera and PCC software used in this study.
-
boilercine.models.FIELDS_TO_REMOVE_THIS_STUDY
None
-
boilercine.models.struct_to_dict(
- structure,
)
Convert a C-style structure to a dictionary from its _fields_
.
-
boilercine.models.capfirst(
- string: str,
) → str
Capitalize the first letter of a string.
-
class boilercine.models.Time64
Time64 struct.
See: ottomatic-io/pycine
-
fractions: int
None
-
seconds: int
None
-
class boilercine.models.ImFilter
Image filter.
-
dim: int
None
-
shifts: int
None
-
bias: int
None
-
Coef: list[int]
None
-
class boilercine.models.Rect
Crop rectangle.
-
left: int
None
-
top: int
None
-
right: int
None
-
bottom: int
None
-
class boilercine.models.TC
Time code according to the standard SMPTE 12M-1999.
-
framesU: int
None
-
framesT: int
None
-
dropFrameFlag: int
None
-
colorFrameFlag: int
None
-
secondsU: int
None
-
secondsT: int
None
-
flag1: int
None
-
minutesU: int
None
-
minutesT: int
None
-
flag2: int
None
-
hoursU: int
None
-
hoursT: int
None
-
flag3: int
None
-
flag4: int
None
-
userBitData: int
None
-
class boilercine.models.WBGain2
White balance, gain correction.
-
R: float
None
-
B: float
None
CINE file header.
See: ottomatic-io/pycine
None
None
None
None
None
None
None
None
None
None
None
None
Bitmap info header.
See: ottomatic-io/pycine
None
None
None
None
None
None
None
None
None
None
None
-
class boilercine.models.Setup
Setup header.
See: ottomatic-io/pycine
-
FrameRate16: int
None
-
Shutter16: int
None
-
PostTrigger16: int
None
-
FrameDelay16: int
None
-
AspectRatio: int
None
-
Res7: int
None
-
Res8: int
None
-
Res9: int
None
-
Res10: int
None
-
Res11: int
None
-
TrigFrame: int
None
-
Res12: int
None
-
DescriptionOld: bytes
None
-
Mark: int
None
-
Length: int
None
-
Res13: int
None
-
SigOption: int
None
-
BinChannels: int
None
-
SamplesPerImage: int
None
-
BinName: bytes
None
-
AnaOption: int
None
-
AnaChannels: int
None
-
Res6: int
None
-
AnaBoard: int
None
-
ChOption: list[int]
None
-
AnaGain: list[float]
None
-
AnaUnit: bytes
None
-
AnaName: bytes
None
-
lFirstImage: int
None
-
dwImageCount: int
None
-
nQFactor: int
None
-
wCineFileType: int
None
-
szCinePath: bytes
None
-
Res14: int
None
-
Res15: int
None
-
Res16: int
None
-
Res17: int
None
-
Res18: float
None
-
Res19: float
None
-
Res20: int
None
-
Res1: int
None
-
Res2: int
None
-
Res3: int
None
-
ImWidth: int
None
-
ImHeight: int
None
-
EDRShutter16: int
None
-
Serial: int
None
-
Saturation: int
None
-
Res5: int
None
-
AutoExposure: int
None
-
bFlipH: bool
None
-
bFlipV: bool
None
-
Grid: int
None
-
FrameRate: int
None
-
Shutter: int
None
-
EDRShutter: int
None
-
PostTrigger: int
None
-
FrameDelay: int
None
-
bEnableColor: bool
None
-
CameraVersion: int
None
-
FirmwareVersion: int
None
-
SoftwareVersion: int
None
-
RecordingTimeZone: int
None
-
CFA: int
None
-
Bright: int
None
-
Contrast: int
None
-
Gamma: int
None
-
Res21: int
None
-
AutoExpLevel: int
None
-
AutoExpSpeed: int
None
-
AutoExpRect: boilercine.models.Rect
None
-
WBGain: list[boilercine.models.WBGain2]
None
-
Rotate: int
None
-
WBView: boilercine.models.WBGain2
None
-
RealBPP: int
None
-
Conv8Min: int
None
-
Conv8Max: int
None
-
FilterCode: int
None
-
FilterParam: int
None
-
UF: boilercine.models.ImFilter
None
-
BlackCalSVer: int
None
-
WhiteCalSVer: int
None
-
GrayCalSVer: int
None
-
bStampTime: bool
None
-
SoundDest: int
None
-
FRPSteps: int
None
-
FRPImgNr: list[int]
None
-
FRPRate: list[int]
None
-
FRPExp: list[int]
None
-
MCCnt: int
None
-
MCPercent: list[float]
None
-
CICalib: int
None
-
CalibWidth: int
None
-
CalibHeight: int
None
-
CalibRate: int
None
-
CalibExp: int
None
-
CalibEDR: int
None
-
CalibTemp: int
None
-
HeadSerial: list[int]
None
-
RangeCode: int
None
-
RangeSize: int
None
-
Decimation: int
None
-
MasterSerial: int
None
-
Sensor: int
None
-
ShutterNs: int
None
-
EDRShutterNs: int
None
-
FrameDelayNs: int
None
-
ImPosXAcq: int
None
-
ImPosYAcq: int
None
-
ImWidthAcq: int
None
-
ImHeightAcq: int
None
-
Description: bytes
None
-
RisingEdge: bool
None
-
FilterTime: int
None
-
LongReady: bool
None
-
ShutterOff: bool
None
-
Res4: list[int]
None
-
bMetaWB: bool
None
-
Hue: int
None
-
BlackLevel: int
None
-
WhiteLevel: int
None
-
LensDescription: bytes
None
-
LensAperture: float
None
-
LensFocusDistance: float
None
-
LensFocalLength: float
None
-
fOffset: float
None
-
fGain: float
None
-
fSaturation: float
None
-
fHue: float
None
-
fGamma: float
None
-
fGammaR: float
None
-
fGammaB: float
None
-
fFlare: float
None
-
fPedestalR: float
None
-
fPedestalG: float
None
-
fPedestalB: float
None
-
fChroma: float
None
-
ToneLabel: bytes
None
-
TonePoints: int
None
-
fTone: list[float]
None
-
UserMatrixLabel: bytes
None
-
EnableMatrices: bool
None
-
cmUser: list[float]
None
-
EnableCrop: bool
None
-
CropRect: boilercine.models.Rect
None
-
EnableResample: bool
None
-
ResampleWidth: int
None
-
ResampleHeight: int
None
-
fGain16_8: float
None
-
FRPShape: list[int]
None
-
TrigTC: boilercine.models.TC
None
-
fPbRate: float
None
-
fTcRate: float
None
-
CineName: bytes
None
-
fGainR: float
None
-
fGainG: float
None
-
fGainB: float
None
-
cmCalib: list[float]
None
-
fWBTemp: float
None
-
fWBCc: float
None
-
CalibrationInfo: bytes
None
-
OpticalFilter: bytes
None
-
GpsInfo: bytes
None
-
Uuid: bytes
None
-
CreatedBy: bytes
None
-
RecBPP: int
None
-
LowestFormatBPP: int
None
-
LowestFormatQ: int
None
-
fToe: float
None
-
LogMode: int
None
-
CameraModel: bytes
None
-
WBType: int
None
-
fDecimation: float
None
-
MagSerial: int
None
-
CSSerial: int
None
-
dFrameRate: float
None
-
SensorMode: int
None
-
__post_init__()
Convert low-level structures to dataclasses.
Top-level header for CINE file metadata.
See: ottomatic-io/pycine.
None
None
None
None
List of pointers to each image in the video for low-level indexing.
None
Array of timestamps for each image in the video.
None
Array of the UTC time for each image in the video.
None
Array of exposure times for each image in the video.
None
The timezone in which the video was created.
- timezone: datetime.tzinfo,
)
Convert low-level structures to dataclasses.
- cine_file: pathlib.Path,
- timezone: datetime.tzinfo,
) → Self
Extract the header from a CINE file.
Flattened header for CINE file metadata.
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
- header: boilercine.models.Header,
- timezone: datetime.tzinfo,
) → Self
Flatten a header.
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
- flat: boilercine.models.FlatHeader,
- exposure_time: int,
) → Self
Remove fields specific to this study.