MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / rleInit

Function rleInit

eval/CIPO_evaluation/common/maskApi.c:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29uint umax( uint a, uint b ) { return (a>b) ? a : b; }
30
31void 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
36void rleFree( RLE *R ) {
37 free(R->cnts); R->cnts=0;

Callers 5

rlesInitFunction · 0.85
rleEncodeFunction · 0.85
rleMergeFunction · 0.85
rleFrPolyFunction · 0.85
rleFrStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected