mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-22 09:42:10 +08:00
Scale up dm preview in raylib
This commit is contained in:
@@ -755,7 +755,11 @@ class AugmentedRoadView(CameraView):
|
||||
|
||||
def _calc_frame_matrix(self, rect: rl.Rectangle) -> np.ndarray:
|
||||
if self.stream_type == DRIVER_CAM:
|
||||
return CameraView._calc_frame_matrix(self, rect)
|
||||
base = CameraView._calc_frame_matrix(self, rect)
|
||||
driver_view_ratio = 1.5
|
||||
base[0, 0] *= driver_view_ratio
|
||||
base[1, 1] *= driver_view_ratio
|
||||
return base
|
||||
|
||||
# Get camera configuration
|
||||
# TODO: cache with vEgo?
|
||||
|
||||
@@ -248,7 +248,11 @@ class AugmentedRoadView(CameraView):
|
||||
|
||||
def _calc_frame_matrix(self, rect: rl.Rectangle) -> np.ndarray:
|
||||
if self.stream_type == DRIVER_CAM:
|
||||
return CameraView._calc_frame_matrix(self, rect)
|
||||
base = CameraView._calc_frame_matrix(self, rect)
|
||||
driver_view_ratio = 2.0
|
||||
base[0, 0] *= driver_view_ratio
|
||||
base[1, 1] *= driver_view_ratio
|
||||
return base
|
||||
|
||||
# Check if we can use cached matrix
|
||||
cache_key = (
|
||||
|
||||
Reference in New Issue
Block a user