Go to the source code of this file.
Data Structures | |
class | liveVizPollArray |
Functions | |
CkReductionMsg * | imagePollCombineReducer (int nMsg, CkReductionMsg **msgs) |
Called by the reduction manager to combine all the source images received on one processor. | |
void | vizPollReductionHandler (void *r_msg) |
void | liveVizPollDeposit (ArrayElement *client, int startx, int starty, int sizex, int sizey, int imagewidth, int imageheight, const byte *src, liveVizCombine_t combine_reducer_type, int bytes_per_pixel) |
Th Poll Mode has been extensively rewritten, Please read the new description in the manual. | |
void | liveVizPollInit () |
Initialize the poll mode of liveViz. | |
Variables | |
CProxy_liveVizPollArray | myGroupProxy |
CkReduction::reducerType | poll_image_combine_reducer |
CkCallback | clientGetImageCallback |
CkReductionMsg* imagePollCombineReducer | ( | int | nMsg, | |
CkReductionMsg ** | msgs | |||
) |
Called by the reduction manager to combine all the source images received on one processor.
This function adds all the image on one processor to one list of non-overlapping images.
Then the result is reduced onto processor zero in function vizPollReductionHandler()
Definition at line 98 of file liveVizPoll.C.
References CkReductionMsg::buildNew(), ImageData::CombineImageData(), ImageData::CombineImageDataSize(), CkReductionMsg::getData(), msg, and poll_image_combine_reducer.
Referenced by liveVizPollDeposit().
void vizPollReductionHandler | ( | void * | r_msg | ) |
Definition at line 124 of file liveVizPoll.C.
References dest, CkReductionMsg::getData(), CkRect::ht(), liveVizRequest::ht, CkRect::l, len, msg, myGroupProxy, imageHeader::r, imageHeader::req, src, CkRect::t, CkRect::wid(), and liveVizRequest::wid.
Referenced by liveVizPollDeposit().
void liveVizPollDeposit | ( | ArrayElement * | from, | |
int | startx, | |||
int | starty, | |||
int | sizex, | |||
int | sizey, | |||
int | imagewidth, | |||
int | imageheight, | |||
const byte * | imageData, | |||
liveVizCombine_t | _image_combine_reducer = sum_image_data , |
|||
int | bytes_per_pixel = 3 | |||
) |
Th Poll Mode has been extensively rewritten, Please read the new description in the manual.
Note the big changes: liveVizPoll() no longer exists liveVizPollDeposit requires some additional parameters
Definition at line 150 of file liveVizPoll.C.
References ImageData::AddImage(), CkReduction::addReducer(), CkReductionMsg::buildNew(), Converse::CkMyPe(), ImageData::GetBuffSize(), CkReductionMsg::getData(), imagePollCombineReducer(), msg, poll_image_combine_reducer, CkReductionMsg::setCallback(), vizPollReductionHandler(), and ImageData::WriteHeader().
void liveVizPollInit | ( | ) |
Initialize the poll mode of liveViz.
This routine should be called from main::main.
Definition at line 187 of file liveVizPoll.C.
References Converse::CkMyPe(), liveViz0PollInit(), myGroupProxy, and request.
CProxy_liveVizPollArray myGroupProxy |
Definition at line 30 of file liveVizPoll.C.
Referenced by liveVizPollInit(), and vizPollReductionHandler().
Definition at line 31 of file liveVizPoll.C.
Referenced by imagePollCombineReducer(), and liveVizPollDeposit().