You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.libassMemoryLimit=options.libassMemoryLimit||0;// set libass bitmap cache memory limit in MiB (approximate)
19
21
self.libassGlyphLimit=options.libassGlyphLimit||0;// set libass glyph cache memory limit in MiB (approximate)
20
22
self.targetFps=options.targetFps||30;
23
+
self.prescaleTradeoff=options.prescaleTradeoff||1.0;// render subtitles less than viewport when less than 1.0 to improve speed, render to more than 1.0 to improve quality
24
+
self.softHeightLimit=options.softHeightLimit||1080;// don't apply prescaleTradeoff < 1 when viewport height is less that this limit
25
+
self.hardHeightLimit=options.hardHeightLimit||1600;// don't ever go above this limit
26
+
21
27
self.renderAhead=options.renderAhead||0;// how many MiB to render ahead and store; 0 to disable (approximate)
22
28
self.isOurCanvas=false;// (internal) we created canvas and manage it
23
29
self.video=options.video;// HTML video element (optional if canvas specified)
@@ -667,14 +673,43 @@ var SubtitlesOctopus = function (options) {
0 commit comments