1
0
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:
Alexander Smorkalov
2025-11-09 12:06:28 +03:00
committed by GitHub
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,