| 164 | } |
| 165 | |
| 166 | void rleFrBbox( RLE *R, const BB bb, siz h, siz w, siz n ) { |
| 167 | siz i; for( i=0; i<n; i++ ) { |
| 168 | double xs=bb[4*i+0], xe=xs+bb[4*i+2]; |
| 169 | double ys=bb[4*i+1], ye=ys+bb[4*i+3]; |
| 170 | double xy[8] = {xs,ys,xs,ye,xe,ye,xe,ys}; |
| 171 | rleFrPoly( R+i, xy, 4, h, w ); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | int uintCompare(const void *a, const void *b) { |
| 176 | uint c=*((uint*)a), d=*((uint*)b); return c>d?1:c<d?-1:0; |
no test coverage detected