PPL Logo

libs/ck-libs/liveViz/liveViz0.C File Reference

Go to the source code of this file.

Data Structures

struct  stl_destination_mgr

Typedefs

typedef stl_destination_mgrstl_dest_ptr

Functions

void getImageConfigHandler (char *msg)
void getImageHandler (char *msg)
void liveViz0_jpeg_stl_dest_init_destination (j_compress_ptr cinfo)
boolean liveViz0_jpeg_stl_dest_empty_output_buffer (j_compress_ptr cinfo)
void liveViz0_jpeg_stl_dest_term_destination (j_compress_ptr cinfo)
void jpeg_stl_dest (j_compress_ptr cinfo, std::string *stl_dest)
std::string JPEGcompressImage (int wid, int ht, int bpp, const byte *image_data, int quality)
 Return a binary string containing the JPEG-compressed data of this raster image, which is wid x ht pixels, and each pixel bpp bytes (must be either 1, for greyscale; or 3, for RGB).
void liveViz0Deposit (const liveVizRequest &req, byte *imageData)
 Each call to liveViz, above, must eventually result in a call to this routine, which delivers an entire, finished image to the client.
void liveViz0Init (const liveVizConfig &cfg)
 Begin responding to image requests under the given configuration.
void liveViz0PollInit ()

Variables

static liveVizConfig config


Typedef Documentation

Definition at line 132 of file liveViz0.C.


Function Documentation

void getImageConfigHandler ( char *  msg  ) 

void getImageHandler ( char *  msg  ) 

void liveViz0_jpeg_stl_dest_init_destination ( j_compress_ptr  cinfo  ) 

Definition at line 136 of file liveViz0.C.

References stl_destination_mgr::buffer, dest, and stl_destination_mgr::pub.

Referenced by jpeg_stl_dest().

boolean liveViz0_jpeg_stl_dest_empty_output_buffer ( j_compress_ptr  cinfo  ) 

void liveViz0_jpeg_stl_dest_term_destination ( j_compress_ptr  cinfo  ) 

void jpeg_stl_dest ( j_compress_ptr  cinfo,
std::string *  stl_dest 
)

std::string JPEGcompressImage ( int  wid,
int  ht,
int  bpp,
const byte image_data,
int  quality 
)

Return a binary string containing the JPEG-compressed data of this raster image, which is wid x ht pixels, and each pixel bpp bytes (must be either 1, for greyscale; or 3, for RGB).

quality controls the compression rate, from quality == 0, tiny compressed image, very low quality quality == 100, huge compressed image, very high quality

This code derived from the "example.c" that ships with libjpeg; see that file for comments.

Definition at line 198 of file liveViz0.C.

References jpeg_stl_dest().

Referenced by liveViz0Deposit().

void liveViz0Deposit ( const liveVizRequest req,
byte imageData 
)

void liveViz0Init ( const liveVizConfig cfg  ) 

Begin responding to image requests under the given configuration.

liveViz0Init should be called exactly once on processor 0 when your program is ready to begin processing image requests.

Definition at line 302 of file liveViz0.C.

References CcsRegisterHandler(), CmiPrintf(), getImageConfigHandler(), getImageHandler(), and liveVizConfig::getVerbose().

Referenced by liveVizInitComplete().

void liveViz0PollInit (  ) 

Definition at line 310 of file liveViz0.C.

References CcsRegisterHandler(), CmiPrintf(), getImageHandler(), and liveVizConfig::getVerbose().

Referenced by liveVizPollInit().


Variable Documentation

Definition at line 17 of file liveViz0.C.

Referenced by controlPointManager::generatePlan().


Generated on Sat May 26 08:08:09 2012 for Charm++ by  doxygen 1.5.5