Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
avcodec: add minimal teletext subtitle decoder
Based largely on VLC's modules/codec/telx.c. Processes only teletext pages marked as subtitles, so depending on the stream it might not produce any output. Subtitles are rendered directly to ASS, with support for background colors and a best-effort at screen positioning. The ASS packets are emitted in real time (similar to ccaption_dec's real_time option), with -1 durations. The decoder expects that the player will remove all existing subtitles whenever a new packet arrives. The teletext clear command is implemented using an empty subtitle, which removes existing subtitles but does not render anything new.
- Loading branch information
Showing
with
524 additions
and 0 deletions.
- +1 −0 libavcodec/Makefile
- +1 −0 libavcodec/allcodecs.c
- +522 −0 libavcodec/teletextsubdec.c
Oops, something went wrong.