USBBulkStreamer.h 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * TI Voxel Lib component.
  3. *
  4. * Copyright (c) 2014 Texas Instruments Inc.
  5. */
  6. #ifndef USB_BULK_STREAMER_H
  7. #define USB_BULK_STREAMER_H
  8. #include <Streamer.h>
  9. #include "USBIO.h"
  10. namespace Voxel
  11. {
  12. /**
  13. * \addtogroup IO
  14. * @{
  15. */
  16. class VOXEL_EXPORT USBBulkStreamer : public Streamer
  17. {
  18. protected:
  19. class USBBulkStreamerPrivate;
  20. Ptr<USBBulkStreamerPrivate> _usbBulkStreamerPrivate;
  21. virtual bool _start();
  22. virtual bool _capture(RawDataFramePtr &p);
  23. virtual bool _stop();
  24. public:
  25. USBBulkStreamer(USBIOPtr &usbIO, DevicePtr device, uint8_t endpoint);
  26. virtual ~USBBulkStreamer();
  27. virtual bool isInitialized();
  28. virtual bool setBufferSize(size_t bufferSize);
  29. // All these three are dummy
  30. virtual bool getSupportedVideoModes(Vector<VideoMode> &videoModes);
  31. virtual bool getCurrentVideoMode(VideoMode &videoMode);
  32. virtual bool setVideoMode(const VideoMode &videoMode);
  33. };
  34. /**
  35. * @}
  36. */
  37. }
  38. #endif // USB_BULK_STREAMER_H