1 /* 2 * Copyright 2011, Gabriel Hartmann, gabriel.hartmann@gmail.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _UVC_DEFRAMER_H 6 #define _UVC_DEFRAMER_H 7 8 9 #include "CamDeframer.h" 10 11 #include <USB3.h> 12 13 14 class UVCDeframer : public CamDeframer { 15 public: 16 UVCDeframer(CamDevice *device); 17 virtual ~UVCDeframer(); 18 // BPositionIO interface 19 // write from usb transfers 20 virtual ssize_t Write(const void *buffer, size_t size); 21 22 private: 23 void _PrintBuffer(const void* buffer, size_t size); 24 25 int32 fFrameCount; 26 int32 fID; 27 BMallocIO fInputBuffer; 28 }; 29 30 #endif /* _UVC_DEFRAMER_H */ 31 32