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 137 of file liveViz0.C.


Function Documentation

void getImageConfigHandler ( char *  msg  ) 

Definition at line 79 of file liveViz0.C.

References buf, CcsSendReply(), CmiFree(), CmiPrintf(), liveVizConfig::getVerbose(), len, liveVizConfig::pupNetwork(), PUP_toNetwork_pack::size(), and PUP_toNetwork_sizer::size().

Referenced by liveViz0Init().

Here is the call graph for this function:

Here is the caller graph for this function:

void getImageHandler ( char *  msg  ) 

void liveViz0_jpeg_stl_dest_init_destination ( j_compress_ptr  cinfo  ) 

Definition at line 141 of file liveViz0.C.

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

Referenced by jpeg_stl_dest().

Here is the caller graph for this function:

boolean liveViz0_jpeg_stl_dest_empty_output_buffer ( j_compress_ptr  cinfo  ) 

Definition at line 150 of file liveViz0.C.

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

Referenced by jpeg_stl_dest().

Here is the caller graph for this function:

void liveViz0_jpeg_stl_dest_term_destination ( j_compress_ptr  cinfo  ) 

Definition at line 161 of file liveViz0.C.

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

Referenced by jpeg_stl_dest().

Here is the caller graph for this function:

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

Definition at line 168 of file liveViz0.C.

References dest, liveViz0_jpeg_stl_dest_empty_output_buffer(), liveViz0_jpeg_stl_dest_init_destination(), liveViz0_jpeg_stl_dest_term_destination(), stl_destination_mgr::pub, and stl_destination_mgr::stl_dest.

Referenced by JPEGcompressImage().

Here is the call graph for this function:

Here is the caller graph for this function:

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 203 of file liveViz0.C.

References jpeg_stl_dest().

Referenced by liveViz0Deposit().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Definition at line 265 of file liveViz0.C.

References CcsSendDelayedReply(), CmiPrintf(), liveVizRequest::compressionJPEG, liveVizRequest::compressionNone, liveVizRequest::compressionQuality, liveVizRequest::compressionRunLength, liveVizRequest::compressionType, data, liveVizConfig::getNetworkBytesPerPixel(), liveVizConfig::getVerbose(), liveVizRequest::ht, JPEGcompressImage(), len, liveVizRequest::replyToken, and liveVizRequest::wid.

Referenced by liveVizPollArray::liveVizPoll0Deposit(), liveVizPollArray::request(), and vizReductionHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

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 307 of file liveViz0.C.

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

Referenced by liveVizInitComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void liveViz0PollInit (  ) 

Definition at line 315 of file liveViz0.C.

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

Referenced by liveVizPollInit().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 17 of file liveViz0.C.

Referenced by controlPointManager::generatePlan().


Generated on Mon Sep 21 08:07:37 2020 for Charm++ by  doxygen 1.5.5