Skip to content

WebpResourceFormat

class WebpResourceFormat
Implements: IResourceFormat
Package: dev.joid.lib.resource.format.impl · Module: core · Source: WebpResourceFormat.java

The built-in format of WebP files, still or animated.

An animated WebP plays as an animated image; any other WebP is a still image.

ReturnsSignatureSummary
WebpResourceFormat()Creates the format.

ReturnsSignatureSummary
booleansupports(byte[] header)If true, header is a RIFF file of type WEBP.
IResourceDecoderdecoder(Asset asset, byte[] header)Returns an AnimatedResourceDecoder for an animated WebP, otherwise a RasterResourceDecoder with the WebP reader.

WebpResourceFormat()

Creates the format.

boolean supports(byte[] header)

If true, header is a RIFF file of type WEBP.

IResourceDecoder decoder(Asset asset, byte[] header)

Returns an AnimatedResourceDecoder for an animated WebP, otherwise a RasterResourceDecoder with the WebP reader.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page