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

Method cleanupMatchArray

src/sstv/syncprocessor.cpp:797–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797void syncProcessor::cleanupMatchArray()
798{
799 int i,j;
800 // double fract=0;
801 // quint16 lnbr=0;
802 for(i=idxStart;i<=idxEnd;i++)
803 {
804 for(j=0;j<matchArray[i].count();)
805 {
806 if(activeChainPtr!=matchArray[i][j])
807 {
808 removeMatchArrayChain((esstvMode)i,j);
809 }
810 else
811 {
812 j++;
813 }
814 }
815 }
816
817 for(i=0;i<activeChainPtr->count();i++)
818 {
819 syncArray[activeChainPtr->at(i)->from].inUse=true;
820 syncArray[activeChainPtr->at(i)->to].inUse=true;
821 }
822 for(i=0;i<syncArrayIndex;)
823 {
824 if(!syncArray[i].inUse)
825 {
826 deleteSyncArrayEntry(i);
827 }
828 else
829 {
830 i++;
831 }
832 }
833 for(i=0;i<syncArrayIndex;i++)
834 {
835 calculateLineNumber(i,i+1);
836 }
837}
838
839void syncProcessor::dropTop()
840{

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
atMethod · 0.80

Tested by

no test coverage detected