From 66a62ec9913bd417b92af8adb6c991340bc922ea Mon Sep 17 00:00:00 2001 From: sonson Date: Wed, 18 May 2011 15:47:48 +0900 Subject: [PATCH] Fixed data type of CGImageCreateWithPixelBuffer's arguments. --- QuartzHelpLibrary.h | 2 +- QuartzHelpLibrary.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/QuartzHelpLibrary.h b/QuartzHelpLibrary.h index 50c7fa1..ee4b7f0 100644 --- a/QuartzHelpLibrary.h +++ b/QuartzHelpLibrary.h @@ -72,7 +72,7 @@ void CGCreatePixelBufferWithImage(CGImageRef imageRef, unsigned char **pixel, in #pragma mark - Creating CGImage -CGImageRef CGImageCreateWithPixelBuffer(unsigned char *pixel, int width, int height, int bytesPerPixel, int target_pType); +CGImageRef CGImageCreateWithPixelBuffer(unsigned char *pixel, int width, int height, int bytesPerPixel, QH_PIXEL_TYPE target_pType); #pragma mark - Convert CGImage to image file binary diff --git a/QuartzHelpLibrary.m b/QuartzHelpLibrary.m index 83c238d..75af9dc 100644 --- a/QuartzHelpLibrary.m +++ b/QuartzHelpLibrary.m @@ -775,7 +775,7 @@ void CGCreatePixelBufferWithImage(CGImageRef imageRef, unsigned char **pixel, in #pragma mark - #pragma mark Creating CGImage -CGImageRef CGImageCreateWithPixelBuffer(unsigned char *pixel, int width, int height, int bytesPerPixel, int target_pType) { +CGImageRef CGImageCreateWithPixelBuffer(unsigned char *pixel, int width, int height, int bytesPerPixel, QH_PIXEL_TYPE target_pType) { if (bytesPerPixel == QH_BYTES_PER_PIXEL_8BIT) { if (target_pType == QH_PIXEL_GRAYSCALE) { CGColorSpaceRef grayColorSpace = CGColorSpaceCreateDeviceGray();