
Go to the source code of this file.
Data Structures | |
| struct | liveVizRequest |
| A liveVizRequest describes the basics of a client image request. More... | |
| struct | liveVizRequest3d |
| Additional 3D data associated with a 3D LiveViz request. More... | |
| class | liveVizConfig |
| liveVizConfig describes the type of images available from this parallel server--images may be color or greyscale, be pushed to the client or pulled, and may come from a set of 3d axes or be simply 2d. More... | |
| class | imageUnit |
Typedefs | |
| typedef unsigned char | byte |
Functions | |
| void | liveViz0Get (const liveVizRequest &req, void *data, int dataLen) |
| Called when the client requests an image as described above. | |
| 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 () |
| typedef unsigned char byte |
Definition at line 14 of file liveViz0.h.
| void liveViz0Get | ( | const liveVizRequest & | req, | |
| void * | data, | |||
| int | dataLen | |||
| ) |
Called when the client requests an image as described above.
You must implement this routine, which will be called from a single processor. data and dataLen are additional data supplied with the CCS request. This routine is called on the processor where the request arrives; this is normally processor 0.
Definition at line 74 of file liveViz.C.
References liveVizRequestMsg::buildNew(), clientGetImageCallback, and CkCallback::send().
Referenced by getImageHandler().


| 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().


| 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().


| void liveViz0PollInit | ( | ) |
Definition at line 315 of file liveViz0.C.
References CcsRegisterHandler(), CmiPrintf(), getImageHandler(), and liveVizConfig::getVerbose().
Referenced by liveVizPollInit().


1.5.5