diff options
author | wm4 <wm4@nowhere> | 2016-06-17 21:54:12 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-17 23:14:26 +0200 |
commit | 56058a95e55c200828525f555baf47f91d81ccdd (patch) | |
tree | eb0687fe7c568bbf7bc6c96878e6c88aba8e72c5 /mpv_talloc.h | |
parent | f72eb5b394c5145c1f5ae2546f8c628550e928e4 (diff) |
sub: fix --sub-gauss
Implement it directly in sd_lavc.c as well. Blurring requires extending
the size of the sub-images by the blur radius. Since we now want
sub_bitmaps to be packed into a single image, and we don't want to
repack for blurring, we add some extra padding to each sub-bitmap in the
initial packing, and then extend their size later. This relies on the
previous bitmap_packer commit, which always adds the padding in all
cases.
Since blurring is now done on parts of a large bitmap, the data pointers
can become unaligned, depending on their position. To avoid shitty
libswscale printing a dumb warning, allocate an extra image, so that the
blurring pass is done on two newly allocated images. (I don't find this
feature important enough to waste more time on it.)
The previous refactor accidentally broke this feature due to a logic bug
in osd.c. It didn't matter before it happened to break, and doesn't
matter now since the code paths are different.
Diffstat (limited to 'mpv_talloc.h')
0 files changed, 0 insertions, 0 deletions