Commit Graph
45 Commits
Author SHA1 Message Date
Nigel Tao 38827d87f3 Have restart_frame require decode_image_config 2020-12-19 22:45:41 +11:00
Nigel Tao 68fb70f9d5 Harmonize image decoders' call_sequence states 2020-12-19 22:42:49 +11:00
Nigel Tao 9399c82409 Have non-animated image decoders give EOD earlier 2020-12-19 22:03:22 +11:00
Nigel Tao 688de33f2a Have std/bmp skip_frame handle RLE compression 2020-12-15 16:19:18 +11:00
Nigel Tao 290adc9069 Have std/bmp consume the final per-row padding 2020-12-15 11:43:04 +11:00
Nigel Tao 59799ddcc5 Remove std/bmp redundant dst_y_end field 2020-12-14 23:17:31 +11:00
Nigel Tao 47b114e948 Have std/bmp reject RLE EOL if y out of bounds 2020-12-14 23:12:27 +11:00
Nigel Tao 1878dc9037 Have std/bmp detect bad RLE compression 2020-12-14 09:49:16 +11:00
Nigel Tao f880d644fa Have std/bmp decode OS/2 BMP files 2020-12-14 09:24:40 +11:00
Nigel Tao 7c2f36509b Have std/bmp decode 1, 2 or 4 bits per pixel 2020-12-13 22:37:40 +11:00
Nigel Tao 8a12a64754 Add limited_swizzle_u32_interleaved_from_reader 2020-12-12 00:28:16 +11:00
Nigel Tao 977ed8f0d9 Have std/bmp decode COMPRESSION_RLE8 2020-12-11 10:24:25 +11:00
Nigel Tao 49b5b3c03c Remove redundant loop condition in std/bmp 2020-12-05 23:11:41 +11:00
Nigel Tao f67d83cc07 Add std/bmp COMPRESSION_ETC constants 2020-12-05 22:49:28 +11:00
Nigel Tao 6695e4aae8 Fix std/bmp checking bits_per_pixel too early 2020-12-04 23:23:12 +11:00
Nigel Tao 8482161c91 Add base.pixel_buffer.palette_or_else 2020-12-02 22:13:35 +11:00
Nigel Tao 2cf0252453 Have std/bmp decode 8-bit paletted images 2020-11-26 14:34:32 +11:00
Nigel Tao 960b5df3c4 Have std/bmp decode BITFIELDS compression 2020-11-24 09:00:32 +11:00
Nigel Tao cda0db2f0c Rename std/bmp mask_x fields 2020-11-23 22:40:11 +11:00
Nigel Tao 3811a2b839 Have std/bmp decode BGRX 2020-11-18 23:44:04 +11:00
Nigel Tao be8542e313 Rename I/O available methods to length 2020-08-13 23:26:08 +10:00
Nigel Tao 7e32336de0 Add base.PIXEL_FORMAT__ETC constants 2020-06-09 12:34:34 +10:00
Nigel Tao 71528b33dd Rename frame_config.update to frame_config.set 2020-06-03 11:34:57 +10:00
Nigel Tao 8b21a7600a Add swizzle_interleaved_from_reader 2020-06-02 23:04:22 +10:00
Nigel Tao 54196c4e80 Rename pixel_swizzler.swizzle_interleaved 2020-05-29 16:54:05 +10:00
Nigel Tao 6537a817b7 Roll back the two previous "@I/O redirect" commits
See the previous commit for the rationale.
2020-05-29 11:27:51 +10:00
Nigel Tao 844fc9b5ee Temporarily avoid using base."@I/O redirect"
This commit (and the next) will soon be followed by a rollback.
2020-05-29 09:53:30 +10:00
Nigel Tao 8b70ad0565 Rename skip32 to skip_u32 2020-05-27 23:29:20 +10:00
Nigel Tao dcb81a85bb Prepare to decode BMP embedding a JPEG or PNG 2020-05-27 13:37:54 +10:00
Nigel Tao 1239280ad8 Roll back 'dst_palette into the pixel_swizzler'
See the previous commit for the rationale.
2020-05-26 14:13:28 +10:00
Nigel Tao 2d8ec9ace9 Roll dst_palette into the pixel_swizzler struct
This commit will soon be followed by a rollback, but it is committed
anyway so that we can refer to these numbers in the git log.

name                                        old speed      new speed      delta

wuffs_gif_decode_1k_bw/clang5                286MB/s ± 1%   251MB/s ± 0%  -12.11%  (p=0.000 n=10+9)
wuffs_gif_decode_1k_color_full_init/clang5  96.0MB/s ± 0%  88.9MB/s ± 0%   -7.35%  (p=0.000 n=10+10)
wuffs_gif_decode_1k_color_part_init/clang5   119MB/s ± 0%   108MB/s ± 0%   -9.06%  (p=0.000 n=10+8)
wuffs_gif_decode_10k_bgra/clang5             469MB/s ± 1%   438MB/s ± 0%   -6.50%  (p=0.000 n=10+8)
wuffs_gif_decode_10k_indexed/clang5          125MB/s ± 1%   117MB/s ± 1%   -6.78%  (p=0.000 n=9+9)
wuffs_gif_decode_20k/clang5                  153MB/s ± 0%   139MB/s ± 0%   -9.40%  (p=0.000 n=9+9)
wuffs_gif_decode_100k_artificial/clang5      324MB/s ± 0%   304MB/s ± 0%   -6.22%  (p=0.000 n=10+9)
wuffs_gif_decode_100k_realistic/clang5       139MB/s ± 1%   125MB/s ± 1%   -9.69%  (p=0.000 n=9+10)
wuffs_gif_decode_1000k_full_init/clang5      141MB/s ± 0%   126MB/s ± 0%  -10.40%  (p=0.000 n=10+10)
wuffs_gif_decode_1000k_part_init/clang5      141MB/s ± 1%   126MB/s ± 0%  -10.50%  (p=0.000 n=10+8)
wuffs_gif_decode_anim_screencap/clang5       655MB/s ± 0%   617MB/s ± 1%   -5.91%  (p=0.000 n=9+9)

wuffs_gif_decode_1k_bw/gcc7                  299MB/s ± 0%   295MB/s ± 0%   -1.18%  (p=0.000 n=10+8)
wuffs_gif_decode_1k_color_full_init/gcc7    85.2MB/s ± 1%  88.2MB/s ± 0%   +3.58%  (p=0.000 n=10+10)
wuffs_gif_decode_1k_color_part_init/gcc7     104MB/s ± 0%   103MB/s ± 0%   -0.39%  (p=0.001 n=9+10)
wuffs_gif_decode_10k_bgra/gcc7               349MB/s ± 2%   352MB/s ± 0%   +0.77%  (p=0.000 n=9+10)
wuffs_gif_decode_10k_indexed/gcc7            106MB/s ± 0%   106MB/s ± 2%     ~     (p=0.762 n=8+10)
wuffs_gif_decode_20k/gcc7                    133MB/s ± 0%   133MB/s ± 0%     ~     (p=0.258 n=9+9)
wuffs_gif_decode_100k_artificial/gcc7        302MB/s ± 0%   301MB/s ± 1%   -0.41%  (p=0.035 n=10+10)
wuffs_gif_decode_100k_realistic/gcc7         118MB/s ± 1%   118MB/s ± 1%     ~     (p=0.095 n=9+10)
wuffs_gif_decode_1000k_full_init/gcc7        120MB/s ± 1%   119MB/s ± 0%   -0.34%  (p=0.007 n=10+10)
wuffs_gif_decode_1000k_part_init/gcc7        119MB/s ± 1%   119MB/s ± 1%     ~     (p=0.138 n=10+10)
wuffs_gif_decode_anim_screencap/gcc7         640MB/s ± 0%   640MB/s ± 0%     ~     (p=0.905 n=9+10)
2020-05-26 14:07:30 +10:00
Nigel Tao 9a1b8def46 Tweak pixel_format bits 2020-05-16 10:12:16 +10:00
Nigel Tao ad1cff3921 Add tell_me_more? mechanism 2020-05-12 11:12:39 +10:00
Nigel Tao 532e18c4a5 Add colons to const syntax 2020-04-14 14:57:30 +10:00
Nigel Tao 74871344f0 Capitalize Wuffs const names 2020-04-13 15:52:36 +10:00
Nigel Tao 4bc42db1d3 Add set_quirk_enabled interface methods 2020-04-12 20:53:54 +10:00
Nigel Tao 58351d44da Make endwhile mandatory for nameless loops 2020-03-25 21:40:00 +11:00
Nigel Tao 9e50918718 Add single-quoted strings 2020-03-25 19:41:02 +11:00
Nigel Tao f6f2ac4206 Have std/bmp support 32 bits per pixel color 2020-02-09 16:11:54 +11:00
Nigel Tao 05b790d088 Refine pixel_format.bits_per_pixel return type 2020-02-08 18:27:38 +11:00
Nigel Tao b40671ec84 Have wuffsfmt put underscores in long numbers 2020-02-08 18:21:29 +11:00
Nigel Tao e6cc2fe8f0 Implement bmp.decoder.decode_frame 2020-02-07 16:27:04 +11:00
Nigel Tao 8378d9f3b4 Implement bmp.decoder.skip_frame 2020-02-06 13:45:41 +11:00
Nigel Tao f69f849f11 Implement bmp.decoder.decode_image_config 2020-02-06 13:11:23 +11:00
Nigel Tao 0853a716bb Add std/bmp 2020-02-06 12:16:12 +11:00