path: root/sub/img_convert.c
diff options
authorwm4 <wm4@nowhere>2016-06-17 19:58:16 +0200
committerwm4 <wm4@nowhere>2016-06-17 23:12:43 +0200
commit454fff39ad2fbcdc0e26ae556996ca4e96eb4288 (patch)
treec97fa47735597538343e0be839639f2ef4792095 /sub/img_convert.c
parent8986b37fe7261a2d99b8c27aeda3351f66e1b972 (diff)
bitmap_packer: make manual use slightly more convenient
Apply the padding internally to each input bitmap, instead of requiring this for the semi-public API. Right now, everything still uses packer_pack_from_subbitmaps() to fill the input bitmap sizes, but that's going to change with the following commit. Since is mutated during packing anyway, it's more convenient to add the padding automatically. Also, guarantee that every sub-bitmap has a padding border around it. Don't let the padding overlap. Add padding even on the containing borders. This is simpler, doesn't cost much in memory usage, and is convenient for one of the following commits.
Diffstat (limited to 'sub/img_convert.c')
0 files changed, 0 insertions, 0 deletions