Basic Image AlgorithmS Library
2.8.0
|
class to send images to a client uses TCP or UDPServer, More...
#include <VideoSource/VideoTransmitter.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
unsigned int | GetMessageSize () |
int | Init (int port=D_CS_DEFAULT_PORT) |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
int | Process (BIAS::Image< unsigned char > &image) |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetCompression (int compressionLevel=60) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
VideoTransmitter () | |
~VideoTransmitter () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
bool * | CompressedMode_ |
bool | compressionColor_ |
int * | CompressionQuality_ |
JpegHandler | Compressor_ |
bool | Initialized_ |
int | jpeg_ |
unsigned int | msgSize_ |
int | port_ |
double | resizeFactor_ |
std::ostringstream | SendBuffer_ |
CScommServer | server_ |
std::string | targetAddress_ |
int | UDPServerThrottle_ |
bool | useUDP_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
class to send images to a client uses TCP or UDPServer,
Definition at line 34 of file VideoTransmitter.hh.
VideoTransmitter::VideoTransmitter | ( | ) |
Definition at line 10 of file VideoTransmitter.cpp.
References compressionColor_, Initialized_, jpeg_, msgSize_, port_, targetAddress_, UDPServerThrottle_, and useUDP_.
VideoTransmitter::~VideoTransmitter | ( | ) |
Definition at line 26 of file VideoTransmitter.cpp.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
Definition at line 46 of file VideoTransmitter.hh.
int VideoTransmitter::Init | ( | int | port = D_CS_DEFAULT_PORT | ) |
Definition at line 31 of file VideoTransmitter.cpp.
References Compressor_, BIAS::JpegHandler::Init(), Initialized_, jpeg_, port_, server_, BIAS::CScommBase::SetKeepAll(), useUDP_, and BIAS::CScommServer::WaitForConnections().
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
int VideoTransmitter::Process | ( | BIAS::Image< unsigned char > & | image | ) |
Definition at line 60 of file VideoTransmitter.cpp.
References BIAS::ImageBase::CM_Grey, BIAS::ImageBase::CM_RGB, BIAS::JpegHandler::Compress(), compressionColor_, Compressor_, BIAS::ImageBase::GetColorModel(), BIAS::JpegHandler::GetCompressedData(), BIAS::CScommBase::GetConnections(), Initialized_, jpeg_, msgSize_, port_, BIAS::CScommBase::SendMsg(), server_, BIAS::ImageConvert::ToGrey(), BIAS::ImageConvert::ToRGB(), useUDP_, and BIAS::CScommServer::WaitForConnections().
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 43 of file VideoTransmitter.hh.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
Definition at line 61 of file VideoTransmitter.hh.
|
protected |
Definition at line 62 of file VideoTransmitter.hh.
Referenced by Process(), and VideoTransmitter().
|
protected |
Definition at line 63 of file VideoTransmitter.hh.
|
protected |
Definition at line 68 of file VideoTransmitter.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 57 of file VideoTransmitter.hh.
Referenced by Init(), Process(), and VideoTransmitter().
|
protected |
Definition at line 52 of file VideoTransmitter.hh.
Referenced by Init(), Process(), and VideoTransmitter().
|
protected |
Definition at line 60 of file VideoTransmitter.hh.
Referenced by Process(), and VideoTransmitter().
|
protected |
Definition at line 49 of file VideoTransmitter.hh.
Referenced by Init(), Process(), and VideoTransmitter().
|
protected |
Definition at line 53 of file VideoTransmitter.hh.
|
protected |
Definition at line 58 of file VideoTransmitter.hh.
|
protected |
Definition at line 65 of file VideoTransmitter.hh.
|
protected |
Definition at line 50 of file VideoTransmitter.hh.
Referenced by VideoTransmitter().
|
protected |
Definition at line 54 of file VideoTransmitter.hh.
Referenced by VideoTransmitter().
|
protected |
Definition at line 55 of file VideoTransmitter.hh.
Referenced by Init(), Process(), and VideoTransmitter().