From b32386cc354f50eabed87ce206e0f3d6d9f50b93 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 12 Mar 2021 03:42:16 +0800 Subject: [PATCH] transform_queue: const mat3& projection (#20316) --- selfdrive/modeld/transforms/transform.cc | 2 +- selfdrive/modeld/transforms/transform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/modeld/transforms/transform.cc b/selfdrive/modeld/transforms/transform.cc index 3ea799499f..056267aca8 100644 --- a/selfdrive/modeld/transforms/transform.cc +++ b/selfdrive/modeld/transforms/transform.cc @@ -28,7 +28,7 @@ void transform_queue(Transform* s, cl_mem in_yuv, int in_width, int in_height, cl_mem out_y, cl_mem out_u, cl_mem out_v, int out_width, int out_height, - mat3 projection) { + const mat3& projection) { const int zero = 0; // sampled using pixel center origin diff --git a/selfdrive/modeld/transforms/transform.h b/selfdrive/modeld/transforms/transform.h index 21933f4d1f..3bce6f8a72 100644 --- a/selfdrive/modeld/transforms/transform.h +++ b/selfdrive/modeld/transforms/transform.h @@ -25,4 +25,4 @@ void transform_queue(Transform* s, cl_command_queue q, cl_mem yuv, int in_width, int in_height, cl_mem out_y, cl_mem out_u, cl_mem out_v, int out_width, int out_height, - mat3 projection); + const mat3& projection);