mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-21 19:23:53 +08:00
* use cstring instead of string.h * use cstdio instead of stdio.h * remove inttypes.h * use cstdlib instead of stdlib.h * use cstdint instead of stdint.h * #include <cstddef> * cstdlib * use cmath * remove stddef.h * use cassert * use csignal * use ctime * use cerror * rebase master
17 lines
434 B
C
17 lines
434 B
C
#pragma once
|
|
|
|
#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);
|