Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

VisionSerializer Class Reference

#include <VisionSerializer.h>

Inheritance diagram for VisionSerializer:

Inheritance graph
[legend]
List of all members.

Detailed Description

Encodes and transmits camera images.

Definition at line 9 of file VisionSerializer.h.

Public Member Functions

 VisionSerializer ()
 constructor

void serialize ()
 encodes and sends current frame


Private Member Functions

void encodeVisionRaw (char *buf, CMVision::image_yuv< const uchar > &img, int scale)
 encodes the original camera image

void encodeVisionRLE (char *buf, int num_runs, run *runs)
 encodes the RLE processed image

char * encodeVisionRun (char *buf, run *run)
 helper function for encodeVisionRLE, encodes one run length

 VisionSerializer (const VisionSerializer &)
 don't call

VisionSerializeroperator= (const VisionSerializer &)
 don't call


Private Attributes

SocketvisRaw
 socket to which raw vision images should be sent

SocketvisRLE
 socket to which RLE images shoudl be sent


Constructor & Destructor Documentation

VisionSerializer::VisionSerializer  ) 
 

constructor

Definition at line 35 of file VisionSerializer.cc.

References config, Wireless::listen(), Config::vision_config::raw_port, Config::vision_config::rle_port, Wireless::socket(), Config::vision, visRaw, visRLE, and wireless.

VisionSerializer::VisionSerializer const VisionSerializer  )  [private]
 

don't call


Member Function Documentation

void VisionSerializer::encodeVisionRaw char *  buf,
CMVision::image_yuv< const uchar > &  img,
int  scale
[private]
 

encodes the original camera image

Definition at line 77 of file VisionSerializer.cc.

void VisionSerializer::encodeVisionRLE char *  buf,
int  num_runs,
run runs
[private]
 

encodes the RLE processed image

Definition at line 99 of file VisionSerializer.cc.

References Serializer::encode(), and encodeVisionRun().

char * VisionSerializer::encodeVisionRun char *  buf,
run run
[inline, private]
 

helper function for encodeVisionRLE, encodes one run length

Definition at line 69 of file VisionSerializer.cc.

VisionSerializer& VisionSerializer::operator= const VisionSerializer  )  [private]
 

don't call

void VisionSerializer::serialize  ) 
 

encodes and sends current frame

Definition at line 43 of file VisionSerializer.cc.

References encodeVisionRaw(), encodeVisionRLE(), Socket::getWriteBuffer(), Vision::img, Vision::num_runs, Vision::rmap, vision, visRaw, visRLE, and Socket::write().


Member Data Documentation

Socket* VisionSerializer::visRaw [private]
 

socket to which raw vision images should be sent

Definition at line 26 of file VisionSerializer.h.

Socket* VisionSerializer::visRLE [private]
 

socket to which RLE images shoudl be sent

Definition at line 27 of file VisionSerializer.h.


The documentation for this class was generated from the following files:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:14 2003 by Doxygen 1.3.2