Commit Graph

  • c9d67446d2 Reverse allocation routines parameter order so that the context is at the back. Jorge Rodriguez 2014-09-09 22:57:15 -0700
  • 17b931047c Add the epsilon value into the alpha instead of using an if statement. It's a tiny bit faster and it can be removed afterwards. Jorge Rodriguez 2014-09-09 22:47:53 -0700
  • 1d5c902e2e These minor optimizations were probably already done by the compiler but they can't hurt. Jorge Rodriguez 2014-09-09 22:07:40 -0700
  • 41e6aad693 Avoid repeated adds and ensure correct round-trip result. Jorge Rodriguez 2014-09-09 21:57:46 -0700
  • f2102d906f Use the info structure to keep track of our memory block sizes to reduce duplicated code and cut down on errors. Jorge Rodriguez 2014-09-09 20:58:19 -0700
  • 969ff7c850 Make sure calculate_memory matches with the allocations. Fix some errant asserts. Jorge Rodriguez 2014-09-09 20:51:29 -0700
  • 8355ea1184 Use height, not width, for correct progress report. Jorge Rodriguez 2014-09-09 18:41:28 -0700
  • 4b69c0637e If alpha is zero then sneakily replace it with a very small nonzero so that the color data is preserved. Jorge Rodriguez 2014-09-09 17:03:20 -0700
  • d510d70b6a Report downsample progress by when we empty the ring buffer, it's more accurate that way. Jorge Rodriguez 2014-09-09 16:35:00 -0700
  • 084baed15c Replace premul test with better premul test that doesn't require visual inspection. Jorge Rodriguez 2014-09-09 16:30:06 -0700
  • 497eab8339 Normalize downsample coefficients. Jorge Rodriguez 2014-09-09 15:22:29 -0700
  • 43fbc1d5e3 Rearrange the algebra on two of the filters to avoid repeating decimals which cause precision loss. Use int32 to test filters because it's more accurate. Jorge Rodriguez 2014-09-09 14:10:14 -0700
  • ca241daefa Use rounding to try to preserve the original value. Fix test case. Jorge Rodriguez 2014-09-09 12:16:23 -0700
  • 145690788c Use input_h + pixel_margin * 2 to prevent progress report from ever going above 1. Always report a 0 before and a 1 at the end of each resize. Jorge Rodriguez 2014-09-09 10:58:01 -0700
  • fb8eabd6b8 Add .hdr file writing support baldurk 2014-09-09 08:33:25 +0100
  • 118f28557e Tests to ensure images of a solid color stay the same solid color after resampling. Jorge Rodriguez 2014-09-07 16:47:02 -0700
  • e6c47ec657 Fix kernel lookup for downsampling. Jorge Rodriguez 2014-09-07 11:56:11 -0700
  • 8cc6a3abfc If there's no context we're using the simple API functions - fall back to malloc and free. Jorge Rodriguez 2014-09-07 10:02:51 -0700
  • 36db03f390 tighten bounds on filter normalization test Sean Barrett 2014-09-07 05:31:40 -0700
  • 7f8ac35e42 check whether filter kernels are normalized Sean Barrett 2014-09-07 05:29:43 -0700
  • 7da729bfce restore correct definition of box Sean Barrett 2014-09-07 04:07:07 -0700
  • 08ca345839 Merge branch 'resample2' into resample Sean Barrett 2014-09-07 03:36:16 -0700
  • cd1fbacbb6 rename NEAREST to BOX write test for BOX Sean Barrett 2014-09-07 03:19:18 -0700
  • 8e91cb2b7d treat vertical tab and form feed characters as whitespace Ken Miller 2014-09-07 00:48:48 -0500
  • e003c66498 support PGM and PPM formats Ken Miller 2014-09-07 00:38:18 -0500
  • 586e84087c Correctly specify alpha channels. Jorge Rodriguez 2014-09-06 21:50:28 -0700
  • 38ce5494bc Clarify some comments. Make stbir__resize_arbitrary an internal function. Update test cases to use actual API functions. Jorge Rodriguez 2014-09-06 20:17:19 -0700
  • 41555b5d53 update test cases to work on things other than barbara.png Sean Barrett 2014-09-06 14:58:32 -0700
  • fb059fcece Progress report. Jorge Rodriguez 2014-09-06 10:57:21 -0700
  • 75bdd2da83 Fix malloc context and whitespace. Jorge Rodriguez 2014-09-06 08:48:46 -0700
  • ce7aed0fb7 Merge pull request #3 from nothings/resample Jorge Rodriguez 2014-09-05 16:52:49 -0700
  • 2572f3177a Merge pull request #38 from lgvz/comments nothings 2014-09-05 09:14:53 -0700
  • a5f1cb5657 Fix comments Tero Hänninen 2014-09-05 18:38:39 +0300
  • 952c26e626 inline stbir__encode_pixel into stbir__encode_scanline Sean Barrett 2014-09-01 19:29:28 -0700
  • aee30095c7 refactor internal interfaces to avoid passing things multiple times; finish prepping 'stbir__info' even before calculate_memory; get rid of 'noinfo' functions since now calculate_memory doesn't need 'em; add new binary-searched sRGB function (untested) Sean Barrett 2014-09-01 16:52:04 -0700
  • 24c540e1b0 rename alpha gamma flag Sean Barrett 2014-08-31 10:00:54 -0700
  • 07c35180f7 tweak new API Sean Barrett 2014-08-31 09:45:29 -0700
  • 84520de6c4 finish STBI_EDGE_ZERO, untested Sean Barrett 2014-08-31 09:32:17 -0700
  • 9a1d34843e STBIR_EDGE_ZERO Sean Barrett 2014-08-31 09:10:49 -0700
  • 732fec68ee tweak new API, get it partly working Sean Barrett 2014-08-31 08:55:41 -0700
  • 664d8961f5 new API partially in-use Sean Barrett 2014-08-31 08:34:05 -0700
  • bbd4e2ee9a new API "finished" but untested Sean Barrett 2014-08-31 07:32:10 -0700
  • 2549d8156e in-progress refactoring Sean Barrett 2014-08-31 07:23:34 -0700
  • 034674c142 Merge branch 'resample2' into resample Sean Barrett 2014-08-31 07:23:22 -0700
  • 1bd9770e75 separate filter for horizontal and vertical Sean Barrett 2014-08-31 06:47:45 -0700
  • c1b876768e in progress new API Sean Barrett 2014-08-31 06:31:50 -0700
  • 067a1d1be1 update readme version #s Sean Barrett 2014-08-27 22:01:50 -0700
  • b8e0530fdf update contributor list & version number Sean Barrett 2014-08-27 22:01:37 -0700
  • 33d621ca48 tweaks to const-correct API change Sean Barrett 2014-08-27 22:00:07 -0700
  • 93c02695e3 Const in decode/open memory. Alejandro Pereda 2014-08-28 06:53:13 +0800
  • 6bb8eb3695 update version number Sean Barrett 2014-08-26 13:41:04 -0700
  • 578b4e18b4 Merge branch 'master' of https://github.com/nothings/stb Sean Barrett 2014-08-26 13:40:54 -0700
  • a14339a019 fix handling of tRNS chunk in PNG (used wrong variable for output channels) Sean Barrett 2014-08-26 13:39:53 -0700
  • b75eff36f8 Merge pull request #1 from nothings/resample Jorge Rodriguez 2014-08-18 11:29:19 -0700
  • 5dfa79fb31 stride doesn't have to be multiples of pixels Sean Barrett 2014-08-18 10:18:59 -0700
  • 32b626859d remove most per-pixel switches, beginnings of removing encode_pixel switch Sean Barrett 2014-08-18 10:02:00 -0700
  • 5eb0236d9d reverse default behavior of linear/gamma for alpha Sean Barrett 2014-08-18 09:33:01 -0700
  • b9bb05b81c minor cleanups Sean Barrett 2014-08-18 09:14:11 -0700
  • 6ef563d089 rename to stb_image_resize.h Sean Barrett 2014-08-18 09:12:59 -0700
  • eb0781fda0 add comments describing the purpose of the s,t-rectangle tests Sean Barrett 2014-08-18 09:01:33 -0700
  • 9ba3dc1fc5 make resample tests work in VC6 Sean Barrett 2014-08-18 08:56:44 -0700
  • 9b6c354fe6 Update stb_howto.txt nothings 2014-08-17 21:16:18 -0700
  • 492e3f3463 update version numbers Sean Barrett 2014-08-17 21:12:16 -0700
  • 14e8b66119 fix broken map generation Sean Barrett 2014-08-17 21:08:43 -0700
  • 45469cfa27 fix warnings Sean Barrett 2014-08-17 16:47:55 -0700
  • 7e079c670d tweak TGA monochrome support Sean Barrett 2014-08-16 13:52:47 -0700
  • caf6d08f2b Merge branch 'master' of https://github.com/Skylark13/stb into working Sean Barrett 2014-08-16 13:50:16 -0700
  • b36f9908ce Merge branch 'master' of https://github.com/thedmd/stb into working Sean Barrett 2014-08-16 13:45:32 -0700
  • fc09a5d198 Don't saturate floats. Jorge Rodriguez 2014-08-12 14:15:05 -0700
  • c9caec1123 Refactoring to reduce duplicated code. Jorge Rodriguez 2014-08-12 13:50:17 -0700
  • 1353909477 Allow user to force the alpha channel to be handled as a linear value even if the color channels are sRGB. Jorge Rodriguez 2014-08-12 13:37:06 -0700
  • bbc340d481 Support different edge behavior on vertical and horizontal axis. Jorge Rodriguez 2014-08-12 12:22:38 -0700
  • 6ae729d61a Four new tests of subpixel stuff. Jorge Rodriguez 2014-08-12 12:15:12 -0700
  • 419a5ba10f Fix stbr__type_size for updated stbr_type Jorge Rodriguez 2014-08-12 11:55:27 -0700
  • 45fa6ec900 Update test cases for premul channel -1 meaning don't do any premul handling, fix another no-more-advanced. Jorge Rodriguez 2014-08-11 12:37:10 -0700
  • e75ed1d381 Update test cases for no more advanced API. Jorge Rodriguez 2014-08-11 12:21:55 -0700
  • 6ade66182c allow alpha channel to be channel #0 Sean Barrett 2014-08-11 02:34:50 -0700
  • f502cae91a rename everything to do with premultiplied alpha since the whole point is that this is for handling *non*-premultiplied alpha (since correct handling of premultiplied alpha requires doing nothing) Sean Barrett 2014-08-11 02:32:07 -0700
  • 42556fec82 don't require manual synchronization of STBR_MAX_COLORSPACES/MAX_TYPES Sean Barrett 2014-08-11 02:26:17 -0700
  • 392585130c Get rid of "advanced" API with explicit temp memory because the STBR_MALLOC interface is sufficient Sean Barrett 2014-08-11 02:23:39 -0700
  • 259c92b550 replace "texel" with "pixel" in identifiers Sean Barrett 2014-08-11 02:17:40 -0700
  • fc4ca11a52 Fix places in previous commits where tabs got replaced with spaces Sean Barrett 2014-08-11 02:16:23 -0700
  • 25fae8c67c Avoid divides in encode_scanline if not doing unpremultiply. Rename stb__encode_scanline to stb__encode_pixel Sean Barrett 2014-08-11 02:13:26 -0700
  • a0537bfd04 Allow compiling as C pre-C99 (don't rely on declare-anywhere) Sean Barrett 2014-08-11 01:56:47 -0700
  • 3077bf5023 wrap long data lines Sean Barrett 2014-08-11 01:50:16 -0700
  • 94ecd81abe Merge branch 'master' of http://github.com/BSVino/stb into resample Sean Barrett 2014-08-11 01:47:12 -0700
  • ebc2d23d47 realized the 2 colorbytes case is impossible. also updated the comment at the top of the file to reflect stbi_write_tga's new capabilities. Jean-Sébastien Guay 2014-08-09 09:16:57 -0400
  • 26a71f67fe comment was wrong way around... code was right. Jean-Sébastien Guay 2014-08-09 01:08:43 -0400
  • b8b364c301 stbi_write_tga can now write 1 and 2 channel (grayscale and grayscale-alpha) images. Jean-Sébastien Guay 2014-08-09 00:34:49 -0400
  • 10def9b150 fix MSVC-ARM internal compiler error by wrapping malloc MichaÅ‚ CichoÅ„ 2014-08-08 00:46:45 +0200
  • aaea13b71c version numbers Sean Barrett 2014-08-07 04:46:29 -0700
  • c8a3522a5f version number Sean Barrett 2014-08-07 04:46:13 -0700
  • 29f59c0460 update version number Sean Barrett 2014-08-07 04:44:17 -0700
  • d26beed67d comments/ version update for platformID = Unicode Sean Barrett 2014-08-07 04:41:02 -0700
  • 0adfac0abe Merge branch 'master' of https://github.com/HouQiming/stb into working Sean Barrett 2014-08-07 04:35:51 -0700
  • 85c39da625 Merge branch 'rc/const' of https://github.com/ronnychevalier/stb into working Sean Barrett 2014-08-07 04:25:12 -0700
  • 2119c17ae9 stb_vorbis: fix unused variables Ronny Chevalier 2014-07-17 14:53:42 +0200
  • 260741ed33 vorbis warnings from ronny chevalier Sean Barrett 2014-08-07 04:20:58 -0700
  • 758c165d2c stb_vorbis: fix unused functions Ronny Chevalier 2014-07-17 14:49:48 +0200
  • b8b6e7c31a stb_image: fix unused parameter Ronny Chevalier 2014-07-17 14:44:11 +0200