Ticket #2828: jpeg-cleanup.patch

File jpeg-cleanup.patch, 2.0 KB (added by Itms, 7 years ago)

first draft that Trac didn't let me upload yesterday

  • source/lib/tex/tex.h

     
    1 /* Copyright (c) 2014 Wildfire Games
     1/* Copyright (c) 2016 Wildfire Games
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
    44 * a copy of this software and associated documentation files (the
     
    255255    /**
    256256     * decode an in-memory texture file into texture object.
    257257     *
    258      * FYI, currently BMP, TGA, JPG, JP2, PNG, DDS are supported - but don't
     258     * FYI, currently BMP, TGA, PNG, DDS are supported - but don't
    259259     * rely on this (not all codecs may be included).
    260260     *
    261261     * @param data Input data.
  • source/lib/tex/tex_codec.cpp

     
    1 /* Copyright (c) 2014 Wildfire Games
     1/* Copyright (c) 2016 Wildfire Games
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
    44 * a copy of this software and associated documentation files (the
     
    113113// bottom-up; the row array is inverted if necessary to match global
    114114// orienatation. (this is more efficient than "transforming" later)
    115115//
    116 // used by PNG and JPG codecs.
     116// used by the PNG codec.
    117117//
    118118// note: we don't allocate the data param ourselves because this function is
    119119// needed for encoding, too (where data is already present).
  • source/ps/Util.cpp

     
    231231static size_t s_nextScreenshotNumber;
    232232
    233233// <extension> identifies the file format that is to be written
    234 // (case-insensitive). examples: "bmp", "png", "jpg".
     234// (case-insensitive). examples: "bmp", "png".
    235235// BMP is good for quick output at the expense of large files.
    236236void WriteScreenshot(const VfsPath& extension)
    237237{