diff options
author | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
commit | a408bac29378072fbf36864164149458c978cfcc (patch) | |
tree | 67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/llviewerimagelist.cpp | |
parent | Second Life viewer sources 1.17.0.12 (diff) | |
download | meta-impy-a408bac29378072fbf36864164149458c978cfcc.zip meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2 meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz |
Second Life viewer sources 1.17.1.0
Diffstat (limited to 'linden/indra/newview/llviewerimagelist.cpp')
-rw-r--r-- | linden/indra/newview/llviewerimagelist.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp index 4e87905..fce719f 100644 --- a/linden/indra/newview/llviewerimagelist.cpp +++ b/linden/indra/newview/llviewerimagelist.cpp | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "llimagej2c.h" | 38 | #include "llimagej2c.h" |
39 | #include "llimagetga.h" | 39 | #include "llimagetga.h" |
40 | #include "llimagejpeg.h" | 40 | #include "llimagejpeg.h" |
41 | #include "llimagepng.h" | ||
41 | #include "llmediaengine.h" | 42 | #include "llmediaengine.h" |
42 | 43 | ||
43 | #include "llsdserialize.h" | 44 | #include "llsdserialize.h" |
@@ -1081,6 +1082,21 @@ BOOL LLViewerImageList::createUploadFile(const LLString& filename, | |||
1081 | } | 1082 | } |
1082 | } | 1083 | } |
1083 | break; | 1084 | break; |
1085 | case IMG_CODEC_PNG: | ||
1086 | { | ||
1087 | LLPointer<LLImagePNG> png_image = new LLImagePNG; | ||
1088 | |||
1089 | if (!png_image->load(filename)) | ||
1090 | { | ||
1091 | return FALSE; | ||
1092 | } | ||
1093 | |||
1094 | if (!png_image->decode(raw_image)) | ||
1095 | { | ||
1096 | return FALSE; | ||
1097 | } | ||
1098 | } | ||
1099 | break; | ||
1084 | default: | 1100 | default: |
1085 | return FALSE; | 1101 | return FALSE; |
1086 | } | 1102 | } |