/* image destination -> data consumer -> job's gvdevice */
/* data provider <- job's imagedata */
CGDataConsumerRef data_consumer = CGDataConsumerCreate(job, &device_data_consumer_callbacks);
- CGImageDestinationRef image_destination = CGImageDestinationCreateWithDataConsumer(data_consumer, format_to_uti(job->device.id), 1, NULL);
+ CGImageDestinationRef image_destination =
+ CGImageDestinationCreateWithDataConsumer(data_consumer,
+ format_to_uti((format_type)job->device.id), 1, NULL);
CGDataProviderRef data_provider = CGDataProviderCreateDirect(job->imagedata, BYTES_PER_PIXEL * job->width * job->height, &memory_data_provider_callbacks);
/* add the bitmap image to the destination and save it */
&device_data_consumer_callbacks);
CGImageDestinationRef image_destination =
CGImageDestinationCreateWithDataConsumer(data_consumer,
- format_to_uti(job->device.id),
- 1,
- NULL);
+ format_to_uti((format_type)job->device.id), 1, NULL);
/* add the bitmap image to the destination and save it */
CGImageRef image = CGBitmapContextCreateImage(context);