summaryrefslogtreecommitdiff
path: root/content/handlers/image
Commit message (Collapse)AuthorAgeFilesLines
* Fix longjmp to invalid address on jpeg init errorSergei Rogachev2016-08-141-2/+2
| | | | | | | | | | | | | | | | | | | Libjpeg used in NetSurf for decoding of JPEG images handles exceptions using a pair of non-local jump functions: setjmp() and longjmp(). When a decompression context is created via a call to the function jpeg_create_decompress() the caller passes a structure jpeg_decompress_struct as a parameter. This structure should has a validly initialized jump buffer, so the initialization or other functions called in future can jump to the exception handling context. The jpeg backend of NetSurf now initializes libjpeg mistakenly: jump buffer is filled after the call to jpeg_create_decompress(). It results in jump to random addresses in the case of exception caught during operation of the function jpeg_create_decompress(). The patch moves the initialization of jump buffer before the call to jpeg_create_decompress(). Signed-off-by: Sergei Rogachev <rogachevsergei@gmail.com>
* fix bitmap modification callback calling for bmp image handlerVincent Sanders2016-08-141-4/+10
| | | | | | | | bitmap file decoding is done at first call to redraw but was not calling the modified callback at the correct time immediately after decode so frontend image chnages were not being done. This caused nsgtk to fail to apply its colour space fixups so red was swapped with blue.
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-0611-23/+23
|
* fixup rsvg image handler for content API changesVincent Sanders2016-06-061-2/+4
|
* Update content to split public and internal APIVincent Sanders2016-06-0611-20/+39
|
* move plotters header into public APIVincent Sanders2016-05-305-5/+5
|
* move misc header into public APIVincent Sanders2016-05-302-2/+2
|
* move bitmap API header to core include directoryVincent Sanders2016-05-2610-186/+9
|
* move the CSS content handlerVincent Sanders2016-05-262-2/+2
|
* move image content handlers to accomodate core build changesVincent Sanders2016-05-2324-0/+4817