0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/demux
Dudemanguy fa89082f2e sub: avoid unneeded calls to is_animated
4e5d996c3a added this as part of a series
of patches written to avoid wasteful sub redraws when playing a still
image with subs. The is_animated special case was specifically for ASS
subtitles that have animations/effects and would need repeated redraws
in the still image case. This check was done unconditionally for all ASS
subtitles, but for very big ASS subtitles, this text parsing can get a
bit expensive.

Because this function call is only ever needed for the weird edge case
of ASS subtitles over a still image, some additional logic can be added
to avoid calling is_animated in the vast majority of cases. The animated
field in demux_packet can be changed to a tristate instead where -1
indicates "unknown" (the default state). In update_subtitle, we can look
at the current state of the video tracks and decide whether or not it is
neccesary to perform is_animated and pass that knowledge to sd_ass
before any subtitle packets are decoded and thus save us from doing this
potentially expensive call.
2024-06-04 12:29:13 +00:00
..
cache.c various: move unistd.h inclusion to common.h 2024-05-06 22:01:17 +02:00
cache.h demux: add a on-disk cache 2019-09-19 20:37:05 +02:00
codec_tags.c various: replace dead links in comments 2024-02-11 04:01:24 +00:00
codec_tags.h Revert "demux: put type2format into codec_tags with helper functions" 2024-02-06 18:08:53 +01:00
cue.c cue: tolerate NBSP as whitespace 2020-02-03 19:13:44 +01:00
cue.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
demux_cue.c osdep/dirent: add implementation for Windows SDK build 2024-05-06 22:01:17 +02:00
demux_disc.c csputils: replace more primitives with pl_ 2024-01-22 14:54:55 +00:00
demux_edl.c demux_edl: make protocol comparison case insensitive 2024-05-08 18:52:40 +02:00
demux_lavf.c command: add dolby-vision-profile and dolby-vision-level to track-list 2024-05-10 01:26:30 +02:00
demux_libarchive.c player: change insert_next to insert_at 2024-02-26 02:03:21 +00:00
demux_mf.c various: add missing checks for directory streams 2024-05-15 22:45:18 +02:00
demux_mkv_timeline.c osdep/dirent: add implementation for Windows SDK build 2024-05-06 22:01:17 +02:00
demux_mkv.c command: add dolby-vision-profile and dolby-vision-level to track-list 2024-05-10 01:26:30 +02:00
demux_null.c demux_null: mark as seekable 2018-01-06 14:42:22 -08:00
demux_playlist.c osdep/dirent: add implementation for Windows SDK build 2024-05-06 22:01:17 +02:00
demux_raw.c various: move unistd.h inclusion to common.h 2024-05-06 22:01:17 +02:00
demux_timeline.c Revert "demux: improve stream selection state" 2023-09-30 09:02:57 -05:00
demux.c various: move unistd.h inclusion to common.h 2024-05-06 22:01:17 +02:00
demux.h demux: keep track of ts information per stream type 2024-05-05 14:11:47 +02:00
ebml.c build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
ebml.h demux/packet: add support for ITU T.35 metadata in Matroska 2024-04-29 01:37:02 +02:00
matroska.h ebml, matroska.h: change license to LGPL 2017-04-21 13:34:10 +02:00
packet.c sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
packet.h sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
stheader.h command: add dolby-vision-profile and dolby-vision-level to track-list 2024-05-10 01:26:30 +02:00
timeline.c stream, demux: redo origin policy thing 2019-12-20 13:00:39 +01:00
timeline.h various: add missing include in header flles 2023-09-21 14:40:11 +00:00