diff options
author | wm4 <wm4@nowhere> | 2012-10-08 02:05:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-16 07:26:32 +0200 |
commit | 84c34806864d0e44855d87e9fb47c70297f260ef (patch) | |
tree | a10ec3d8031b83b313755f39e602a293a9d50629 /sub/subassconvert.c | |
parent | 44c62a685222f2b018a480246c2946d3e3e7529c (diff) | |
download | mpv-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 'sub/subassconvert.c')
0 files changed, 0 insertions, 0 deletions