2
0

modeset.h 776 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Created by root on 17-11-7.
  3. //
  4. #ifndef MPP_LINUX_C_MODESET_H
  5. #define MPP_LINUX_C_MODESET_H
  6. #include <xf86drm.h>
  7. #include <xf86drmMode.h>
  8. #include <drm/drm_fourcc.h>
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <string.h>
  12. #include "bo.h"
  13. #include "dev.h"
  14. struct sp_dev;
  15. struct sp_crtc;
  16. int initialize_screens(struct sp_dev *dev);
  17. struct sp_plane* get_sp_plane(struct sp_dev *dev, struct sp_crtc *crtc);
  18. void put_sp_plane(struct sp_plane *plane);
  19. int set_sp_plane(struct sp_dev *dev, struct sp_plane *plane,
  20. struct sp_crtc *crtc, int x, int y);
  21. #ifdef USE_ATOMIC_API
  22. int set_sp_plane_pset(struct sp_dev *dev, struct sp_plane *plane,
  23. drmModePropertySetPtr pset, struct sp_crtc *crtc, int x, int y);
  24. #endif
  25. #endif //MPP_LINUX_C_MODESET_H