Commit Graph

  • 422e29017c stb_vorbis: fix signed/unsigned comparison Ronny Chevalier 2014-07-17 14:43:29 +0200
  • 893ef013b2 stb_image: fix undefined preprocessor definition Ronny Chevalier 2014-07-17 14:43:08 +0200
  • c28e92e856 stb_vorbis: use const char* when appropriate Ronny Chevalier 2014-08-03 23:43:54 +0200
  • e05ebdbf1e My guess is people who care about premultiply also care about color space. Jorge Rodriguez 2014-07-31 19:37:42 -0700
  • d75488b0e8 Do the multiply inline, it should be a tad faster and not corrupt our data. Jorge Rodriguez 2014-07-31 19:00:48 -0700
  • 13acfca829 I had the whole premultiply thing backwards. Jorge Rodriguez 2014-07-31 18:46:00 -0700
  • 21c7c8f5d9 Another stab at the api, offering classes of functions for different common tasks. Jorge Rodriguez 2014-07-31 18:04:57 -0700
  • 8063ea0952 Specify a channel as having premultiplied alpha and use it to un-premultiply all other channels before resampling. Jorge Rodriguez 2014-07-31 17:20:00 -0700
  • a32fa8b4df This to-do item done. Jorge Rodriguez 2014-07-31 16:36:09 -0700
  • daf325dc03 Sub pixel source area test cases. No problems. Jorge Rodriguez 2014-07-31 16:31:45 -0700
  • aae1c7ca41 ZOOM AND ENHANCE! Jorge Rodriguez 2014-07-31 15:16:36 -0700
  • 1b2d104e00 Some error conditions. Jorge Rodriguez 2014-07-31 00:52:03 -0700
  • 35cb95b803 Allow for specifying a sub-region of the source image to use. Downsampling only, currently. Jorge Rodriguez 2014-07-31 00:39:33 -0700
  • 52ac93225a C<99 ports Jorge Rodriguez 2014-07-30 17:33:47 -0700
  • fdc979e48b Some minor ports for Linux. No idea how it worked at all in Windows with STB_RESIZE_IMPLEMENTATION instead of STB_RESAMPLE_IMPLEMENTATION. Jorge Rodriguez 2014-07-30 17:30:25 -0700
  • c5de2f3298 Test channels. Jorge Rodriguez 2014-07-30 09:41:41 -0700
  • 985ac75251 When doing a perfect po2 nearest neighbor downsample don't allow -0.5 and 0.5 to both contribute to a texel or you'll get a double tap. Jorge Rodriguez 2014-07-30 09:27:42 -0700
  • c2449acc3e Tests for edge behavior Jorge Rodriguez 2014-07-30 09:14:38 -0700
  • 59cb71ea18 Fix float conversion. Jorge Rodriguez 2014-07-30 08:47:55 -0700
  • 6625259959 Try to keep integer precision by briefly casting to double while decoding and encoding. Jorge Rodriguez 2014-07-30 01:18:23 -0700
  • 11897fbf96 More fixing shorts. Jorge Rodriguez 2014-07-30 00:34:25 -0700
  • 1fcbe0daaf Fix shorts. Add test cases for shorts. Jorge Rodriguez 2014-07-30 00:16:13 -0700
  • 7ead9a748d Fix. Ring buffers are a height value. Jorge Rodriguez 2014-07-29 23:09:41 -0700
  • 043fa28c11 Same deal with height. Jorge Rodriguez 2014-07-29 23:02:56 -0700
  • ebe0473d8b Add a test suite to do a bunch of different resizes to find problems. One problem found was an incorrect calculation of texel support how many margin texels needed when downsampling. When downsampling we need to spread out the support of each contributing texel, so to compensate you need more margin texels. Jorge Rodriguez 2014-07-29 22:50:06 -0700
  • 68f93b72d5 Update documentation and add helper functions. Jorge Rodriguez 2014-07-29 20:18:28 -0700
  • 5b40906271 My perf testing code. Jorge Rodriguez 2014-07-29 17:44:45 -0700
  • d96c97298c This is still faster than the function pointer solution, and neater. Jorge Rodriguez 2014-07-29 16:22:22 -0700
  • 3a3e06029e This is definitely faster than the function pointer solution. Jorge Rodriguez 2014-07-29 12:11:03 -0700
  • 9bd5abb52d Both versions run within the margin of error on my machine so we'll go with the simpler one. Jorge Rodriguez 2014-07-29 11:44:32 -0700
  • 5dff80ed31 Trying some different strategies for optimizing the decoder. The code in #ifdef 1 is slightly faster by my measurements, but a whole lot uglier. Jorge Rodriguez 2014-07-29 11:39:42 -0700
  • 05f775e977 Merge branch 'master' of https://github.com/BSVino/stb Jorge Rodriguez 2014-07-29 00:33:54 -0700
  • 1fcf30ada0 Fix a math error. Jorge Rodriguez 2014-07-29 00:33:29 -0700
  • e2ac4f6505 More resample ideas Jorge Rodriguez 2014-07-27 12:05:17 -0700
  • ef3a460ec4 Some better looking horners save another multiplication. Jorge Rodriguez 2014-07-27 00:55:47 -0700
  • 7d47582578 Support for 16 and 32 bit integer images, and float images. Jorge Rodriguez 2014-07-27 00:09:22 -0700
  • 6c8cac0a66 Support for sRGB color space. Jorge Rodriguez 2014-07-26 23:44:45 -0700
  • 41dc4c476c In some situations with certain filter kernels with negative values it's possible to generate valid results > 1.0, so saturate it before we write it to make sure it doesn't overflow. Also fix incorrect filter radius while downsampling. Jorge Rodriguez 2014-07-26 22:49:56 -0700
  • af1ed58f51 Add wrap, fix reflect so it doesn't wrap. Jorge Rodriguez 2014-07-26 19:30:13 -0700
  • 8723567439 Add edge reflect mode. Jorge Rodriguez 2014-07-26 19:11:02 -0700
  • 6cd81d4dd5 Put the polynomials in horner form to save a multiplication. Jorge Rodriguez 2014-07-26 15:36:15 -0700
  • fb2f8df5cc Add mitchell filter. Jorge Rodriguez 2014-07-26 15:06:31 -0700
  • 69af963c42 Add catmull rom filter. Also, move the debug asserts for values <= 1 to the very end of the process. This will make these bugs a lot harder to find, but because some filter kernels have negative values it's possible for the buffers to have values > 1 up until the point where it's converted back to an int. Jorge Rodriguez 2014-07-26 14:52:28 -0700
  • 12acf87eec When downsampling start the buffer loop at -filter_texel_margin to make sure that all contributors get their taps in at the ring buffer. Jorge Rodriguez 2014-07-26 13:56:23 -0700
  • 155c71fb90 Reorder these loops because I think we get a cache win if we write the entire ring buffer entry at once. Jorge Rodriguez 2014-07-26 13:12:48 -0700
  • 01fb58d6b4 Add a bicubic filter. Jorge Rodriguez 2014-07-26 13:07:04 -0700
  • a95da9ee1d Unroll the multiply-add loops. At the cost of a function pointer dereference we get a whole lot of conditionals eliminated. Should be a solid win once the debug asserts are gone. Jorge Rodriguez 2014-07-26 12:04:39 -0700
  • 7abd4ccf34 Support for filters with larger support. Initial support for edge behavior. Jorge Rodriguez 2014-07-26 11:51:02 -0700
  • 62ff271c7a I put it in the to do list and now I can close my browser tab. Jorge Rodriguez 2014-07-25 00:08:23 -0700
  • 81c1ddf110 Keeping a list of suggestions so I don't forget them. Jorge Rodriguez 2014-07-25 00:00:40 -0700
  • 27926e78b8 Make consistent tests for whether we're doing upsampling or downsampling of width and height. Don't request memory for horizontal buffer or encode buffer if we don't need it. Jorge Rodriguez 2014-07-24 23:50:14 -0700
  • 666c025710 Fix non uniform scaling where out_w < in_w && out_h > in_h. Jorge Rodriguez 2014-07-24 23:32:25 -0700
  • 736596ba09 Fix non uniform scaling where out_w > in_w && out_h < in_h. Jorge Rodriguez 2014-07-24 23:27:29 -0700
  • 178e301ea4 Fix upsampling, avoid dereferencing in an inner loop. Jorge Rodriguez 2014-07-24 22:54:35 -0700
  • dbb7480f12 Fix nonuniform downsampling. Jorge Rodriguez 2014-07-24 22:30:35 -0700
  • fa69bc8551 Basic downsampling algorithm works for uniform sampling. Jorge Rodriguez 2014-07-24 22:09:08 -0700
  • 297266b27b Starting to implement downsampling. Jorge Rodriguez 2014-07-24 19:10:45 -0700
  • 7d8faf5727 Remove unused functions. Jorge Rodriguez 2014-07-24 15:02:54 -0700
  • 8ac052ac8a Avoid gaps between box filter kernels. Jorge Rodriguez 2014-07-24 15:02:39 -0700
  • 9e726bb3e4 The vertical resampling pass. Now all elements of the upscale algorithm are in place. Jorge Rodriguez 2014-07-24 14:20:18 -0700
  • 152965f334 Decode enough scanlines into a ring buffer to make sure that we have enough source scanlines to do a vertical sampling. Jorge Rodriguez 2014-07-24 00:47:00 -0700
  • 158effb62a More accurate names. Smaller size for contributors memory, more accurate to what's needed. Jorge Rodriguez 2014-07-23 23:08:06 -0700
  • 855fb207be Merge remote-tracking branch 'remotes/nothings/master' Jorge Rodriguez 2014-07-23 22:24:59 -0700
  • 55c5f0b3a0 Beginning of a more sophisticated resample algorithm, starting with calculating filter contributions per scan line. Jorge Rodriguez 2014-07-23 22:17:56 -0700
  • ee8e926317 even more resampling notes Sean Barrett 2014-07-22 12:45:24 -0700
  • 92b08aa98a more resampling notes Sean Barrett 2014-07-22 12:39:29 -0700
  • 6f779fb67a whoops imageresampler link Sean Barrett 2014-07-22 12:17:43 -0700
  • 9c9a68787d imageresampler library reference Sean Barrett 2014-07-22 12:16:11 -0700
  • 3e8a89cad1 more resampler notes Sean Barrett 2014-07-22 11:57:46 -0700
  • c27ccec436 resampler prototypes Sean Barrett 2014-07-22 11:37:54 -0700
  • 63cce5c70a created stb_resample_ideas.txt Sean Barrett 2014-07-22 10:05:01 -0700
  • 0155bd3ab6 We are going to support SRGB. Jorge Rodriguez 2014-07-21 19:51:11 -0700
  • ba861fa493 Allow specifying a stride. Jorge Rodriguez 2014-07-21 18:01:05 -0700
  • 06b7b00696 It does nothing now but I want to support edge behavior in the future. Jorge Rodriguez 2014-07-21 16:14:32 -0700
  • c27c5b6fbe There's really no point in returning the output buffer. Jorge Rodriguez 2014-07-21 15:36:43 -0700
  • d54e74092e stb_resample initial implementation Jorge Rodriguez 2014-07-21 00:16:03 -0700
  • bcefca10f7 fix bad fix in previous fix Sean Barrett 2014-07-15 22:26:01 -0700
  • 75b9e9cc1b update stb_image version number Sean Barrett 2014-07-09 23:45:58 -0700
  • b2cbed2634 Merge branch 'working' Sean Barrett 2014-07-09 23:44:48 -0700
  • 1eb665906e cdecl fixes Sean Barrett 2014-07-09 23:41:40 -0700
  • 68b5ec9392 fix cdecl Sean Barrett 2014-07-09 23:39:00 -0700
  • e0d86b0f5c STBI_ASSERT Sean Barrett 2014-07-09 23:35:25 -0700
  • 3bf91543f4 revert img_n=0 initialization to original location Sean Barrett 2014-07-09 23:26:03 -0700
  • a2b9aa8d06 modifiy jpeg img_n fix switch from fopen to fopen_s on later MSVCs Sean Barrett 2014-07-09 23:23:48 -0700
  • 70de0adb28 Merge branch 'master' of https://github.com/LysanderGG/stb into working Sean Barrett 2014-07-09 23:03:32 -0700
  • 932d485146 fix warnings in certain console compilers Sean Barrett 2014-07-09 23:01:29 -0700
  • efd6b2698f Fix crash when trying to load progressive jpeg due to uninitialized s->img_n Lysander 2014-07-09 22:41:22 +0900
  • 2da2806d20 update version numbers due to warnings/minor fixes Sean Barrett 2014-07-07 16:24:11 -0700
  • 0cc827fe2a Merge pull request #15 from nodj/master nothings 2014-07-07 16:20:34 -0700
  • a55eae20dc Merge pull request #17 from Gargaj/patch-1 nothings 2014-07-07 16:19:30 -0700
  • 72f06c2996 Explicit CDECL needed Gargaj 2014-07-07 23:58:50 +0200
  • e454b82a78 remove tabs Sean Barrett 2014-07-07 07:46:39 -0700
  • 1dcaa6059e add stb_herringbone_wang_tile Sean Barrett 2014-07-07 07:41:07 -0700
  • 055137e3fa more useful URL Sean Barrett 2014-07-07 07:39:52 -0700
  • e8dbc6d9db documentation & license Sean Barrett 2014-07-07 07:34:37 -0700
  • 6918b443e2 stb_herringbone_wang_tile sample data Sean Barrett 2014-07-07 07:13:45 -0700
  • 816f31e9bc fixes and tests Sean Barrett 2014-07-07 04:54:52 -0700
  • 4b590c0a62 first pass at stb-izing complete, now need to debug Sean Barrett 2014-07-04 09:34:57 -0700
  • 88c99e47fb initial commit Sean Barrett 2014-07-04 08:06:36 -0700
  • 8c83fc2bad Added STBTT_PLATFORM_ID_UNICODE HouQiming 2014-07-02 18:58:52 +0800