Commit Graph

101 Commits (e92d3dcf1013ab340fdef514b41ebf790f79e04c)

Author SHA1 Message Date
Merov Linden 460aa3ade7 Merge with viewer-experience 2011-05-07 11:01:58 -07:00
Merov Linden c6c1419faa EXP-664 : Make encoding parameters more resilient to bad entries, add levels as encoding parameters, update test applet to support this 2011-05-04 22:43:51 -07:00
Oz Linden 0656620e2d merge changes for storm-1187 2011-04-22 11:49:41 -04:00
Merov Linden b77a7b4711 EXP-663 : Allow creation of j2c images with precincts and blocks, limited to llimage_libtest, no viewer change 2011-04-13 18:11:56 -07:00
Merov Linden 759d72a46c EXP-669 : Refactor code to use correct LLImageFormatted methods to load images of all formats, reviewed by richard 2011-04-13 14:05:31 -07:00
Vadim ProductEngine a84c8e0704 STORM-1118 FIXED STORM-1118 Viewer crashes when user tries to upload image without JFIF header.
* Added checks for image file contents not matching the file extension (e.g. a bitmap named file.jpg).
* Added checks for abnormally short files to avoid crashes when parsing them.
2011-04-08 02:25:32 +03:00
Merov Linden e752e91828 STORM-746 : add precincts and blocks arguments taken into account in j2c output 2011-04-04 23:49:40 -07:00
Merov Linden 83ec0cd62f STORM-746 : add new arguments for precincts and blocks on output, region and level on input, add code for input loading restriction 2011-04-04 18:37:32 -07:00
Merov Linden c2e88db89a STORM-987 : Took Vadim's comment into account: check arguments consistency, make sure remaining perf data are flushed on exit. 2011-03-10 22:02:49 -08:00
Merov Linden 7f42c02cad STORM-987 : Add the --image-stats argument, make argument passing more consistent, fix typos in comments in llimage header 2011-03-09 20:54:59 -08:00
Xiaohong Bao 436fe6a412 fix a minor memory leaking flaw for SH-895: some mild memory leaking (partially) 2011-02-01 17:53:25 -07:00
Xiaohong Bao 4af7e9eb64 Merge viewer-development-shining up to REV 3bf724ecb7c6 (fix for SH-829: Viewer attempting to load precached images in file types that are not being used.) 2011-01-21 16:25:23 -07:00
Xiaohong Bao e3f5b66d5a fix for SH-829: Viewer attempting to load precached images in file types that are not being used. 2011-01-20 15:20:27 -07:00
Thickbrick Sleaford db1a63e99e FIX VWR-24420 Keep alpha channel in PNG images with background color.
Remove code that composites RGBA PNG images that specify a background
color down to RGB.
2011-01-09 01:13:38 +02:00
Merov Linden 922f4e59ab STORM-744 : Turn llimage/tests/ on again 2010-12-17 11:30:52 -08:00
Merov Linden 0e07758b54 merge with STORM-105 and viewer-development 2010-11-10 22:39:11 -08:00
Merov Linden b5df1d2abc STORM-105 : takes Vadim's comments into account, clean up use of static globals and magic strings, enforce naming conventions 2010-11-08 17:16:31 -08:00
Merov Linden 85509457c6 STORM-105 : Take Vadim code review into account, code clean up 2010-11-05 18:40:08 -07:00
Merov Linden 4bbe823302 merge with STORM-105 2010-11-04 18:10:29 -07:00
Merov Linden ba3307b8d0 merge with STORM-105 2010-11-04 18:09:35 -07:00
Merov Linden f7af29ab40 merge with viewer-development 2010-11-04 14:30:32 -07:00
Merov Linden c2500f808c STORM-105 : Tweak the data labels to make them easier to read 2010-11-04 13:52:46 -07:00
Andrew Productengine 9d97a16481 STORM-472 Fixed crash that happened while decoding jpg image.
In case of files provided in ticket problem occured in libjpeg's jpeg_start_decompress(to be more specofic- inside it's _jinit_color_deconverter()) because if cinfo's out_color_space is RGB, then jpeg_color_space can't be JCS_YCCK (JCS_YCCK jpeg_color_space is possible for JCS_CMYK out_color_space). So when the combination of RGB and JCS_YCCK was encountered, jpeglib called ERREXIT() inside which exit() was called and viewer crashed.

- Checking for this combination before calling jpeg_start_decompress() would solve this problem in this specific case, but there are a lot of possible error combinations which cause libjpeg to exit and thus crash viewer, so copypasting checks from it into viewer code would be cumbersome, uneffective and ugly. So another approach was used instead- by default libjpeg calls exit() after encountering an error, but user can provide his own error handling function instead. on_jpeg_error() function was added in fix for this. It sets true a boolean flag that is used to determine whether there were errors in getImageDimensionsJpeg(), and this function's return value depends on it.
2010-11-03 18:23:53 +02:00
Merov Linden dac53830f1 STORM-104 : make kdu statically linked, suppress the need for llkdu 2010-10-27 23:40:35 -07:00
Merov Linden 40979589af STORM-105 : improve decompression perf gathering, allow perf name to be passed on the command line, fix crash in analysis phase 2010-10-27 23:15:22 -07:00
Merov Linden 88e33d00cd STORM-105 : Add compression data gathering, took partial decompression into account in stats 2010-09-17 19:17:12 -07:00
Merov Linden 8ada6ed3cf Pull update from viewer-development 2010-09-16 20:09:36 -07:00
Boroondas Gupte 6e1ba9c960 merged STORM-130 (a.k.a. VWR-22769, SNOW-737 Version agnostic libPNG linking) 2010-09-15 16:07:13 +02:00
Merov Linden 39e5d2ecf0 VWR-22761 : Rearchitecture of llmetricperformancetester and simple (non complete) implementation in llimagej2c 2010-09-08 23:03:56 -07:00
Xiaohong Bao a0611b5a01 Automated merge with http://bitbucket.org/TheShining/viewer-development 2010-09-07 13:27:49 -06:00
Xiaohong Bao 497d35af48 fix for VWR-22813: crash at [1] LLImageBase::allocateData(int) [secondlife-bin llimage.cpp] 2010-09-07 10:48:06 -06:00
Boroondas Gupte 9c4a2547b9 SNOW-737 FIXED Version agnostic libPNG linking
Patch from http://jira.secondlife.com/secure/attachment/41125/version_agnostic_libpng__1.diff
applied with fuzz 3:

	patching file indra/cmake/PNG.cmake
	Hunk #1 succeeded at 6 with fuzz 3 (offset -2 lines).
	patching file indra/llimage/llpngwrapper.cpp
	Hunk #1 succeeded at 215 (offset -2 lines).
	Hunk #2 succeeded at 363 (offset -2 lines).
	patching file indra/llimage/llpngwrapper.h
	Hunk #1 succeeded at 31 (offset -2 lines).

Added entry in doc/contributions.txt.
No further changes other than that.
2010-08-29 18:32:20 +02:00
Aaron Terrell (Enus) 48743cbd41 standardizing test suite names as class name under test 2010-08-24 23:41:47 -07:00
Oz Linden 06b0d72efa Change license from GPL to LGPL (version 2.1) 2010-08-13 07:24:57 -04:00
Xiaohong Bao cd628d8ea8 merge the fix of SNOW-793: memory leak in LLImageFormatted::appendData 2010-08-04 16:58:21 -06:00
Xiaohong Bao 84d3eb1bee Automated merge with ssh://hg.lindenlab.com/q/viewer-release 2010-06-16 14:08:51 -06:00
Lynx Linden b2b6d52807 EXT-7851 FIXED Cleaned up code to avoid confusion.
The mTmpWriteBuffer member variable was never actually being allocated
because it was being shadowed by a local variable. This is why the
code never crashed. I've removed the member variable as it was clearly
never used and really confused the code.
2010-06-15 17:28:17 +01:00
Lynx Linden 1a190182ea EXT-7851 FIXED Memory leak in LLImagePNG::encode()
We were not freeing the temporary image buffer if the PNG encoding
failed. This probably doesn't happen very often, but it's good to plug
the leak all the same.
2010-06-14 16:02:55 +01:00
Xiaohong Bao 8108de817c EXT-6567: POSSIBLE FIXED: crash at LLImageBase::allocateData [secondlife-bin llimage.cpp:170];
also removed the debug code for this bug.
2010-06-16 11:42:05 -06:00
Xiaohong Bao 87be73be24 fix for EXT-7159: textures are not fully loaded when http-texture is enabled.
and EXT-6928: Viewer crashes immediately after enabling HTTP Textures on a http-texture-server-1 simulator
2010-04-28 17:07:24 -06:00
Tofu Linden 62a09f3ea9 dos2unix this header :( 2010-04-21 11:30:17 +01:00
Yuri Chebotarev 6ed8c492f5 fix for EXT-4082 Normal Uploading huge image crashes viewer
https://codereview.productengine.com/secondlife/r/11/
reviewed Tofu Linden

--HG--
branch : product-engine
2010-04-20 15:47:02 +03:00
Xiaohong Bao 990011f3d6 make LLImageBase::allocateData() thread-safe.
insert debug code for EXT-6567: crash at LLImageBase::allocateData [secondlife-bin llimage.cpp:170]
2010-04-01 10:30:27 -06:00
Xiaohong Bao 5b7f8c719b debug code for EXT-5599: Viewer crashes consistently, in Linden Homes region. 2010-03-10 17:33:43 -07:00
Tofu Linden 9fee359d1b CID-3
Checker: CHECKED_RETURN
Function: LLImageDecodeThread::update(unsigned int)
File: /indra/llimage/llimageworker.cpp
2010-02-13 14:37:48 +00:00
Karl Stiefvater (qarl) de2fabcf3d EXT-4929 Crash in llimage.cpp
EXT-4713 Hook attachment from loco pocos pirate outfit causes viewer crash

removed broken assert (all cases are covered by asserts downstream.)
reviewed by James.
2010-02-08 13:13:16 -06:00
Leyla Farazha 2981e9aa4c checking for null in LLImageRaw::copy to prevent a crash 2010-01-21 15:10:25 -08:00
Steve Bennetts 0db73b1ac5 merge 2009-11-06 12:20:52 -08:00
Steve Bennetts afe6350160 merge from texture-pipeline 2009-11-06 12:15:41 -08:00
Tofu Linden 66171216b0 SNOW-329 Handling of error case in llimage.cpp incorrect
This is the same fix as DEV-32269, trivially ported to viewer2.
reviewed by merov, james, moss!
2009-11-06 15:19:30 +00:00