Definition at line 387 of file RotorView.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), OglGui::View::GetOGLIMAGE(), ILOG_DEBUG, ILOG_WARN, InitOGLIMAGE(), mNr, mView, and OglGui::View::SetImage(). Referenced by DoUpdateCurrentImage(), RegisterView(), and UpdateStill(). 00388 { 00389 if (image == NULL) 00390 { 00391 ILOG_WARN( "NULL image received for shot ID " << mNr ); 00392 return; 00393 } 00394 00395 OGLIMAGE* oldOglIm = mView->GetOGLIMAGE(); 00396 Array2dVec3UInt8* oldIm = (Array2dVec3UInt8*) oldOglIm->imageHandle; 00397 00398 // RvB: The new image only has to have smaller dims then texture 00399 //if ((image->CW() != oldIm->CW()) || (image->CH() != oldIm->CH())) 00400 if ((image->CW() > oldOglIm->texW) || (image->CH() > oldOglIm->texH)) 00401 { 00402 ILOG_DEBUG( "Changed resolution from " 00403 << oldIm->CW() << "x" << oldIm->CH() 00404 << " to " << image->CW() << "x" << image->CH()); 00405 OGLIMAGE *im = InitOGLIMAGE(image); 00406 mView->SetImage(im); 00407 oglSys.ReleaseOglImage(im); 00408 } 00409 else 00410 { 00411 delete oldIm; 00412 oldOglIm->imageHandle = image; 00413 oldOglIm->w = image->CW(); 00414 oldOglIm->h = image->CH(); 00415 oldOglIm->changed = 1; 00416 } 00417 oglSys.ReleaseOglImage(oldOglIm); 00418 }
Here is the call graph for this function:
|