mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
1a2ac73769
- NSBitmapImageRep -TIFFRepresentationOfImageRepsInArray:, -TIFFRepresentationOfImageRepsInArray:usingCompression:factor - NSImage -TIFFRepresentation, -TIFFRepresentationUsingCompression:factor: - renamed NSTIFFReader to O2Decoder_TIFF - renamed O2ColorSpaceType constants to kO2ColorSpaceModel ones - initial CG/O2ImageDestination implementation supporting simple TIFF encoding via O2Encoder_TIFF - O2DataProvider, O2DataConsumer work - Some CF related cleanup in O2/CG
39 lines
1.5 KiB
Objective-C
39 lines
1.5 KiB
Objective-C
#import <CoreFoundation/CoreFoundation.h>
|
|
#import <Foundation/Foundation.h>
|
|
#import "O2DataConsumer.h"
|
|
#import "O2Image.h"
|
|
#import "O2ImageSource.h"
|
|
#import <stdbool.h>
|
|
|
|
typedef struct _O2ImageDestination *O2ImageDestinationRef;
|
|
|
|
const CFStringRef kO2ImageDestinationLossyCompressionQuality;
|
|
const CFStringRef kO2ImageDestinationBackgroundColor;
|
|
|
|
@interface O2ImageDestination : NSObject {
|
|
@public
|
|
O2DataConsumerRef _consumer;
|
|
CFStringRef _type;
|
|
size_t _imageCount;
|
|
CFDictionaryRef _options;
|
|
void *_encoder;
|
|
}
|
|
|
|
@end
|
|
|
|
CFTypeID O2ImageDestinationGetTypeID(void);
|
|
|
|
CFArrayRef O2ImageDestinationCopyTypeIdentifiers(void);
|
|
|
|
O2ImageDestinationRef O2ImageDestinationCreateWithData(CFMutableDataRef data,CFStringRef type,size_t imageCount,CFDictionaryRef options);
|
|
O2ImageDestinationRef O2ImageDestinationCreateWithDataConsumer(O2DataConsumerRef dataConsumer,CFStringRef type,size_t imageCount,CFDictionaryRef options);
|
|
O2ImageDestinationRef O2ImageDestinationCreateWithURL(CFURLRef url,CFStringRef type,size_t imageCount,CFDictionaryRef options);
|
|
|
|
void O2ImageDestinationSetProperties(O2ImageDestinationRef self,CFDictionaryRef properties);
|
|
|
|
void O2ImageDestinationAddImage(O2ImageDestinationRef self,O2ImageRef image,CFDictionaryRef properties);
|
|
void O2ImageDestinationAddImageFromSource(O2ImageDestinationRef self,O2ImageSourceRef imageSource,size_t index,CFDictionaryRef properties);
|
|
|
|
bool O2ImageDestinationFinalize(O2ImageDestinationRef self);
|
|
|