File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -294,13 +294,13 @@ class SubtitleOctopus {
294294 {
295295 float pix_alpha = bitmap[bitmap_offset + x] * normalized_a / 255.0 ;
296296 float inv_alpha = 1.0 - pix_alpha;
297-
297+
298298 int buf_coord = (buf_line_coord + curx + x) << 2 ;
299299 float *buf_r = buf + buf_coord;
300300 float *buf_g = buf + buf_coord + 1 ;
301301 float *buf_b = buf + buf_coord + 2 ;
302302 float *buf_a = buf + buf_coord + 3 ;
303-
303+
304304 // do the compositing, pre-multiply image RGB with alpha for current pixel
305305 *buf_a = pix_alpha + *buf_a * inv_alpha;
306306 *buf_r = r * pix_alpha + *buf_r * inv_alpha;
@@ -332,7 +332,7 @@ class SubtitleOctopus {
332332 result[buf_line_coord + x] = pixel;
333333 }
334334 }
335-
335+
336336 // return the thing
337337 m_blendResult.dest_x = min_x;
338338 m_blendResult.dest_y = min_y;
Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ self.fontId = 0;
2121 */
2222self . writeFontToFS = function ( font ) {
2323 font = font . trim ( ) . toLowerCase ( ) ;
24-
24+
2525 if ( font . startsWith ( "@" ) ) {
2626 font = font . substr ( 1 ) ;
2727 }
28-
28+
2929 if ( self . fontMap_ . hasOwnProperty ( font ) ) return ;
3030
3131 self . fontMap_ [ font ] = true ;
3232
3333 if ( ! self . availableFonts . hasOwnProperty ( font ) ) return ;
3434 var content = readBinary ( self . availableFonts [ font ] ) ;
3535
36- Module [ "FS" ] . writeFile ( '/fonts/font' + ( self . fontId ++ ) + '-' + self . availableFonts [ font ] . split ( '/' ) . pop ( ) , content , {
36+ Module [ "FS" ] . writeFile ( '/fonts/font' + ( self . fontId ++ ) + '-' + self . availableFonts [ font ] . split ( '/' ) . pop ( ) , content , {
3737 encoding : 'binary'
3838 } ) ;
3939} ;
@@ -54,7 +54,7 @@ self.writeAvailableFontsToFS = function(content) {
5454 }
5555 }
5656 }
57-
57+
5858 var regex = / \\ f n ( [ ^ \\ } ] * ?) [ \\ } ] / g;
5959 var matches ;
6060 while ( matches = regex . exec ( self . subContent ) ) {
@@ -144,7 +144,7 @@ self.setCurrentTime = function (currentTime) {
144144 }
145145 else {
146146 self . getRenderMethod ( ) ( ) ;
147-
147+
148148 // Give onmessage chance to receive all queued messages
149149 setTimeout ( function ( ) {
150150 self . nextIsRaf = false ;
You can’t perform that action at this time.
0 commit comments