MCPcopy Create free account
hub / github.com/HumbleUI/Skija / encode

Method encode

shared/java/EncoderWEBP.java:13–16  ·  view source on GitHub ↗

Encode the provided image and return the resulting bytes. @param image image to encode @return nullptr if the pixels could not be read or encoding otherwise fails.

(@NotNull Image image)

Source from the content-addressed store, hash-verified

11 * @return nullptr if the pixels could not be read or encoding otherwise fails.
12 */
13 @Nullable
14 public static Data encode(@NotNull Image image) {
15 return encode(null, image, EncodeWEBPOptions.DEFAULT);
16 }
17
18 /**
19 * Encode the provided image and return the resulting bytes.

Callers 2

baseMethod · 0.95
encodeToDataMethod · 0.95

Calls 4

onNativeCallMethod · 0.95
_nEncodeMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

baseMethod · 0.76