mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-12 21:02:13 +08:00
8b44d6978d
date: 2024-02-21T23:02:42 master commit: 0b4d08fab8e35a264bc7383e878538f8083c33e5
17 lines
458 B
C
17 lines
458 B
C
#pragma once
|
|
|
|
#include "common/clutil.h"
|
|
|
|
typedef struct {
|
|
int width, height;
|
|
cl_kernel loadys_krnl, loaduv_krnl, copy_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, bool do_shift = false);
|