Assert buffer size

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
pull/24335/head
Shane Smiskol 3 years ago committed by GitHub
parent f897b3868e
commit d753b041c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/ui/qt/widgets/cameraview.cc

@ -56,6 +56,7 @@ const mat4 device_transform = {{
}};
const int FRAME_BUFFER_SIZE = 4;
static_assert(FRAME_BUFFER_SIZE <= YUV_BUFFER_COUNT);
mat4 get_driver_view_transform(int screen_width, int screen_height, int stream_width, int stream_height) {
const float driver_view_ratio = 1.333;

Loading…
Cancel
Save