diff options
author | wm4 <wm4@nowhere> | 2016-06-17 19:58:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-17 23:12:43 +0200 |
commit | 454fff39ad2fbcdc0e26ae556996ca4e96eb4288 (patch) | |
tree | c97fa47735597538343e0be839639f2ef4792095 /sub | |
parent | 8986b37fe7261a2d99b8c27aeda3351f66e1b972 (diff) | |
download | mpv-454fff39ad2fbcdc0e26ae556996ca4e96eb4288.tar.bz2 mpv-454fff39ad2fbcdc0e26ae556996ca4e96eb4288.tar.xz |
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 bitmap_packer.in 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')
0 files changed, 0 insertions, 0 deletions