MCPcopy Create free account
hub / github.com/ON4QZ/QSSTV / checkSyncArray

Method checkSyncArray

src/sstv/syncprocessor.cpp:532–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532void syncProcessor::checkSyncArray()
533{
534
535 if(syncArray[syncArrayIndex].retrace)
536 {
537 syncArray[0]=syncArray[syncArrayIndex];
538 syncArrayIndex=0;
539 // syncPosition=syncArray[0].end + FILTERDELAYCORRECTION;
540 addToLog(QString("Found retrace: start:%1 end:%2 width %3").arg(syncArray[0].start).arg(syncArray[0].end).arg(syncArray[0].end-syncArray[0].start),LOGSYNCACCEPTED);
541 if(syncProcesState==INSYNC)
542 {
543 retraceFlag=true;
544 syncProcesState=RETRACEWAIT;
545 }
546 }
547
548 if(syncArrayIndex>=(MAXSYNCENTRIES-1))
549 {
550 //shift syncArray
551 dropTop();
552 }
553 addToLog(QString("Found sync: start:%1 end:%2 width %3 at %4").arg(syncArray[syncArrayIndex].start).arg(syncArray[syncArrayIndex].end).arg(syncArray[syncArrayIndex].end-syncArray[syncArrayIndex].start).arg(syncArrayIndex),LOGSYNCACCEPTED);
554}
555
556
557/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected