diff options
author | wm4 <wm4@nowhere> | 2016-06-17 23:11:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-17 23:15:50 +0200 |
commit | 8e6704acdbe020aacc71dbe15981651d6bcca25e (patch) | |
tree | 3753cae43c0ed60f60cf2e36c65acb637cb95afc /sub/draw_bmp.h | |
parent | 28c7dec157d8d1d7f2945fa3bf9c0b1457faec4d (diff) | |
download | mpv-8e6704acdbe020aacc71dbe15981651d6bcca25e.tar.bz2 mpv-8e6704acdbe020aacc71dbe15981651d6bcca25e.tar.xz |
sub, vo_opengl: use packed sub-bitmaps directly if available
The previous few commits changed sd_lavc.c's output to packed RGB sub-
images. In particular, this means all sub-bitmaps are part of a larger,
single bitmap. Change the vo_opengl OSD code such that it can make use
of this, and upload the pre-packed image, instead of packing and copying
them again.
This complicates the upload code a bit (4 code paths due to messy PBO
handling). The plan is to make sub-bitmaps always packed, but some more
work is required to reach this point. The plan is to pack libass images
as well. Since this implies a copy, this will make it easy to refcount
the result.
(This is all targeted towards vo_opengl. Other VOs, vo_xv, vo_x11, and
vo_wayland in particular, will become less efficient. Although at least
vo_vdpau and vo_direct3d could be switched to the new method as well.)
Diffstat (limited to 'sub/draw_bmp.h')
0 files changed, 0 insertions, 0 deletions