lib/scc.js
function(lines) {
        var idx = 0;
        jsonCaptions = [];
        for (idx = 0; idx < lines.length; idx++) {
            if (!module.exports.verify(lines[idx])) {
                module.exports.translateLine(lines[idx].toLowerCase());
            }
        }
        if (paintBuffer.length > 0) {
            rollUp(true);
        }
        if (jsonCaptions[jsonCaptions.length - 1].endTimeMicro === undefined) {
            jsonCaptions[jsonCaptions.length - 1].endTimeMicro = jsonCaptions[jsonCaptions.length - 1].startTimeMicro;
        }
        return jsonCaptions;
    }
function(lines) {
        var idx = 0;
        jsonCaptions = [];
        for (idx = 0; idx < lines.length; idx++) {
            if (!module.exports.verify(lines[idx])) {
                module.exports.translateLine(lines[idx].toLowerCase());
            }
        }
        if (paintBuffer.length > 0) {
            rollUp(true);
        }
        if (jsonCaptions[jsonCaptions.length - 1].endTimeMicro === undefined) {
            jsonCaptions[jsonCaptions.length - 1].endTimeMicro = jsonCaptions[jsonCaptions.length - 1].startTimeMicro;
        }
        return jsonCaptions;
    }
function ( lines ) { var idx = 0 ; jsonCaptions = [ ] ; for ( idx = 0 ; idx < lines . length ; idx ++ ) { if ( ! module . exports . verify ( lines [ idx ] ) ) { module . exports . translateLine ( lines [ idx ] . toLowerCase ( ) ) ; } } if ( paintBuffer . length > 0 ) { rollUp ( true ) ; } if ( jsonCaptions [ jsonCaptions . length - 1 ] . endTimeMicro === undefined ) { jsonCaptions [ jsonCaptions . length - 1 ] . endTimeMicro = jsonCaptions [ jsonCaptions . length - 1 ] . startTimeMicro ; } return jsonCaptions ; }
Converts the SCC file to a proprietary JSON format
@function
@param {string} data - Entire SCC file content
@public
Converts the SCC file to a proprietary JSON format