kmsvnc/va.h

9 lines
427 B
C
Raw Normal View History

2023-04-29 02:05:13 +08:00
#pragma once
2023-04-29 15:17:06 +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
void va_cleanup();
int va_init();
int va_hwframe_to_vaapi(char *out);