Skip to content

Commit

Permalink
Added prototype declarations for Xcode 4.1 or later when compiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonsongithub committed Sep 2, 2011
1 parent e5138af commit db87513
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions QuartzHelpLibrary.m
Expand Up @@ -35,8 +35,13 @@
void _CGImageDumpImageAttribute(CGImageRef imageRef);
void _CGImageDumpAlphaInformation(CGImageRef imageRef);
void _CGImageDumpBitmapInformation(CGImageRef imageRef);

int _getYFromRGB(int r, int g, int b);

void _CGCreate8bitPixelBufferWithImage(CGImageRef imageRef, unsigned char **pixel, int *width, int *height, int *bytesPerPixel, QH_PIXEL_TYPE pType);
void _CGCreate24bitPixelBufferWithImage(CGImageRef imageRef, unsigned char **pixel, int *width, int *height, int *bytesPerPixel, QH_PIXEL_TYPE pType);
void _CGCreate32bitPixelBufferWithImage(CGImageRef imageRef, unsigned char **pixel, int *width, int *height, int *bytesPerPixel, QH_PIXEL_TYPE pType);

#pragma mark - Load image file

CGImageRef CGImageCreateWithPNGorJPEGFilePath(CFStringRef filePath) {
Expand Down

0 comments on commit db87513

Please sign in to comment.