Skip to content

Commit

Permalink
Fixed data type of CGImageCreateWithPixelBuffer's arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonsongithub committed May 18, 2011
1 parent 6bbf2d2 commit 66a62ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion QuartzHelpLibrary.h
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion QuartzHelpLibrary.m
Expand Up @@ -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();
Expand Down

0 comments on commit 66a62ec

Please sign in to comment.