Beispiel #1
0
void DisplayIop::append( DD::Image::Hash &hash )
{
	Iop::append( hash );

	hash.append( __DATE__ );
	hash.append( __TIME__ );
	hash.append( firstDisplayIop()->m_updateCount );
}
void OCIOFileTransform::append(DD::Image::Hash& nodehash)
{
    // There is a bug where in Nuke <6.3 the String_knob (used for
    // cccid) is not included in the node's hash. Include it manually
    // so the node correctly redraws. Appears fixed in in 6.3
    nodehash.append(m_cccid.c_str());

    // Incremented to force reloading after rereading the LUT file
    nodehash.append(m_reload_version);
}
 inline void store( DD::Image::StoreType _type, void* _data, DD::Image::Hash& _hash, const DD::Image::OutputContext& _oc )
 {
     if ( !allStatesStr_.empty() ) {
         _hash.append( allStatesStr_.c_str() );
     } else {
         _hash.append( "" );
     }
     if ( !itemStatesStr_.empty() ) {
         _hash.append( itemStatesStr_.c_str() );
     } else {
         _hash.append( "" );
     }
     const char** data = ( const char** )( _data );
     *data = allStatesStr_.c_str();
 }
Beispiel #4
0
void OCIOColorSpace::append(DD::Image::Hash& localhash)
{
    // TODO: Hang onto the context, what if getting it
    // (and querying getCacheID) is expensive?
    try
    {
        OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig();
        OCIO::ConstContextRcPtr context = getLocalContext();
        std::string configCacheID = config->getCacheID(context);
        localhash.append(configCacheID);
    }
    catch(OCIO::Exception &e)
    {
        error(e.what());
        return;
    }
}
void OCIOLookTransform::append(DD::Image::Hash& localhash)
{
    // TODO: Hang onto the context, what if getting it
    // (and querying getCacheID) is expensive?
    try
    {
        OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig();
        OCIO::ConstContextRcPtr context = getLocalContext();
        std::string configCacheID = config->getCacheID(context);
        localhash.append(configCacheID);
    }
    catch(const OCIO::Exception &e)
    {
        error(e.what());
    }
    catch (...)
    {
        error("OCIOLookTransform: Unknown exception during hash generation.");
    }
}