diff --git a/src/pidng/camdefs.py b/src/pidng/camdefs.py index 688a929..488389e 100644 --- a/src/pidng/camdefs.py +++ b/src/pidng/camdefs.py @@ -129,9 +129,10 @@ def __settings__(self) -> None: self.tags.set(Tag.ProfileEmbedPolicy, [profile_embed]) class RaspberryPiHqCamera(BaseCameraModel): - def __init__(self, sensor_mode : int, cfaPattern=CFAPattern.BGGR, orientation=Orientation.Horizontal) -> None: + def __init__(self, sensor_mode : int, fmt : dict, cfaPattern=CFAPattern.BGGR, orientation=Orientation.Horizontal) -> None: super().__init__() self.model = RaspberryPiCameraModels.Raspberry_Pi_High_Quality_Camera + self.fmt = fmt self.mode = sensor_mode self.orientation = orientation self.cfaPattern = cfaPattern @@ -160,6 +161,9 @@ def __settings__(self) -> None: else: bpp = 10 + self.fmt['size']=(width,height) + self.fmt['bpp']=bpp + profile_name = "Repro 2_5D no LUT - D65 is really 5960K" profile_embed = 3