digiKam
iteminfo_p.h File Reference

Go to the source code of this file.

Namespaces

 Digikam
 

Macros

#define RETURN_ASPECTRATIO_IF_IMAGESIZE_CACHED()
 
#define RETURN_IF_CACHED(x)
 
#define STORE_IN_CACHE_AND_RETURN(x, retrieveMethod)
 

Functions

MetadataInfo::Field Digikam::DatabaseImageMetadataFieldsToMetadataInfoField (const DatabaseFields::ImageMetadata imageMetadataField)
 
MetadataInfo::Field Digikam::DatabaseVideoMetadataFieldsToMetadataInfoField (const DatabaseFields::VideoMetadata videoMetadataField)
 

Macro Definition Documentation

◆ RETURN_ASPECTRATIO_IF_IMAGESIZE_CACHED

#define RETURN_ASPECTRATIO_IF_IMAGESIZE_CACHED ( )
Value:
\
{ \
ItemInfoReadLocker lock; \
\
if (m_data->imageSizeCached) \
{ \
return (double)m_data->imageSize.width() / \
m_data->imageSize.height(); \
} \
}

◆ RETURN_IF_CACHED

#define RETURN_IF_CACHED (   x)
Value:
\
{ \
ItemInfoReadLocker lock; \
\
if (m_data->x##Cached) \
{ \
return m_data->x; \
} \
}

◆ STORE_IN_CACHE_AND_RETURN

#define STORE_IN_CACHE_AND_RETURN (   x,
  retrieveMethod 
)
Value:
\
{ \
ItemInfoWriteLocker lock; \
\
if (!values.isEmpty()) \
{ \
m_data.data()->x##Cached = true; \
m_data.data()->x = retrieveMethod; \
} \
\
return m_data->x; \
}