Skip to content

Commit

Permalink
Remove internal functions _CGImageRepresentation, Image representatio… (
Browse files Browse the repository at this point in the history
#2364)

Remove internal functions _CGImageRepresentation, Image representation should be done through ImageIO
  • Loading branch information
msft-Jeyaram authored Mar 30, 2017
1 parent 995f2af commit ada615a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
14 changes: 0 additions & 14 deletions Frameworks/CoreGraphics/CGImage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#import <CoreGraphics/CGBitmapContext.h>
#import <CoreGraphics/CGGeometry.h>
#import <CoreGraphics/CGDataProvider.h>
#import <Foundation/NSData.h>
#import <LoggingNative.h>
#import <CFRuntime.h>
#import <CFBridgeUtilities.h>
Expand Down Expand Up @@ -709,19 +708,6 @@ CGImageRef _CGImageLoadImageWithWICDecoder(REFGUID decoderCls, void* bytes, int
return imageRef;
}

NSData* _CGImagePNGRepresentation(CGImageRef image) {
return _CGImageRepresentation(image, GUID_ContainerFormatPng, -1);
}

NSData* _CGImageJPEGRepresentation(CGImageRef image, float quality) {
return _CGImageRepresentation(image, GUID_ContainerFormatJpeg, quality);
}

NSData* _CGImageRepresentation(CGImageRef image, REFGUID guid, float quality) {
// TODO #1124 implement encoder.
return nil;
}

size_t _CGImageImputeBitsPerPixelFromFormat(CGColorSpaceRef colorSpace, size_t bitsPerComponent, CGBitmapInfo bitmapInfo) {
unsigned int alphaInfo = bitmapInfo & kCGBitmapAlphaInfoMask;
unsigned int byteOrder = bitmapInfo & kCGBitmapByteOrderMask;
Expand Down
4 changes: 0 additions & 4 deletions Frameworks/include/CGImageInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ COREGRAPHICS_EXPORT CGImageRef _CGImageLoadImageWithWICDecoder(REFGUID decoderCl

COREGRAPHICS_EXPORT CGImageRef _CGImageGetImageFromData(void* data, int length);

COREGRAPHICS_EXPORT NSData* _CGImagePNGRepresentation(CGImageRef image);
COREGRAPHICS_EXPORT NSData* _CGImageJPEGRepresentation(CGImageRef image, float quality);
COREGRAPHICS_EXPORT NSData* _CGImageRepresentation(CGImageRef image, REFGUID guid, float quality);

COREGRAPHICS_EXPORT CGImageRef _CGImageCreateWithWICBitmap(IWICBitmap* bitmap);

COREGRAPHICS_EXPORT HRESULT _CGImageGetWICImageSource(CGImageRef image, IWICBitmap** source);
Expand Down
3 changes: 0 additions & 3 deletions build/CoreGraphics/dll/CoreGraphics.def
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,6 @@ LIBRARY CoreGraphics
_CGImageLoadImageWithWICDecoder
_CGImageGetImageFromData
_CGImageCreateFromDataProvider
_CGImagePNGRepresentation
_CGImageJPEGRepresentation
_CGImageRepresentation
_CGImageCreateWithWICBitmap
_CGImageGetWICImageSource
_CGImageCreateCopyWithPixelFormat
Expand Down

0 comments on commit ada615a

Please sign in to comment.