covert rgb_to_yuv.c to rgb_to_yuv.cc (#2757)
parent
a96857f1aa
commit
3d63b3d414
|
@ -374,7 +374,7 @@ selfdrive/camerad/cameras/camera_qcom.h
|
|||
selfdrive/camerad/cameras/debayer.cl
|
||||
selfdrive/camerad/cameras/sensor_i2c.h
|
||||
|
||||
selfdrive/camerad/transforms/rgb_to_yuv.c
|
||||
selfdrive/camerad/transforms/rgb_to_yuv.cc
|
||||
selfdrive/camerad/transforms/rgb_to_yuv.h
|
||||
selfdrive/camerad/transforms/rgb_to_yuv.cl
|
||||
selfdrive/camerad/transforms/rgb_to_yuv_test.cc
|
||||
|
|
|
@ -34,7 +34,7 @@ env.SharedLibrary('snapshot/visionipc',
|
|||
env.Program('camerad', [
|
||||
'main.cc',
|
||||
'cameras/camera_common.cc',
|
||||
'transforms/rgb_to_yuv.c',
|
||||
'transforms/rgb_to_yuv.cc',
|
||||
'imgproc/utils.cc',
|
||||
cameras,
|
||||
], LIBS=libs)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef RGB_TO_YUV_H
|
||||
#define RGB_TO_YUV_H
|
||||
#pragma once
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
@ -10,10 +9,6 @@
|
|||
#include <CL/cl.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int width, height;
|
||||
cl_kernel rgb_to_yuv_krnl;
|
||||
|
@ -24,9 +19,3 @@ void rgb_to_yuv_init(RGBToYUVState* s, cl_context ctx, cl_device_id device_id, i
|
|||
void rgb_to_yuv_destroy(RGBToYUVState* s);
|
||||
|
||||
void rgb_to_yuv_queue(RGBToYUVState* s, cl_command_queue q, cl_mem rgb_cl, cl_mem yuv_cl);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // RGB_TO_YUV_H
|
||||
|
|
Loading…
Reference in New Issue