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

Function rlesInit

eval/CIPO_evaluation/common/maskApi.c:40–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void rlesInit( RLE **R, siz n ) {
41 siz i; *R = (RLE*) malloc(sizeof(RLE)*n);
42 for(i=0; i<n; i++) rleInit((*R)+i,0,0,0,0);
43}
44
45void rlesFree( RLE **R, siz n ) {
46 siz i; for(i=0; i<n; i++) rleFree((*R)+i); free(*R); *R=0;

Calls 1

rleInitFunction · 0.85

Tested by

no test coverage detected