1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

imgcodecs: Suppress unknown metadata type warning

This commit is contained in:
Kumataro
2025-11-09 09:59:55 +09:00
parent 5fb4ce482c
commit 3402fc1f6d
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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:
+2 -1
View File
@@ -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,