aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llwindowmacosx-objc.h
diff options
context:
space:
mode:
authorelektrahesse2010-10-09 19:05:40 +0200
committerelektrahesse2010-10-09 19:07:11 +0200
commit565d2e1389b0a72e6eca7068988a9312991abfb1 (patch)
tree7103015e3c024cbeb48ff1e7c89dd14bb6ce12ff /linden/indra/llwindow/llwindowmacosx-objc.h
parentChanged version to Experimental 2010.10.09 (diff)
downloadmeta-impy-565d2e1389b0a72e6eca7068988a9312991abfb1.zip
meta-impy-565d2e1389b0a72e6eca7068988a9312991abfb1.tar.gz
meta-impy-565d2e1389b0a72e6eca7068988a9312991abfb1.tar.bz2
meta-impy-565d2e1389b0a72e6eca7068988a9312991abfb1.tar.xz
Mac Only: Implemented initial CoreGraphics image decoding to support uploads, both single and bulk, bypassing viewer's internal decoding classes and using osx native frameworks. Also pushing non-fully-working-yet (and thus disabled) code for native j2c decoding.
Diffstat (limited to '')
-rw-r--r--linden/indra/llwindow/llwindowmacosx-objc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llwindowmacosx-objc.h b/linden/indra/llwindow/llwindowmacosx-objc.h
index 14cddaa..14c9c92 100644
--- a/linden/indra/llwindow/llwindowmacosx-objc.h
+++ b/linden/indra/llwindow/llwindowmacosx-objc.h
@@ -31,6 +31,14 @@
31 * $/LicenseInfo$ 31 * $/LicenseInfo$
32 */ 32 */
33 33
34#include "llimagej2c.h"
35#include <Carbon/Carbon.h>
36
37#ifdef __OBJC__
38#ifdef BOOL
39#undef BOOL
40#endif
41#endif // __OBJC__
34 42
35// This will actually hold an NSCursor*, but that type is only available in objective C. 43// This will actually hold an NSCursor*, but that type is only available in objective C.
36typedef void *CursorRef; 44typedef void *CursorRef;
@@ -40,3 +48,5 @@ void setupCocoa();
40CursorRef createImageCursor(const char *fullpath, int hotspotX, int hotspotY); 48CursorRef createImageCursor(const char *fullpath, int hotspotX, int hotspotY);
41OSErr releaseImageCursor(CursorRef ref); 49OSErr releaseImageCursor(CursorRef ref);
42OSErr setImageCursor(CursorRef ref); 50OSErr setImageCursor(CursorRef ref);
51BOOL decodeImageQuartz(std::string filename, LLImageRaw *raw_image);
52BOOL decodeImageQuartz(const UInt8* data, int len, LLImageRaw *raw_image);