mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 23:33:58 +08:00
convert loadyuv.c to loadyuv.cc (#2754)
This commit is contained in:
@@ -398,7 +398,8 @@ selfdrive/modeld/models/driving.h
|
||||
selfdrive/modeld/models/dmonitoring.cc
|
||||
selfdrive/modeld/models/dmonitoring.h
|
||||
|
||||
selfdrive/modeld/transforms/loadyuv.[c,h]
|
||||
selfdrive/modeld/transforms/loadyuv.cc
|
||||
selfdrive/modeld/transforms/loadyuv.h
|
||||
selfdrive/modeld/transforms/loadyuv.cl
|
||||
selfdrive/modeld/transforms/transform.cc
|
||||
selfdrive/modeld/transforms/transform.h
|
||||
|
||||
@@ -8,7 +8,7 @@ TEST_THNEED = False
|
||||
common_src = [
|
||||
"models/commonmodel.cc",
|
||||
"runners/snpemodel.cc",
|
||||
"transforms/loadyuv.c",
|
||||
"transforms/loadyuv.cc",
|
||||
"transforms/transform.cc"
|
||||
]
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "clutil.h"
|
||||
|
||||
#include "loadyuv.h"
|
||||
|
||||
void loadyuv_init(LoadYUVState* s, cl_context ctx, cl_device_id device_id, int width, int height) {
|
||||
@@ -1,18 +1,8 @@
|
||||
#ifndef LOADYUV_H
|
||||
#define LOADYUV_H
|
||||
#pragma once
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "clutil.h"
|
||||
|
||||
typedef struct {
|
||||
int width, height;
|
||||
@@ -26,9 +16,3 @@ void loadyuv_destroy(LoadYUVState* s);
|
||||
void loadyuv_queue(LoadYUVState* s, cl_command_queue q,
|
||||
cl_mem y_cl, cl_mem u_cl, cl_mem v_cl,
|
||||
cl_mem out_cl);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // LOADYUV_H
|
||||
|
||||
@@ -49,7 +49,7 @@ all: visiontest
|
||||
|
||||
libvisiontest_inputs := visiontest.c \
|
||||
transforms/transform.cc \
|
||||
transforms/loadyuv.c \
|
||||
transforms/loadyuv.cc \
|
||||
../common/clutil.cc \
|
||||
$(BASEDIR)/selfdrive/common/util.c \
|
||||
$(CEREAL_OBJS)
|
||||
|
||||
Reference in New Issue
Block a user