mpv/sub
wm4 f6197249a7 spudec: use csputils for color conversion
Just to get rid of that conversion copy&pasted from the internet.

R and G are swapped for unknown reasons. Testing various subtitles
seem to yield the same results as VLC. The sub-bitmap renderers output
the correct colors. The colorspace conversion is used without problems
for vo_gl, vo_gl3 and vo_vdpau. The problem is most likely that
apparently, the DVD palette read from the subtitle track extradata is
converted to YUV using vobsub_palette_to_yuv(), and swapped in the
process. Or in other words, the YUV colors spu->global_palette are
encoded with R and G swapped.

Add some utility definition to csputils.c/h to make converting single
color values easier.
2012-10-24 21:56:33 +02:00
..
ass_mp.c Merge branch 'master' into osd_changes 2012-10-16 07:30:30 +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
draw_bmp.c draw_bmp: compensate for libswscale writing past image bounds 2012-10-24 21:56:33 +02:00
draw_bmp.h sub: add helper to draw sub-bitmaps into an image 2012-10-24 21:56:29 +02:00
find_sub.c
find_subfiles.c sub: silence output of subtitle search message 2012-07-30 01:45:07 +02:00
find_subfiles.h
img_convert.c Remove things related to old OSD 2012-10-24 21:56:33 +02:00
img_convert.h Remove things related to old OSD 2012-10-24 21:56:33 +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 Merge branch 'master' into osd_changes 2012-10-16 07:30:30 +02:00
sd.h sub: cleanup: don't pass parameters via global variables 2012-10-16 07:26:32 +02:00
sd_ass.c Merge branch 'master' into osd_changes 2012-10-16 07:30:30 +02:00
sd_lavc.c sub: fix and simplify some change detection details 2012-10-16 07:26:45 +02:00
spudec.c spudec: use csputils for color conversion 2012-10-24 21:56:33 +02:00
spudec.h Remove things related to old OSD 2012-10-24 21:56:33 +02:00
sub.c Remove things related to old OSD 2012-10-24 21:56:33 +02:00
sub.h Remove things related to old OSD 2012-10-24 21:56:33 +02:00
subassconvert.c subassconvert: order colour names alphabetically / better match W3 list 2012-08-03 03:47:09 +02:00
subassconvert.h
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