summaryrefslogtreecommitdiffstats
path: root/m_config.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-08 02:05:59 +0200
committerwm4 <wm4@nowhere>2012-10-16 07:26:32 +0200
commit84c34806864d0e44855d87e9fb47c70297f260ef (patch)
treea10ec3d8031b83b313755f39e602a293a9d50629 /m_config.h
parent44c62a685222f2b018a480246c2946d3e3e7529c (diff)
downloadmpv-84c34806864d0e44855d87e9fb47c70297f260ef.tar.bz2
mpv-84c34806864d0e44855d87e9fb47c70297f260ef.tar.xz
spudec.c: crop subs, set scaled flag
Crop subtitle images produced by spudec.c: instead of returning a frame- sized bitmap (with possibly large transparent regions), return a cropped down rectangle of the visible part only. The old spudec scaler code had this as spudec_cut_image(), but it worked on the data converted to the old OSD format only. Move most code to setup the sub-bitmap from spudec_get_indexed() to spudec_process_data(), so that cropping can be done every time a new subtitle is decoded, instead of every frame. Set the sub_bitmaps->scaled flag. Without it, vo_gl and vo_vdpau produced ugly artifacts on the borders.
Diffstat (limited to 'm_config.h')
0 files changed, 0 insertions, 0 deletions