|
vaapi libva va_getDriverName() returns -1 求助
发表于 2017-3-27 10:16:15
浏览:8028
|
回复:0
打印
只看该作者
[复制链接]
楼主
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns -1
libva info: User requested driver 'rockchip'
libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/rockchip_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
VADisplay va_dpy;
va_status = vaInitialize(va_dpy, &major_version, &minor_version);
VADriverContextP ctx;
ctx = CTX(dpy);
vaStatus = va_getDriverName(dpy, &driver_name);
if (!ctx->override_driver_name) {
va_infoMessage("va_getDriverName() returns %d\n", vaStatus);
driver_name_env = getenv("LIBVA_DRIVER_NAME");
} else if (vaStatus == VA_STATUS_SUCCESS) {
if (driver_name)
free(driver_name);
driver_name = strdup(ctx->override_driver_name);
if (!driver_name) {
vaStatus = VA_STATUS_ERROR_ALLOCATION_FAILED;
va_errorMessage("vaInitialize() failed with %s, out of memory\n",
vaErrorStr(vaStatus));
return vaStatus;
}
va_infoMessage("User requested driver '%s'\n", driver_name);
}
|
|