display.cpp 486 B

1234567891011121314151617181920212223242526272829
  1. #include "display.h"
  2. #include "gles-display.h"
  3. #include <stdexcept>
  4. Display::Display(const unsigned width, const unsigned height)
  5. {
  6. gles_display_init(width, height);
  7. }
  8. void Display::refresh(
  9. std::array<uint8_t*, 3> planes, std::array<size_t, 3> pitches) {
  10. gles_display_yuv(
  11. planes[0], pitches[0],
  12. planes[1], pitches[1],
  13. planes[2], pitches[2]);
  14. }
  15. void Display::input() {
  16. /* Stub */
  17. }
  18. bool Display::get_quit() {
  19. return quit_;
  20. }
  21. bool Display::get_play() {
  22. return play_;
  23. }