kmsvnc/va.h

9 lines
419 B
C
Raw Permalink Normal View History

2023-04-29 02:05:13 +08:00
#pragma once
2023-04-29 04:20:35 +08:00
#define VA_MUST(x) do{VAStatus s; if ((s = (x)) != VA_STATUS_SUCCESS) KMSVNC_FATAL("va operation error %#x %s on line %d\n", s, vaErrorStr(s), __LINE__); } while (0)
#define VA_MAY(x) do{VAStatus s; if ((s = (x)) != VA_STATUS_SUCCESS) fprintf(stderr, "va operation error %#x %s on line %d\n", s, vaErrorStr(s), __LINE__); } while (0)
2023-04-29 02:05:13 +08:00
2023-04-29 04:20:35 +08:00
void va_cleanup();
2023-04-29 02:05:13 +08:00
int va_init();
2023-04-29 04:20:35 +08:00
int va_hwframe_to_vaapi(char *out);