Files
dragonpilot/selfdrive/modeld/transforms/loadyuv.h
Dean Lee 0495426535 Cleanup includes (#20925)
* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
2021-05-17 10:31:31 +02:00

19 lines
457 B
C

#pragma once
#include <inttypes.h>
#include "selfdrive/common/clutil.h"
typedef struct {
int width, height;
cl_kernel loadys_krnl, loaduv_krnl;
} LoadYUVState;
void loadyuv_init(LoadYUVState* s, cl_context ctx, cl_device_id device_id, int width, int height);
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);