Commit Graph

  • a9e1f96765 rename 'stbrp_init_packer' to 'stbrp_init_target' since it must be called for every target; clean up docs Sean Barrett 2014-11-24 18:20:13 -0800
  • 8d3ef72e3c fixed bugs related to the best-fit heuristic Sean Barrett 2014-11-24 18:12:46 -0800
  • 0c10e7c40e tested & debugged on two cases (both heuristics); unknown if BF is *correct*. Sean Barrett 2014-11-24 17:47:06 -0800
  • b09f8186dc non-working rectangle packer Sean Barrett 2014-11-24 16:06:46 -0800
  • 83c5588584 Remove unused variables and ambiguous dangling else Kristoffer Grönlund 2014-10-27 10:02:27 +0100
  • f298f7dabe Ensure GCC that p is not used uninitialized Kristoffer Grönlund 2014-10-27 09:05:40 +0100
  • 3202fb6a55 Remove stb_readdir_size which was written (on windows) but never read Kristoffer Grönlund 2014-10-27 09:03:31 +0100
  • ce9b680784 Add missing return type declaration Kristoffer Grönlund 2014-10-27 09:01:12 +0100
  • 3b1480ff10 Don't read uninitialized memory Kristoffer Grönlund 2014-10-27 08:56:56 +0100
  • 66c312dd9e Merge branch 'master' of https://github.com/nothings/stb Ken Miller 2014-10-20 21:23:12 -0500
  • be3d9cd965 added a few more FAQ questions Sean Barrett 2014-10-20 08:57:14 -0700
  • d97c160e4a tilemap editor 0.30 Sean Barrett 2014-10-19 21:18:07 -0700
  • 2b5d5d9cf4 various updates Sean Barrett 2014-10-19 20:43:18 -0700
  • c6c767f7aa properties and links Sean Barrett 2014-10-18 18:21:34 -0700
  • 55e153af75 Merge branch 'master' of https://github.com/kennethdmiller3/stb Ken Miller 2014-10-07 21:46:46 -0500
  • a44cec873a Merge branch 'master' of https://github.com/nothings/stb Ken Miller 2014-10-07 21:46:34 -0500
  • c8705bef4e Merge branch 'master' of https://github.com/nothings/stb Ken Miller 2014-10-04 22:27:06 -0500
  • 283bc54c90 update version number Sean Barrett 2014-09-27 13:43:27 -0700
  • b46b49d935 colorpicker; new color scheme Sean Barrett 2014-09-27 13:42:50 -0700
  • 3ab22d3750 fix bug in paste to protected layer; add eraser tool Sean Barrett 2014-09-26 23:23:55 -0700
  • 1be86b37d6 Documentation ocornut 2014-09-26 00:06:30 +0100
  • 50d9752612 Removing tabs and using 3-spaces indents to match local coding style ocornut 2014-09-26 00:01:45 +0100
  • 09a1ab87a0 Fix for interlaced and small images + cleanup ocornut 2014-09-25 23:52:24 +0100
  • 3b3e2996e7 Unpack 1/2/4 bpp into 8 bpp scanline buffer + support grayscale 1/2/4 bpp ocornut 2014-09-25 21:59:50 +0100
  • f2b3ebd470 Support for 1/2/4-bit palettized PNG ocornut 2014-09-25 19:30:47 +0100
  • 2834d9da08 Merge branch 'master' of https://github.com/nothings/stb Ken Miller 2014-09-25 00:32:23 -0500
  • 655d24552a tiny bit of documentation Sean Barrett 2014-09-23 18:02:49 -0700
  • 17647014b3 fix c++ compilation Sean Barrett 2014-09-23 17:56:03 -0700
  • 43fb9942de Merge branch 'master' of https://github.com/nothings/stb Sean Barrett 2014-09-23 17:22:52 -0700
  • 8252a94f02 add stb_tilemap_editor.h Sean Barrett 2014-09-23 17:19:25 -0700
  • 891f6d7720 Removing bitpacking warning for srgb conversion nothings 2014-09-18 12:52:11 -0700
  • 941ace7f22 Delete stb_resample_ideas.txt nothings 2014-09-18 08:34:57 -0700
  • b49d5180ca version numbers Sean Barrett 2014-09-18 07:14:33 -0700
  • c32d5c40d2 update version number & contributors Sean Barrett 2014-09-18 07:13:57 -0700
  • 69d4c6738b Merge branch 'master' of http://github.com/rygorous/stb into working Sean Barrett 2014-09-18 07:10:43 -0700
  • 17e82a4080 Merge branch 'master' into working Sean Barrett 2014-09-18 07:10:18 -0700
  • f36b7116e2 Fix a few bugs with subpixel shifts, shift_y in particular. Fabian Giesen 2014-09-17 22:54:16 -0700
  • dea604b896 add stb_image_resize Sean Barrett 2014-09-17 07:11:56 -0700
  • 37faf29f69 Merge branch 'resample' Sean Barrett 2014-09-17 07:10:40 -0700
  • 7c0ae19a42 documentation, release data Sean Barrett 2014-09-17 07:10:21 -0700
  • 0fc13e997b optimization attempts, no meaningful changes Sean Barrett 2014-09-17 06:24:40 -0700
  • 8024673461 switch srgb convert to second ryg method, which is a bit faster (8% total speedup on upsampling test); remove extra table in slowpath Sean Barrett 2014-09-17 06:07:16 -0700
  • a12d3dedf0 Some todo notes. Jorge Rodriguez 2014-09-16 10:50:41 -0700
  • cbf5ebbd35 Install ryg's float -> uint8 sRGB conversion code, which is much faster. Jorge Rodriguez 2014-09-16 10:36:19 -0700
  • 600d80387e Make a guess at the value before doing the binary search, cuts the number of conditionals by half. Not as much gain as I hoped but something. Jorge Rodriguez 2014-09-15 14:01:11 -0700
  • 7602c99e77 Quick formatting fix. Jorge Rodriguez 2014-09-15 11:29:40 -0700
  • dd28033b34 don't encode alpha channel twice when alpha is different colorspace from other channels Sean Barrett 2014-09-15 07:23:22 -0700
  • bdbf1e0ef4 uint32 images need to round with uint32 cast, not int cast Sean Barrett 2014-09-14 15:01:10 -0700
  • 9f66b441bd new quickstart docs; reformat docs; new simple uint32 test Sean Barrett 2014-09-14 14:55:23 -0700
  • 3c261481a6 Add a very quick guide. Jorge Rodriguez 2014-09-13 14:33:13 -0700
  • f0ba7f5f7e Get rid of old perf tests. Jorge Rodriguez 2014-09-13 13:42:50 -0700
  • a0d4f79074 Merge pull request #7 from nothings/resample Jorge Rodriguez 2014-09-13 12:31:18 -0700
  • 385d7a417c delete some unused functions; get rid of stbir__inline for some functions that don't need it Sean Barrett 2014-09-13 08:50:10 -0700
  • f711fdcb0f disable performance test in test code, back to regression test path Sean Barrett 2014-09-13 08:22:15 -0700
  • 8849501a3f add documentation explaining why even a 64K table for srgb_to_uint8 would be inaccurate Sean Barrett 2014-09-13 08:21:14 -0700
  • 9a6af9a8d3 replace int(floor()) with int(), since that produces same results for non-negative values and is much faster on 32-bit x86 Sean Barrett 2014-09-13 08:12:37 -0700
  • 1dcca19ae0 because of we divide by /255 not /256, we lose numerical precision, so can't guarantee that box filter results round to same results as naive Sean Barrett 2014-09-13 08:06:39 -0700
  • adbbe8dabd move x loop inside switch in horizontal_downsample Sean Barrett 2014-09-13 07:46:09 -0700
  • 7a8c9196d1 unroll vertical_upsample inner loop, and reverse loop nesting to minimize work Sean Barrett 2014-09-13 07:41:39 -0700
  • 9c2ae9bdb8 cache filter-width derived computations that use floor/ceil because those were showing up like crazy on VC6 profile despite only being per-scanline-ish?!? unroll inner loop in horizontal_resample Sean Barrett 2014-09-13 07:29:04 -0700
  • 972456cb63 explicit performance tests variants Sean Barrett 2014-09-13 06:53:53 -0700
  • c9600c012f unroll channel loops in downsampler Sean Barrett 2014-09-13 06:23:07 -0700
  • 3ee97c221f compile as C Sean Barrett 2014-09-13 06:12:40 -0700
  • 59898db411 tweak grammar Sean Barrett 2014-09-13 06:05:00 -0700
  • a2f1cadde8 convert tabs to spaces so it's consistent with other stb libs Sean Barrett 2014-09-13 06:03:48 -0700
  • 60064f9803 add stb_image_resize.h to readme Sean Barrett 2014-09-13 05:56:06 -0700
  • 0fa5b5c66f rename cubic to cubicbspline; tweak filter type documentation Sean Barrett 2014-09-13 05:52:19 -0700
  • 316beb987d Merge branch 'master' of https://github.com/kennethdmiller3/stb Ken Miller 2014-09-13 00:38:04 -0500
  • 29b36b3dea rename filters, document them Sean Barrett 2014-09-12 05:28:24 -0700
  • da2aa8f6b7 checkboard test to verify srgb Sean Barrett 2014-09-12 05:04:38 -0700
  • a9778b8dbd tweak docs; fix compile error in UNUSED_PARAM stuff Sean Barrett 2014-09-12 04:46:41 -0700
  • 99f3b78bbd Merge branch 'resample' of http://github.com/bsvino/stb into resample Sean Barrett 2014-09-12 03:54:17 -0700
  • df128b7995 update STBIR__UNUSED_PARAM to match stb_image.h version Sean Barrett 2014-09-12 03:53:36 -0700
  • ca88b6fba6 Calculate and store vertical contributors first so that they can be normalized and optimized. Jorge Rodriguez 2014-09-11 12:45:18 -0700
  • a25c1d2bbd Merge remote-tracking branch 'remotes/nothings/resample' into resample Jorge Rodriguez 2014-09-11 10:00:57 -0700
  • 36b417f6b4 Optimizations: Skip zero-coefficient contributions. Reduce the size of the coefficients array when downsampling. Jorge Rodriguez 2014-09-11 09:39:03 -0700
  • 27f26f8337 Documentation; rename STBIR_FLAG_PREMULTIPLED_ALPHA to STBIR_FLAG_ALPHA_PREMULTIPLIED so that both flags have "ALPHA" first Sean Barrett 2014-09-11 03:02:20 -0700
  • 7a4f1f4665 update with new tests for srgb conversion Sean Barrett 2014-09-11 02:10:37 -0700
  • 16d68d14f8 fix stbir__linear_to_srgb_uchar: 1. table stored threshhold of transition from i to i+1, but wants to be i-1 to i 2. table was computed by dividing uchar by 256.0 instead of 255.0, causing it to be 100% wrong Sean Barrett 2014-09-11 02:05:53 -0700
  • 30c7a981ec compile as C; fix some unsigned/signed comparisons; avoid round() since it's not in pre-C99 C; remove MAX_CHANNELS since I never ended up needing it; rename STBIR_EPSILON to STBIR_ALPHA_EPSILON; don't use STBIR_ALPHA_EPSILON on float input (can't remove it properly due to numeric precision, and they can do it themselves); optimize subtraction of STBIR_ALPHA_EPSILON; sorry i forgot to commit these separately!; Sean Barrett 2014-09-11 01:47:50 -0700
  • 1208730e1e Merge branch 'resample' of http://github.com/bsvino/stb into resample Sean Barrett 2014-09-11 01:15:09 -0700
  • 793818d1af Skip zero-coefficient contributors, a fairly decent speedup. Jorge Rodriguez 2014-09-10 20:26:14 -0700
  • 46dc8f84fb Use vertical pixel width for the ring buffer. Jorge Rodriguez 2014-09-10 20:12:38 -0700
  • 953a637841 Use a carefully shaped trapezoid instead of a box filter to avoid jumps between pixel values. Jorge Rodriguez 2014-09-10 19:08:11 -0700
  • 671f04bd7e debugging truetype crash Sean Barrett 2014-09-10 15:35:06 -0700
  • 4e580cf9ed fix compile Sean Barrett 2014-09-10 15:11:35 -0700
  • 6922628106 Use an even smaller epsilon. Allow the user to avoid the epsilon business if they want to preserve their alpha values. Jorge Rodriguez 2014-09-10 15:03:55 -0700
  • 057f29f813 update version number nothings 2014-09-10 11:03:49 -0700
  • 87b7e3db41 update version number nothings 2014-09-10 11:03:26 -0700
  • 5db8a8bc36 Merge pull request #42 from rygorous/master nothings 2014-09-10 11:02:04 -0700
  • 40cc1c59b2 Add support for alternative keyboard shortcuts for text/line start/end. Fabian Giesen 2014-09-10 10:54:22 -0700
  • 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