21 #ifndef GV_VIEWERINPUT__H
22 #define GV_VIEWERINPUT__H
41 class ViewerInputHandler ;
42 struct ViewerInputConfig ;
51 virtual void onInput(
int dx ,
int dy ,
int channels ,
const char * p ,
size_t n ) = 0 ;
80 G_EXCEPTION( Closed ,
"viewer input channel closed" ) ;
84 const std::string & channel ,
int shmem_fd ,
int pipe_fd ) ;
93 const char *
data()
const ;
114 virtual void readEvent()
override ;
115 virtual void onException( std::exception & )
override ;
117 void onRateTimeout() ;
118 void onQuiescentTimeout() ;
119 bool read( std::vector<char> & ) ;
129 unique_ptr<G::FatPipe::Receiver> m_pipe ;
130 unique_ptr<G::PublisherSubscription> m_channel ;
131 std::vector<char> m_buffer ;
132 std::vector<char> m_tmp ;
134 std::string m_type_in_str ;
A subsecond-resolution timestamp based on a time_t.
A holder for image data, having eight bits per sample and one or three channels.
An encapsulation of image type, including width, height and number of channels, with support for a st...
An interface for decoding encoded images into a raw format.
A base class for classes that handle asynchronous events from the event loop.
A timer class template in which the timeout is delivered to the specified method. ...