diff options
author | jstebbins <[email protected]> | 2015-04-05 23:21:09 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-04-05 23:21:09 +0000 |
commit | d030ab8b629ebd577ca845c4e77f9b7ef73dc936 (patch) | |
tree | 1123107c17349c3da80d42647ef4ec3b5e70fb1d /libhb/rendersub.c | |
parent | 712180d874cefa835b159461552543f071455d4d (diff) |
deccc608sub: improve CC positioning
The safe zone margin was not wide enough and the font size was a little
too small.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7063 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/rendersub.c')
-rw-r--r-- | libhb/rendersub.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c index 006f4f156..1ea4c7648 100644 --- a/libhb/rendersub.c +++ b/libhb/rendersub.c @@ -596,8 +596,10 @@ static int cc608sub_post_init( hb_filter_object_t * filter, hb_job_t * job ) // to have the header rewritten with the correct dimensions. int height = job->title->geometry.height - job->crop[0] - job->crop[1]; int width = job->title->geometry.width - job->crop[2] - job->crop[3]; + int safe_height = 0.8 * height; // Use fixed widht font for CC - hb_subtitle_add_ssa_header(filter->subtitle, "Courier New", width, height); + hb_subtitle_add_ssa_header(filter->subtitle, "Courier New", + .08 * safe_height, width, height); return ssa_post_init(filter, job); } @@ -607,7 +609,8 @@ static int textsub_post_init( hb_filter_object_t * filter, hb_job_t * job ) // to have the header rewritten with the correct dimensions. int height = job->title->geometry.height - job->crop[0] - job->crop[1]; int width = job->title->geometry.width - job->crop[2] - job->crop[3]; - hb_subtitle_add_ssa_header(filter->subtitle, "Arial", width, height); + hb_subtitle_add_ssa_header(filter->subtitle, "Arial", .066 * height, + width, height); return ssa_post_init(filter, job); } |