Set the fontSize in the tx3g styles.

This commit is contained in:
Damiano Galassi committed 2018-01-03 10:47:44 +01:00
1 parent 99b331ead6
commit 2a3772f618
3 files changed
+19 -16

No files matched your search

+4 -1
View File
@@ -35,6 +35,7 @@
@property (nonatomic, readonly) MP42SSAConverter *converter;
@property (nonatomic, readonly) MP4TrackId trackID;
@property (nonatomic, readonly) MP42SubtitleTrack *track;
@property (nonatomic, readonly) _Atomic int32_t finished;
@@ -105,6 +106,7 @@
}
_trackID = track.sourceId;
_track = track;
_decoderThread = [[NSThread alloc] initWithTarget:self selector:@selector(TextConverterThreadMainRoutine) object:nil];
[_decoderThread setName:@"Text Converter"];
@@ -123,6 +125,7 @@
{
if (_finished) {
if (!_ss.isEmpty) {
CGSize trackSize = CGSizeMake(_track.trackWidth, _track.trackHeight);
MP42SubLine *sl = [_ss getSerializedPacket];
MP42SampleBuffer *sample;
@@ -130,7 +133,7 @@
sample = copyEmptySubtitleSample(_trackID, sl->end_time - sl->begin_time, NO);
}
else {
sample = copySubtitleSample(_trackID, sl->line, sl->end_time - sl->begin_time, sl->forced, NO, YES, CGSizeMake(0, 0), 0);
sample = copySubtitleSample(_trackID, sl->line, sl->end_time - sl->begin_time, sl->forced, NO, YES, trackSize, 0);
}
return sample;