mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #27983 from Kumataro:fix27982
imgcodecs: Suppress unknown metadata type warning
This commit is contained in:
@@ -79,6 +79,7 @@ Mat BaseImageDecoder::getMetadata(ImageMetadataType type) const
|
||||
|
||||
case IMAGE_METADATA_XMP:
|
||||
case IMAGE_METADATA_ICCP:
|
||||
case IMAGE_METADATA_CICP:
|
||||
return makeMat(m_metadata[type]);
|
||||
|
||||
default:
|
||||
|
||||
@@ -476,7 +476,8 @@ static const char* metadataTypeToString(ImageMetadataType type)
|
||||
{
|
||||
return type == IMAGE_METADATA_EXIF ? "Exif" :
|
||||
type == IMAGE_METADATA_XMP ? "XMP" :
|
||||
type == IMAGE_METADATA_ICCP ? "ICC Profile" : "???";
|
||||
type == IMAGE_METADATA_ICCP ? "ICC Profile" :
|
||||
type == IMAGE_METADATA_CICP ? "cICP" : "???";
|
||||
}
|
||||
|
||||
static void addMetadata(ImageEncoder& encoder,
|
||||
|
||||
Reference in New Issue
Block a user