eclinkplayer.h 423 B

1234567891011121314151617181920212223
  1. #ifndef ECLINKPLAYER_H
  2. #define ECLINKPLAYER_H
  3. #include <pthread.h>
  4. typedef void (*USBCALLBACK)(bool);
  5. class ECLinkplayer
  6. {
  7. public:
  8. ECLinkplayer();
  9. void init(int offsetx, int offsety, int screenwitdh, int screenheight);
  10. void show(bool show);
  11. void release();
  12. void register_usbevent(USBCALLBACK callback);
  13. private:
  14. USBCALLBACK mUsbCallback;
  15. pthread_t mThread;
  16. };
  17. #endif // ECLINKPLAYER_H