aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/floaterlocalassetbrowse.cpp
diff options
context:
space:
mode:
authorelektrahesse2010-10-09 19:05:40 +0200
committerelektrahesse2010-10-09 19:07:11 +0200
commit565d2e1389b0a72e6eca7068988a9312991abfb1 (patch)
tree7103015e3c024cbeb48ff1e7c89dd14bb6ce12ff /linden/indra/newview/floaterlocalassetbrowse.cpp
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 'linden/indra/newview/floaterlocalassetbrowse.cpp')
-rw-r--r--linden/indra/newview/floaterlocalassetbrowse.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/newview/floaterlocalassetbrowse.cpp b/linden/indra/newview/floaterlocalassetbrowse.cpp
index 6564528..443b5bf 100644
--- a/linden/indra/newview/floaterlocalassetbrowse.cpp
+++ b/linden/indra/newview/floaterlocalassetbrowse.cpp
@@ -74,6 +74,9 @@ this feature is still a work in progress.
74#include "llvovolume.h" 74#include "llvovolume.h"
75#include "llface.h" 75#include "llface.h"
76 76
77#ifdef LL_DARWIN
78#include "llwindowmacosx-objc.h"
79#endif
77 80
78/*=======================================*/ 81/*=======================================*/
79/* Instantiating manager class */ 82/* Instantiating manager class */
@@ -227,6 +230,13 @@ void LocalBitmap::updateSelf()
227 230
228bool LocalBitmap::decodeSelf(LLImageRaw* rawimg) 231bool LocalBitmap::decodeSelf(LLImageRaw* rawimg)
229{ 232{
233#ifdef LL_DARWIN
234 if (decodeImageQuartz(filename, rawimg))
235 {
236 rawimg->biasedScaleToPowerOfTwo( LLViewerImage::MAX_IMAGE_SIZE_DEFAULT );
237 return true;
238 }
239#else
230 switch (this->extension) 240 switch (this->extension)
231 { 241 {
232 case IMG_EXTEN_BMP: 242 case IMG_EXTEN_BMP:
@@ -275,6 +285,7 @@ bool LocalBitmap::decodeSelf(LLImageRaw* rawimg)
275 default: 285 default:
276 break; 286 break;
277 } 287 }
288#endif
278 return false; 289 return false;
279} 290}
280 291