MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / encode

Method encode

modules/commodetto/commodettoRLEOut.js:170–177  ·  view source on GitHub ↗
(source, key)

Source from the content-addressed store, hash-verified

168 }
169
170 static encode(source, key) {
171 let writer = new RLEOut({width: source.width, height: source.height, pixelFormat: source.format, key: key});
172 let render = new Poco(writer);
173 render.begin();
174 render.drawBitmap(source, 0, 0);
175 render.end();
176 return writer.bits;
177 }
178
179}

Callers

nothing calls this directly

Calls 3

beginMethod · 0.95
endMethod · 0.95
drawBitmapMethod · 0.80

Tested by

no test coverage detected