Advertisement
Guest User

3d vision bino patch

a guest
Jan 10th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1. diff -B src/Makefile patched/Makefile
  2. 500c500
  3. <       $(am__append_6) $(am__append_10)
  4. ---
  5. >       $(am__append_6) $(am__append_10) -lnvstusb
  6. diff -B src/video_output.cpp patched/video_output.cpp
  7. 51a52,58
  8. > extern "C" {
  9. > #include <libnvstusb/nvstusb.h>
  10. > }
  11. > struct nvstusb_context *ctx = 0;
  12. > int64_t framenumber = 0;
  13. >
  14. >
  15. 593a601,612
  16. >
  17. >       ctx = nvstusb_init(NULL);
  18. >       if (0 == ctx) {
  19. >                       fprintf(stderr, "could not initialize NVIDIA 3D Stereo Controller, aborting\n");
  20. >               exit(EXIT_FAILURE);
  21. >       }else{
  22. >               fprintf(stdout, "NVIDIA 3D Stereo Controller initialized\n");
  23. >       }
  24. >
  25. >               const float fr = 120.0f;
  26. >       nvstusb_set_rate(ctx, fr );
  27. >       nvstusb_start_stereo_thread(ctx);
  28. 1318a1337,1339
  29. >
  30. >
  31. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement