0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/sub
wm4 84c3480686 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.
2012-10-16 07:26:32 +02:00
..
ass_mp.c sub: remove logic for disabling hinting on scaled EOSD 2012-10-16 07:26:31 +02:00
ass_mp.h sub: remove logic for disabling hinting on scaled EOSD 2012-10-16 07:26:31 +02:00
dec_sub.c sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
dec_sub.h sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
find_sub.c sub/OSD: move some related files to sub/ 2011-01-26 20:39:05 +02:00
find_subfiles.c sub: silence output of subtitle search message 2012-07-30 01:45:07 +02:00
find_subfiles.h subs: options: add -sub-paths 2011-04-20 04:22:52 +03:00
img_convert.c sub: switch to premultiplied alpha 2012-10-16 07:26:32 +02:00
img_convert.h sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
osd_dummy.c sub: allow rendering OSD in ASS image format directly, simplify 2012-10-16 07:26:30 +02:00
osd_font.pfb osd: osd_font.h -> osd_font.pfb 2012-07-28 23:36:08 +02:00
osd_libass.c sub: cosmetics: move things around 2012-10-16 07:26:32 +02:00
sd_ass.c sub: cosmetics: move things around 2012-10-16 07:26:32 +02:00
sd_lavc.c sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
sd.h sub: cleanup: don't pass parameters via global variables 2012-10-16 07:26:32 +02:00
spudec.c spudec.c: crop subs, set scaled flag 2012-10-16 07:26:32 +02:00
spudec.h sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
sub.c sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
sub.h sub: switch to premultiplied alpha 2012-10-16 07:26:32 +02:00
subassconvert.c subassconvert: order colour names alphabetically / better match W3 list 2012-08-03 03:47:09 +02:00
subassconvert.h subtitles: style support for common SubRip tags and MicroDVD 2011-01-18 15:17:28 +02:00
subreader.c sub: simplify code by always defining sub_cp 2012-08-03 06:53:10 +02:00
subreader.h Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.c Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.h Remove dead code 2012-08-01 17:07:35 +02:00