Skip to content

Commit

Permalink
Fixed new resolution bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
zrezke committed May 15, 2024
1 parent 791b2c1 commit c4e5f92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/re_viewer/src/depthai/depthai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ pub enum CameraSensorResolution {
THE_1080_P,
THE_1200_P,
THE_1280_P,
THE_1280X3848,
THE_4_K,
THE_4000X3000,
THE_12_MP,
Expand All @@ -152,6 +153,7 @@ impl fmt::Display for CameraSensorResolution {
Self::THE_1080_P => write!(f, "1080p"),
Self::THE_1200_P => write!(f, "1200p"),
Self::THE_1280_P => write!(f, "1280p"),
Self::THE_1280X3848 => write!(f, "1280x3848"),
Self::THE_4_K => write!(f, "4k"),
Self::THE_4000X3000 => write!(f, "4000x3000"),
Self::THE_12_MP => write!(f, "12MP"),
Expand Down
2 changes: 2 additions & 0 deletions rerun_py/depthai_viewer/_backend/device_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class CameraSensorResolution(Enum):
THE_1080_P: str = "THE_1080_P"
THE_1200_P: str = "THE_1200_P"
THE_1280_P: str = "THE_1280_P"
THE_1280X3848: str = "THE_1280X3848"
THE_4_K: str = "THE_4_K"
THE_4000X3000: str = "THE_4000X3000"
THE_12_MP: str = "THE_12_MP"
Expand Down Expand Up @@ -373,6 +374,7 @@ def dict(self, *args, **kwargs) -> Dict[str, Any]: # type: ignore[no-untyped-de
(1280, 720): CameraSensorResolution.THE_720_P,
(1280, 962): CameraSensorResolution.THE_1280_P, # TOF
(1280, 800): CameraSensorResolution.THE_800_P, # OV9782
(1280, 3848): CameraSensorResolution.THE_1280X3848, # TOF
(2592, 1944): CameraSensorResolution.THE_5_MP, # OV5645
(1440, 1080): CameraSensorResolution.THE_1440X1080,
(1920, 1080): CameraSensorResolution.THE_1080_P,
Expand Down

0 comments on commit c4e5f92

Please sign in to comment.