| 29 | uint umax( uint a, uint b ) { return (a>b) ? a : b; } |
| 30 | |
| 31 | void rleInit( RLE *R, siz h, siz w, siz m, uint *cnts ) { |
| 32 | R->h=h; R->w=w; R->m=m; R->cnts=(m==0)?0:malloc(sizeof(uint)*m); |
| 33 | siz j; if(cnts) for(j=0; j<m; j++) R->cnts[j]=cnts[j]; |
| 34 | } |
| 35 | |
| 36 | void rleFree( RLE *R ) { |
| 37 | free(R->cnts); R->cnts=0; |
no outgoing calls
no test coverage detected