18#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1040 && defined(HAVE_PANGOCAIRO)
20static const void *memory_data_consumer_get_byte_pointer(
void *
info)
25CGDataProviderDirectCallbacks memory_data_provider_callbacks = {
27 memory_data_consumer_get_byte_pointer,
33static void quartz_format(
GVJ_t *job)
38 CGImageDestinationRef image_destination =
39 CGImageDestinationCreateWithDataConsumer(data_consumer,
44 CGColorSpaceRef color_space = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
45 CGImageRef
image = CGImageCreate (
52 kCGImageAlphaPremultipliedFirst|kCGBitmapByteOrder32Little,
56 kCGRenderingIntentDefault
58 CGImageDestinationAddImage(image_destination,
image,
NULL);
59 CGImageDestinationFinalize(image_destination);
62 CGImageRelease(
image);
63 CGColorSpaceRelease(color_space);
64 CGDataProviderRelease(data_provider);
65 if (image_destination)
66 CFRelease(image_destination);
67 CGDataConsumerRelease(data_consumer);
85 {
FORMAT_BMP,
"bmp:cairo", 7, &quartz_engine, &device_features_quartz},
86 {
FORMAT_GIF,
"gif:cairo", 7, &quartz_engine, &device_features_quartz},
87 {
FORMAT_EXR,
"exr:cairo", 7, &quartz_engine, &device_features_quartz},
88 {
FORMAT_ICNS,
"icns:cairo", 7, &quartz_engine, &device_features_quartz},
89 {
FORMAT_ICO,
"ico:cairo", 7, &quartz_engine, &device_features_quartz},
90 {
FORMAT_JPEG,
"jpe:cairo", 7, &quartz_engine, &device_features_quartz},
91 {
FORMAT_JPEG,
"jpeg:cairo", 7, &quartz_engine, &device_features_quartz},
92 {
FORMAT_JPEG,
"jpg:cairo", 7, &quartz_engine, &device_features_quartz},
93 {
FORMAT_JPEG2000,
"jp2:cairo", 7, &quartz_engine, &device_features_quartz},
94 {
FORMAT_PICT,
"pct:cairo", 7, &quartz_engine, &device_features_quartz},
95 {
FORMAT_PICT,
"pict:cairo", 7, &quartz_engine, &device_features_quartz},
96 {
FORMAT_PNG,
"png:cairo", 7, &quartz_engine, &device_features_quartz},
97 {
FORMAT_PSD,
"psd:cairo", 7, &quartz_engine, &device_features_quartz},
98 {
FORMAT_SGI,
"sgi:cairo", 7, &quartz_engine, &device_features_quartz},
99 {
FORMAT_TIFF,
"tif:cairo", 7, &quartz_engine, &device_features_quartz},
100 {
FORMAT_TIFF,
"tiff:cairo", 7, &quartz_engine, &device_features_quartz},
101 {
FORMAT_TGA,
"tga:cairo", 7, &quartz_engine, &device_features_quartz},
#define GVDEVICE_DOES_TRUECOLOR
#define GVDEVICE_BINARY_FORMAT
static const int BYTES_PER_PIXEL
CGDataConsumerCallbacks device_data_consumer_callbacks
static const int BITS_PER_COMPONENT
gvplugin_active_device_t device
unsigned char * imagedata
location of imagedata