summaryrefslogtreecommitdiff
path: root/test/burnt_subtitle_test.cc
AgeCommit message (Collapse)Author
2025-05-19Remove Ubuntu 22.04 test reference hacks.Carl Hetherington
Before the previous commit Ubuntu 22.04 would give slightly different results to 24.04 when burning subtitles. I think this was because DoM was erroneously using the system copy of Liberation Sans, which I presume was changed. After the previous commit we are always using the in-tree Liberation Sans, which means that we can update the test references for Ubuntu 24.04 and use them also for 22.04.
2024-07-14Fix tests on Ubuntu 24.04.Carl Hetherington
2024-05-30Render subtitles using show_in_cairo_context() instead of ↵Carl Hetherington
add_to_cairo_context(). This helps with #2813 and should fix #2474. We started using add_to_cairo_context() again in 72c3a5f0f32f553a1f8abee2494f31d29b976383 because the rendering looked better. However colour changes within lines cannot easily be rendered using add_to_cairo_context() it seems, as the text is just added as a path and then you can stroke/fill it with a single colour. I hope that this change, which reverts 72c3a5 but also adds some calls to enable hinting and use better anti-aliasing, looks OK. I looked at some white-on-black subs close-up and the hinting seems to help.
2024-05-22Rename new_test_film2 -> new_test_film.Carl Hetherington
2024-05-21Replace all new_test_film with new_test_film2.Carl Hetherington
2024-04-22Support encoding of MPEG2 DCPs.Carl Hetherington
2024-04-21Rename Encoder -> FilmEncoder, and subclasses.Carl Hetherington
2024-04-21Rename classes to follow preparatory renames in libdcp.Carl Hetherington
2024-02-03Don't emit subtitle images that have a zero dimension (#2743).Carl Hetherington
They cause problems later when trying to blend them into the image.
2023-09-01Missing #ifdef for Windows references.Carl Hetherington
2023-08-29Fix vertical alignment of subtitles in some cases (#2569).Carl Hetherington
2023-08-29Restore burnt subtitle tests.Carl Hetherington
2022-12-29Cleanup: test tidying.Carl Hetherington
2022-07-11Use a vector rather than a list when returning from content_factory().Carl Hetherington
2021-02-26More verification of DCPs during tests.Carl Hetherington
2021-02-23Verify a whole bunch of DCPs made by unit tests.Carl Hetherington
2021-02-07More libdcp include fixes.Carl Hetherington
2021-01-22c++11 tidying.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-11-20Some tidying up of test Doxygen.Carl Hetherington
2019-05-10Put Time types in dcpomatic namespace.Carl Hetherington
2019-01-21Stop jobs silently failing in tests.Carl Hetherington
2018-07-23More automated renaming.Carl Hetherington
ActiveCaptions -> ActiveText BitmapCaption -> BitmapText ContentCaption -> ContentText ContentTextCaption -> ContentStringText TextCaptionFileContent -> StringTextFileContent TextCaptionFileDecoder -> StringTextFileDecoder TextCaptionFile -> StringTextFile TextCaption -> StringText PlayerCaption -> PlayerText CaptionContent -> TextContent CaptionDecoder -> TextDecoder CaptionPanel -> TextPanel CaptionView -> TextView CaptionAppearanceDialog -> SubtitleAppearanceDialog CaptionType -> TextType
2018-07-19Reword again: Text -> Caption and Plain -> Text.Carl Hetherington
sed -i "s/ActiveText/ActiveCaptions/g" src/lib/*.{cc,h} sed -i "s/active_text.h/active_captions.h/g" src/lib/*.{cc,h} sed -i "s/active_text.cc/active_captions.cc/g" src/lib/wscript mv src/lib/active_text.cc src/lib/active_captions.cc mv src/lib/active_text.h src/lib/active_captions.h sed -i "s/PlainTextFileContent/TextCaptionFileContent/g" src/lib/*.{cc,h} src/wx/*.cc sed -i "s/PlainTextFile/TextCaptionFile/g" src/lib/*.{cc,h} src/wx/*.cc sed -i "s/plain_text_file_content/text_caption_file_content/g" src/lib/*.{cc,h} src/lib/wscript src/wx/*.{cc,h} test/*.cc mv src/lib/plain_text_file_content.cc src/lib/text_caption_file_content.cc mv src/lib/plain_text_file_content.h src/lib/text_caption_file_content.h sed -i "s/PlainTextFileDecoder/TextCaptionFileDecoder/g" src/lib/*.{cc,h} sed -i "s/plain_text_file_decoder/text_caption_file_decoder/g" src/lib/*.{cc,h} src/lib/wscript src/wx/*.{cc,h} mv src/lib/plain_text_file_decoder.cc src/lib/text_caption_file_decoder.cc mv src/lib/plain_text_file_decoder.h src/lib/text_caption_file_decoder.h sed -i "s/PlayerText/PlayerCaption/g" src/lib/*.{cc,h} sed -i "s/player_text.cc/player_caption.cc/g" src/lib/wscript sed -i "s/player_text.h/player_caption.h/g" src/lib/*.{cc,h} mv src/lib/player_text.cc src/lib/player_caption.cc mv src/lib/player_text.h src/lib/player_caption.h sed -i "s/ContentPlainText/ContentTextCaption/g" src/lib/*.{cc,h} src/wx/*.{cc,h} sed -i "s/ContentBitmapText/ContentBitmapCaption/g" src/lib/*.{cc,h} src/wx/*.{cc,h} sed -i "s/PlainText/TextCaption/g" src/lib/*.{cc,h} test/*.cc sed -i "s/plain_text.h/text_caption.h/g" src/lib/*.{cc,h} mv src/lib/plain_text.h src/lib/text_caption.h
2018-07-19More renaming; text -> plain.Carl Hetherington
sed -i "s/TextTextContent/PlainText/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc sed -i "s/text_text/plain_text/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc src/lib/wscript mv src/lib/text_text_content.cc src/lib/plain_text_content.cc mv src/lib/text_text_content.h src/lib/plain_text_content.h mv src/lib/text_text_decoder.cc src/lib/plain_text_decoder.cc mv src/lib/text_text_decoder.h src/lib/plain_text_decoder.h
2018-07-19Rename Subtitle -> TextCarl Hetherington
sed -i "s/SubtitleContent/TextContent/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc sed -i "s/SubtitleDecoder/TextDecoder/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc sed -i "s/subtitle_content/text_content/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc src/lib/wscript src/wx/wscript sed -i "s/subtitle_decoder/text_decoder/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc src/lib/wscript mv src/lib/subtitle_decoder.cc src/lib/text_decoder.cc mv src/lib/subtitle_decoder.h src/lib/text_decoder.h mv src/lib/subtitle_content.cc src/lib/text_content.cc mv src/lib/subtitle_content.h src/lib/text_content.h mv src/lib/dcp_subtitle_decoder.cc src/lib/dcp_text_decoder.cc mv src/lib/dcp_subtitle_decoder.h src/lib/dcp_text_decoder.h mv src/lib/dcp_subtitle_content.cc src/lib/dcp_text_content.cc mv src/lib/dcp_subtitle_content.h src/lib/dcp_text_content.h mv src/lib/text_subtitle_content.cc src/lib/text_text_content.cc mv src/lib/text_subtitle_content.h src/lib/text_text_content.h mv src/lib/text_subtitle_decoder.cc src/lib/text_text_decoder.cc mv src/lib/text_subtitle_decoder.h src/lib/text_text_decoder.h mv src/wx/timeline_subtitle_content_view.cc src/wx/timeline_text_content_view.cc mv src/wx/timeline_subtitle_content_view.h src/wx/timeline_text_content_view.h
2017-07-03Fix up test a bit even though it's not being run.Carl Hetherington
2017-04-19Various Doxygen fixes.Carl Hetherington
2016-12-20Allow content factory to return multiple content.Carl Hetherington
2016-08-22Do full gamma correction etc. when alpha-blending subtitlesCarl Hetherington
onto XYZ images. This fixes colour tints on subtitles burnt into existing DCPs.
2016-06-21Revert "Use make_shared<>."Carl Hetherington
Support for this seems to vary wildly across DoM's build targets. Stuff that builds on 16.04 won't build on 14.04, for example. Seems to not be worth the hassle now. This reverts commit 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f.
2016-06-21Use make_shared<>.Carl Hetherington
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington
2016-02-12Rename SubRip -> TextSubtitle.Carl Hetherington
2015-09-14More <iostream> includes for Arch.Carl Hetherington
2015-06-25Make player decide whether subtitles should be burnt based onCarl Hetherington
content settings rather than using the film's settings. Remove film property of burn-subtitles.
2014-12-03Hand-apply 6a3cd511559433554ab40ed72ff94b7d8dc2c5bd from master;Carl Hetherington
Basics of an image sequence dialog that asks about frame rate and digest calculation.
2014-07-11Rename subtitle_use -> use_subtitles.Carl Hetherington
2014-07-10Various fixes for DCP subtitles, and a test or two.Carl Hetherington
2014-06-20Various subtitle UI tweaks.Carl Hetherington
2014-06-13Add test of burnt subtitles.Carl Hetherington