From 2392e20365148ebd36dc02bfd5fc703a6eafbf6f Mon Sep 17 00:00:00 2001 From: Daniel Gretarsson Date: Fri, 17 Mar 2023 11:54:48 +0000 Subject: [PATCH] Add missing symbols for ImageIO --- src/frameworks/ImageIO/include/ImageIO/CGImageSource.h | 3 +++ src/frameworks/ImageIO/src/CGImageSource.m | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/frameworks/ImageIO/include/ImageIO/CGImageSource.h b/src/frameworks/ImageIO/include/ImageIO/CGImageSource.h index 8cfa59716..dd8facf80 100644 --- a/src/frameworks/ImageIO/include/ImageIO/CGImageSource.h +++ b/src/frameworks/ImageIO/include/ImageIO/CGImageSource.h @@ -13,6 +13,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI typedef struct CF_BRIDGED_TYPE(id) O2ImageSource *CGImageSourceRef; #import +#import IMAGEIO_EXTERN CGImageSourceRef CGImageSourceCreateWithData(CFDataRef data, CFDictionaryRef options); IMAGEIO_EXTERN CGImageSourceRef CGImageSourceCreateWithURL(CFURLRef url, CFDictionaryRef options); @@ -23,3 +24,5 @@ IMAGEIO_EXTERN size_t CGImageSourceGetCount(CGImageSourceRef self); IMAGEIO_EXTERN CGImageRef CGImageSourceCreateImageAtIndex(CGImageSourceRef self, size_t index, CFDictionaryRef options); IMAGEIO_EXTERN CFDictionaryRef CGImageSourceCopyPropertiesAtIndex(CGImageSourceRef self, size_t index, CFDictionaryRef options); + +IMAGEIO_EXTERN CGImageSourceRef CGImageSourceCreateWithDataProvider(CGDataProviderRef provider, CFDictionaryRef options); diff --git a/src/frameworks/ImageIO/src/CGImageSource.m b/src/frameworks/ImageIO/src/CGImageSource.m index 2db421deb..447a9fdc7 100644 --- a/src/frameworks/ImageIO/src/CGImageSource.m +++ b/src/frameworks/ImageIO/src/CGImageSource.m @@ -34,3 +34,9 @@ CFStringRef CGImageSourceGetType(CGImageSourceRef self) { return [self type]; } + +CGImageSourceRef CGImageSourceCreateWithDataProvider(CGDataProviderRef provider, CFDictionaryRef options) +{ + printf("STUB %s\n", __PRETTY_FUNCTION__); + return nil; +} -- 2.51.2