MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / onColorSpaceChanged

Method onColorSpaceChanged

Engine/ViewerInstance.cpp:3091–3111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3089}
3090
3091void
3092ViewerInstance::onColorSpaceChanged(ViewerColorSpaceEnum colorspace)
3093{
3094 // always running in the main thread
3095 assert( qApp && qApp->thread() == QThread::currentThread() );
3096
3097 {
3098 QMutexLocker l(&_imp->viewerParamsMutex);
3099 if (_imp->viewerParamsLut == colorspace) {
3100 return;
3101 }
3102 _imp->viewerParamsLut = colorspace;
3103 }
3104 assert(_imp->uiContext);
3105 if ( ( (_imp->uiContext->getBitDepth() == eImageBitDepthByte) )
3106 && !getApp()->getProject()->isLoadingProject() ) {
3107 renderCurrentFrame(true);
3108 } else {
3109 _imp->uiContext->redraw();
3110 }
3111}
3112
3113void
3114ViewerInstance::setDisplayChannels(DisplayChannelsEnum channels,

Callers 1

Calls 5

getAppFunction · 0.85
isLoadingProjectMethod · 0.80
getProjectMethod · 0.80
getBitDepthMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected