Subversion Repositories seema-scanner

Rev

Rev 103 | Rev 113 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 103 Rev 107
Line 49... Line 49...
49
 
49
 
50
    // Create Algorithm
50
    // Create Algorithm
51
    codec = settings.value("algorithm", "GrayCode").toString();
51
    codec = settings.value("algorithm", "GrayCode").toString();
52
    if(codec == "GrayCode")
52
    if(codec == "GrayCode")
53
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
53
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
54
    else if(codec == "GrayCodeHQ")
54
    else if(codec == "GrayCodeHorzVert")
55
        algorithm = new AlgorithmGrayCodeHorzVert(screenCols, screenRows);
55
        algorithm = new AlgorithmGrayCodeHorzVert(screenCols, screenRows);
56
    else if(codec == "PhaseShift")
56
    else if(codec == "PhaseShift")
57
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
57
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
58
    else
58
    else
59
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
59
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;