17#include <TargetConditionals.h>
20#if !TARGET_OS_IPHONE && defined(HAVE_PANGOCAIRO)
22static const void *memory_data_consumer_get_byte_pointer(
void *
info)
27CGDataProviderDirectCallbacks memory_data_provider_callbacks = {
29 memory_data_consumer_get_byte_pointer,
35static void quartz_format(
GVJ_t *job)
40 CGImageDestinationRef image_destination =
41 CGImageDestinationCreateWithDataConsumer(data_consumer,
46 CGColorSpaceRef color_space = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
47 CGImageRef
image = CGImageCreate (
54 kCGImageAlphaPremultipliedFirst|kCGBitmapByteOrder32Little,
58 kCGRenderingIntentDefault
60 CGImageDestinationAddImage(image_destination,
image,
NULL);
61 CGImageDestinationFinalize(image_destination);
64 CGImageRelease(
image);
65 CGColorSpaceRelease(color_space);
66 CGDataProviderRelease(data_provider);
67 if (image_destination)
68 CFRelease(image_destination);
69 CGDataConsumerRelease(data_consumer);
Arithmetic helper functions.
#define GVDEVICE_DOES_TRUECOLOR
#define GVDEVICE_BINARY_FORMAT
gvplugin_installed_t gvdevice_quartz_types_for_cairo
CGDataConsumerCallbacks device_data_consumer_callbacks
CFStringRef format_to_uti(format_type format)
static const int BITS_PER_COMPONENT
static gvdevice_features_t device_features_quartz
gvplugin_active_device_t device
unsigned char * imagedata
location of imagedata