mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-17 11:33:12 +00:00
[PR #877] [MERGED] [FEATURE] FreeType-based text renderer (-out=spupng with teletext/EIA608) #1717
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/877
Author: @harrynull
Created: 1/5/2018
Status: ✅ Merged
Merged: 1/9/2018
Merged by: @cfsmp3
Base:
master← Head:text-renderer📝 Commits (8)
8037a09Implementation of text renderer0a3dd03Fix some characters being cut1a1f7d1Fix encoding and other bugse4739b0Add black background & fix bugs03c99b9Fix more bugs159a6f4Change to relative path8848a55Add a font option & Default font for MacOS & Fix anti-aliasing79d1355Document -font & enlarge default canvas📊 Changes
23 files changed (+1321 additions, -1003 deletions)
View changed files
📝
linux/Makefile.am(+44 -7)📝
linux/build(+44 -3)📝
linux/build_hardsubx(+44 -3)📝
linux/builddebug(+44 -3)📝
mac/Makefile.am(+44 -6)📝
mac/build.command(+44 -4)📝
src/CMakeLists.txt(+47 -3)📝
src/ccextractor.c(+0 -1)📝
src/lib_ccx/ccx_common_option.h(+3 -0)📝
src/lib_ccx/ccx_encoders_common.c(+0 -2)📝
src/lib_ccx/ccx_encoders_common.h(+5 -0)📝
src/lib_ccx/ccx_encoders_curl.c(+0 -2)📝
src/lib_ccx/ccx_encoders_sami.c(+0 -1)📝
src/lib_ccx/ccx_encoders_smptett.c(+0 -1)📝
src/lib_ccx/ccx_encoders_spupng.c(+772 -277)➖
src/lib_ccx/ccx_encoders_spupng.h(+0 -10)📝
src/lib_ccx/ccx_encoders_transcript.c(+0 -2)📝
src/lib_ccx/ocr.c(+0 -1)📝
src/lib_ccx/params.c(+19 -1)➖
src/lib_ccx/spupng_encoder.c(+0 -599)...and 3 more files
📄 Description
Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
ABSTRACT
The pull request implements a FreeType-based text renderer, which can be used to generate the bitmaps for spupng in the case of teletext/EIA608.
CHANGES
KNOWN ISSUES
Note that the issues will also affect EIA-608 which may not have these issues before (But the new implementation is generally much cleaner, easier to maintain and more extensible and customizable than the old one).
Font needs to be manually set.FIXED (New option -font added to specify font)Characters like "$" will be cut.FIXEDAccented letters don't render. (could be encoding problem)FIXEDNOTE
Please merge this PR after #876 , or it won't compile.
EXAMPLES

Note that the preview is not latest. Please refer to comments for the latest preview.
Example of a good output.
Example of tag rendered as-is.
 (original generated png file)  (transparency is replaced by black) Example of "$" being cut.FIXED
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.