本文整理汇总了C++中UdpSocket::setInputObserver方法的典型用法代码示例。如果您正苦于以下问题:C++ UdpSocket::setInputObserver方法的具体用法?C++ UdpSocket::setInputObserver怎么用?C++ UdpSocket::setInputObserver使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UdpSocket
的用法示例。
在下文中一共展示了UdpSocket::setInputObserver方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
void init(int mode, int lWidth, int lHeigth, int rWidth, int rHeight){
if(decoder != nullptr) decoder->releaseObserver();
cout << "LW : " << lWidth << endl;
cout << "LH : " << lHeigth << endl;
cout << "RW : " << rWidth << endl;
cout << "RH : " << rHeight << endl;
if(mode == (int) MODE_VERTICALCONCAT){
cout << "MODE_VERTICALCONCAT" << endl;
}else if(mode == (int) MODE_LEFTRESIZED){
cout << "MODE_LEFTRESIZED" << endl;
}else if(mode == (int) MODE_RIGHTRESIZED){
cout << "MODE_RIGHTRESIZED" << endl;
}else if(mode == (int) MODE_LEFTBLURRED){
cout << "MODE_LEFTBLURRED" << endl;
}else if(mode == (int) MODE_RIGHTBLURRED){
cout << "MODE_RIGHTBLURRED" << endl;
}else if(mode == (int) MODE_SINGLE){
cout << "MODE_SINGLE" << endl;
}else if(mode == (int) MODE_INTERLEAVING){
cout << "MODE_INTERLEAVING" << endl;
}else{
return;
}
cout << "Hoop1" << endl;
cout << "Vw" << viewer << endl;
viewer->updateSize(lWidth, lHeigth, rWidth, rHeight);
cout << "Hoop2" << endl;
// TODO: DELETE OLD DECODER
decoder = new MultiH264Decoder(mode);
cout << "Hoop3" << endl;
decoder->setDecoderObserver(0, viewer);
cout << "Hoop4" << endl;
input.setInputObserver(0, decoder);
cout << "Hoop5" << endl;
}