VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gv::ViewerInput Class Reference

An input channel for images. More...

#include <gvviewerinput.h>

+ Inheritance diagram for Gv::ViewerInput:

Public Types

typedef ViewerInputHandler Handler
 

Public Member Functions

 ViewerInput (ViewerInputHandler &, const ViewerInputConfig &, const std::string &channel, int shmem_fd, int pipe_fd)
 Constructor.
 
 ~ViewerInput ()
 Destructor.
 
int fd () const
 Returns the file descriptor that is being used for notification.
 
const char * data () const
 Returns the data as a standard luma or rgb-interleaved buffer.
 
size_t size () const
 Returns the data() size.
 
int dx () const
 Returns the image width.
 
int dy () const
 Returns the image height.
 
int channels () const
 Returns the number of channels (one or three).
 
Gr::ImageType type () const
 Returns the type for the decoded image.
 

Public Attributes

ViewerInputHandlerm_input_handler
 
int m_scale
 
bool m_static
 
bool m_first
 
G::EpochTime m_rate_limit
 
int m_fd
 
unique_ptr< G::FatPipe::Receiverm_pipe
 
unique_ptr
< G::PublisherSubscription
m_channel
 
std::vector< char > m_buffer
 
std::vector< char > m_tmp
 
Gr::ImageType m_type_in
 
std::string m_type_in_str
 
Gr::ImageType m_type_out
 
GNet::Timer< ViewerInputm_rate_timer
 
GNet::Timer< ViewerInputm_quiescent_timer
 
Gr::ImageData m_decoder_tmp
 
Gr::ImageDecoder m_decoder
 
char * m_data_out
 

Detailed Description

An input channel for images.

Images are decoded as necessary.

Definition at line 77 of file gvviewerinput.h.


The documentation for this class was generated from the following files: