diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-02-25 22:10:57 -0600 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-02-26 19:55:58 -0600 |
| commit | ae050f664a1f197bba2306271c7f5f8c2c2304f9 (patch) | |
| tree | c3d7337f239fd5ade350f727eeb8aefc5ede0984 /yuvbench/yuvbench.h | |
| parent | 89926aaf654f9edd79f58eb4e39d826f9690c456 (diff) | |
yuvbench
Diffstat (limited to 'yuvbench/yuvbench.h')
| -rw-r--r-- | yuvbench/yuvbench.h | 27 |
1 files changed, 26 insertions, 1 deletions
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 <assert.h> +#include <errno.h> +#include <stdbool.h> #include <stdio.h> +#include <stdlib.h> +#include <string.h> -#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_ |