Lines Matching refs:col
41 s32 col, start; in _DEMOComputeRunlengths() local
44 for (col = 0; col < cols; ++col) in _DEMOComputeRunlengths()
45 runlength[col] = 0; in _DEMOComputeRunlengths()
48 for ( col = 0; col < cols; ) { in _DEMOComputeRunlengths()
49 start = col; in _DEMOComputeRunlengths()
51 ++col; in _DEMOComputeRunlengths()
52 } while ( col < cols && in _DEMOComputeRunlengths()
53 col - start < 128 && in _DEMOComputeRunlengths()
54 (pixelrow[col].x == pixelrow[start].x) && in _DEMOComputeRunlengths()
55 (pixelrow[col].y == pixelrow[start].y) && in _DEMOComputeRunlengths()
56 (pixelrow[col].z == pixelrow[start].z) && in _DEMOComputeRunlengths()
57 (pixelrow[col].w == pixelrow[start].w) ); in _DEMOComputeRunlengths()
58 runlength[start] = col - start; in _DEMOComputeRunlengths()
62 for (col = 0; col < cols; ) in _DEMOComputeRunlengths()
64 if (runlength[col] == 1) in _DEMOComputeRunlengths()
66 start = col; in _DEMOComputeRunlengths()
67 while (col < cols && in _DEMOComputeRunlengths()
68 col - start < 128 && in _DEMOComputeRunlengths()
69 (runlength[col] == 1) ) in _DEMOComputeRunlengths()
71 runlength[col] = 0; in _DEMOComputeRunlengths()
72 ++col; in _DEMOComputeRunlengths()
74 runlength[start] = - ( col - start ); in _DEMOComputeRunlengths()
76 col += runlength[col]; in _DEMOComputeRunlengths()
185 u32 row, col, i, realrow, byte = 0; in _DEMOEncodeTGA() local
227 for( col = 0; col < cols; ){ in _DEMOEncodeTGA()
228 if( runlength[col] > 0 ){ in _DEMOEncodeTGA()
230 pbuffer[byte] = (u8)(0x80 + runlength[col] - 1); byte++; in _DEMOEncodeTGA()
233 pbuffer[byte] = buffer[realrow * pitch + col].z; byte++; in _DEMOEncodeTGA()
234 pbuffer[byte] = buffer[realrow * pitch + col].y; byte++; in _DEMOEncodeTGA()
235 pbuffer[byte] = buffer[realrow * pitch + col].x; byte++; in _DEMOEncodeTGA()
236 pbuffer[byte] = buffer[realrow * pitch + col].w; byte++; in _DEMOEncodeTGA()
237 col += runlength[col]; in _DEMOEncodeTGA()
238 }else if( runlength[col] < 0 ){ in _DEMOEncodeTGA()
240 pbuffer[byte] = (u8)(- runlength[col] - 1); byte++; in _DEMOEncodeTGA()
243 for ( i = 0; i < - runlength[col]; ++i ) in _DEMOEncodeTGA()
245 pbuffer[byte] = buffer[realrow * pitch + col + i].z; byte++; in _DEMOEncodeTGA()
246 pbuffer[byte] = buffer[realrow * pitch + col + i].y; byte++; in _DEMOEncodeTGA()
247 pbuffer[byte] = buffer[realrow * pitch + col + i].x; byte++; in _DEMOEncodeTGA()
248 pbuffer[byte] = buffer[realrow * pitch + col + i].w; byte++; in _DEMOEncodeTGA()
250 col += -runlength[col]; in _DEMOEncodeTGA()