Ticket #2828: jpeg-cleanup.patch
File jpeg-cleanup.patch, 2.0 KB (added by , 7 years ago) |
---|
-
source/lib/tex/tex.h
1 /* Copyright (c) 201 4Wildfire Games1 /* Copyright (c) 2016 Wildfire Games 2 2 * 3 3 * Permission is hereby granted, free of charge, to any person obtaining 4 4 * a copy of this software and associated documentation files (the … … 255 255 /** 256 256 * decode an in-memory texture file into texture object. 257 257 * 258 * FYI, currently BMP, TGA, JPG, JP2,PNG, DDS are supported - but don't258 * FYI, currently BMP, TGA, PNG, DDS are supported - but don't 259 259 * rely on this (not all codecs may be included). 260 260 * 261 261 * @param data Input data. -
source/lib/tex/tex_codec.cpp
1 /* Copyright (c) 201 4Wildfire Games1 /* Copyright (c) 2016 Wildfire Games 2 2 * 3 3 * Permission is hereby granted, free of charge, to any person obtaining 4 4 * a copy of this software and associated documentation files (the … … 113 113 // bottom-up; the row array is inverted if necessary to match global 114 114 // orienatation. (this is more efficient than "transforming" later) 115 115 // 116 // used by PNG and JPG codecs.116 // used by the PNG codec. 117 117 // 118 118 // note: we don't allocate the data param ourselves because this function is 119 119 // needed for encoding, too (where data is already present). -
source/ps/Util.cpp
231 231 static size_t s_nextScreenshotNumber; 232 232 233 233 // <extension> identifies the file format that is to be written 234 // (case-insensitive). examples: "bmp", "png" , "jpg".234 // (case-insensitive). examples: "bmp", "png". 235 235 // BMP is good for quick output at the expense of large files. 236 236 void WriteScreenshot(const VfsPath& extension) 237 237 {