Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow the user to set a vaapi driver at configure stage #1143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/libfreenect2/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#cmakedefine LIBFREENECT2_WITH_VT_SUPPORT

#cmakedefine LIBFREENECT2_WITH_VAAPI_SUPPORT
#cmakedefine LIBFREENECT2_WITH_VAAPI_DRIVER "@LIBFREENECT2_WITH_VAAPI_DRIVER@"

#cmakedefine LIBFREENECT2_WITH_TURBOJPEG_SUPPORT

Expand Down
4 changes: 3 additions & 1 deletion src/vaapi_rgb_packet_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ class VaapiRgbPacketProcessorImpl: public WithPerfLogging
display = NULL;
}
CHECK_COND(vaDisplayIsValid(display));

#ifdef LIBFREENECT2_WITH_VAAPI_DRIVER
vaSetDriverName(display,LIBFREENECT2_WITH_VAAPI_DRIVER);
#endif
/* Initialize and create config */
int major_ver, minor_ver;
CHECK_VA(vaInitialize(display, &major_ver, &minor_ver));
Expand Down