Lines Matching refs:currP
332 compareruns( unsigned char * data, unsigned int * index, unsigned int max, union RunData * currP, int * depth )
337 if ( currP == NULL || data == NULL )
358 if ( nextP->c[0] == currP->c[0] )
362 if ( nextP->c[0] == currP->c[0] &&
363 nextP->c[1] == currP->c[1] )
367 if ( nextP->c[0] == currP->c[0] &&
368 nextP->c[1] == currP->c[1] &&
369 nextP->c[2] == currP->c[2] )
373 if ( nextP->c[0] == currP->c[0] &&
374 nextP->c[1] == currP->c[1] &&
375 nextP->c[2] == currP->c[2] &&
376 nextP->c[3] == currP->c[3] )
389 // We have at least 8 bytes left in the buffer starting from currP
392 if ( nextP->c[0] == currP->c[0] &&
393 nextP->c[1] == currP->c[1] &&
394 nextP->c[2] == currP->c[2] &&
395 nextP->c[3] == currP->c[3] )
398 if ( currP->c[0] == currP->c[1] &&
399 currP->c[1] == currP->c[2] &&
400 currP->c[2] == currP->c[3] )
415 if ( nextP->c[0] == currP->c[0] &&
416 nextP->c[1] == currP->c[1] &&
417 nextP->c[2] == currP->c[2] )
420 if ( currP->c[0] == currP->c[1] &&
421 currP->c[1] == currP->c[2] )
436 if ( nextP->c[0] == currP->c[0] &&
437 nextP->c[1] == currP->c[1] )
440 if ( currP->c[0] == currP->c[1] )
459 if ( nextP->c[0] == currP->c[0] )
475 union RunData * currP, * norunP ;
479 currP = NULL;
486 currP = (union RunData *)&data[0]; // start a new run
488 if ( compareruns( data, &i, pixels, currP, &depth ) )
507 filePos += encode_rle(fileArr, filePos, run, currP, depth);
514 currP = (union RunData *)&data[i]; // start a new run
518 norunP = currP;
543 filePos += encode_rle(fileArr, filePos, run, currP, depth);