1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00
mpv/sub
wm4 ab94c64ed2 mp_image: simplify image allocation
mp_image_alloc_planes() allocated images with minimal stride, even if
the resulting stride was unaligned. It was the responsibility of
vf_get_image() to set an image's width to something larger than
required to get an aligned stride, and then crop it. Always allocate
with aligned strides instead.

Get rid of IMGFMT_IF09 special handling. This format is not used
anymore. (IF09 has 4x4 chroma sub-sampling, and that is what it was
mainly used for - this is still supported.) Get rid of swapped chroma
plane allocation. This is not used anywhere, and VOs like vo_xv,
vo_direct3d and vo_sdl do their own swapping.

Always round chroma width/height up instead of down. Consider 4:2:0 and
an uneven image size. For luma, the size was left uneven, and the chroma
size was rounded down. This doesn't make sense, because chroma would be
missing for the bottom/right border.

Remove mp_image_new_empty() and mp_image_alloc_planes(), they were not
used anymore, except in draw_bmp.c. (It's still allowed to setup
mp_images manually, you just can't allocate image data with them
anymore - this is also done in draw_bmp.c.)
2013-01-13 20:04:10 +01:00
..
ass_mp.c sub: add --sub-text-* options to unstyled text subtitles font 2013-01-05 14:11:56 +01:00
ass_mp.h cleanup: ass_mp.h: remove dummy declarations 2013-01-06 16:22:50 +01:00
dec_sub.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
dec_sub.h VO, sub: refactor 2012-10-24 21:56:34 +02:00
draw_bmp.c mp_image: simplify image allocation 2013-01-13 20:04:10 +01:00
draw_bmp.h vo_xv: don't require frame stepping to remove OSD or subs 2012-11-21 19:56:59 +01:00
find_sub.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
find_subfiles.c path: add mp_find_config_file and reorganize some of the code 2012-12-15 17:38:00 +01:00
find_subfiles.h sub: remove vobsub reader in favor of ffmpeg vobsub demuxer 2012-12-11 00:37:54 +01:00
img_convert.c sub: add ASS to RGBA conversion 2012-12-28 08:30:15 +01:00
img_convert.h sub: add ASS to RGBA conversion 2012-12-28 08:30:15 +01: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: add --sub-text-* options to unstyled text subtitles font 2013-01-05 14:11:56 +01:00
sd_ass.c sd_ass: free external subtitle tracks 2012-12-14 19:59:30 +01:00
sd_lavc.c sd_lavc: keep subs on subtitle track switching 2012-12-12 22:56:41 +01:00
sd.h VO, sub: refactor 2012-10-24 21:56:34 +02:00
spudec.c sub: remove vobsub reader in favor of ffmpeg vobsub demuxer 2012-12-11 00:37:54 +01:00
spudec.h options: remove --ffactor switch 2012-10-24 21:56:35 +02:00
sub.c sub: add ASS to RGBA conversion 2012-12-28 08:30:15 +01:00
sub.h sub: add ASS to RGBA conversion 2012-12-28 08:30:15 +01:00
subassconvert.c subassconverter: correctly handle RRGGBB and unknow formats 2012-11-25 23:47:57 +01:00
subassconvert.h subtitles: style support for common SubRip tags and MicroDVD 2011-01-18 15:17:28 +02:00
subreader.c configure: remove --disable-sortsub 2012-12-11 00:37:54 +01:00
subreader.h subreader: replace sub_free() by talloc destructor 2012-11-16 21:21:15 +01:00