Lines Matching defs:currP
720 compareruns( unsigned char * data, unsigned int * index, unsigned int max, union RunData * currP, int * depth )
726 if ( currP == NULL || data == NULL )
747 if ( nextP->c[0] == currP->c[0] )
751 if ( nextP->c[0] == currP->c[0] &&
752 nextP->c[1] == currP->c[1] )
756 if ( nextP->c[0] == currP->c[0] &&
757 nextP->c[1] == currP->c[1] &&
758 nextP->c[2] == currP->c[2] )
762 if ( nextP->c[0] == currP->c[0] &&
763 nextP->c[1] == currP->c[1] &&
764 nextP->c[2] == currP->c[2] &&
765 nextP->c[3] == currP->c[3] )
778 // We have at least 8 bytes left in the buffer starting from currP
781 if ( nextP->c[0] == currP->c[0] &&
782 nextP->c[1] == currP->c[1] &&
783 nextP->c[2] == currP->c[2] &&
784 nextP->c[3] == currP->c[3] )
787 if ( currP->c[0] == currP->c[1] &&
788 currP->c[1] == currP->c[2] &&
789 currP->c[2] == currP->c[3] )
804 if ( nextP->c[0] == currP->c[0] &&
805 nextP->c[1] == currP->c[1] &&
806 nextP->c[2] == currP->c[2] )
809 if ( currP->c[0] == currP->c[1] &&
810 currP->c[1] == currP->c[2] )
825 if ( nextP->c[0] == currP->c[0] &&
826 nextP->c[1] == currP->c[1] )
829 if ( currP->c[0] == currP->c[1] )
848 if ( nextP->c[0] == currP->c[0] )
864 union RunData * currP, * norunP ;
868 currP = NULL;
875 currP = (union RunData *)&data[0]; // start a new run
878 if ( compareruns( data, &i, pixels, currP, &depth ) )
901 filePos += encode_rle(fileArr, filePos, run, currP, depth);
910 currP = (union RunData *)&data[i]; // start a new run
915 norunP = currP;
942 filePos += encode_rle(fileArr, filePos, run, currP, depth);