From ae050f664a1f197bba2306271c7f5f8c2c2304f9 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Wed, 25 Feb 2026 22:10:57 -0600 Subject: yuvbench --- yuvbench/yuvbench.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'yuvbench/yuvbench.h') diff --git a/yuvbench/yuvbench.h b/yuvbench/yuvbench.h index fafa933..ba6711a 100644 --- a/yuvbench/yuvbench.h +++ b/yuvbench/yuvbench.h @@ -1,7 +1,32 @@ #ifndef _YUVBENCH_H_ #define _YUVBENCH_H_ +#include +#include +#include #include +#include +#include -#endif // _YUVBENCH_H_ +typedef struct Ctx Ctx; +struct Ctx +{ + uint32_t inp_w; + uint32_t inp_h; + const void* inp_buf; + size_t inp_len; + void* out_buf; + size_t out_len; + + void* user; +}; +typedef struct Backend Backend; +struct Backend +{ + bool(*init_fn)(Ctx* ctx); + bool(*convert_fn)(Ctx* ctx); + void(*deinit_fn)(Ctx* ctx); +}; + +#endif // _YUVBENCH_H_ -- cgit v1.2.3