Meziantou.Framework.WebPlatform.WebCodecs namespace

Classes

NameDescription
ImageDecodeOptionsThe options of ImageDecoder.Decode (https://w3c.github.io/webcodecs/#dictdef-imagedecodeoptions).
ImageDecodeResultThe result of ImageDecoder.Decode (https://w3c.github.io/webcodecs/#dictdef-imagedecoderesult).
ImageDecoderDecodes the frames of an encoded image (https://w3c.github.io/webcodecs/#imagedecoder) with the image decoders of the rendering backend (BrowsingContextOptions.RenderingBackend), the ones of the img elements: PNG (including the animated PNG), JPEG, GIF, WebP, AVIF, JPEG XL, BMP and ICO with the backend of Meziantou.Framework.WebPlatform.Imaging. The data is a buffer, or a stream whose frames can be decoded as they arrive.
ImageDecoderInitThe options of an ImageDecoder (https://w3c.github.io/webcodecs/#dictdef-imagedecoderinit).
ImageTrackA track of the image of an ImageDecoder (https://w3c.github.io/webcodecs/#imagetrack): a still image or an animation.
ImageTrackListThe tracks of the image of an ImageDecoder (https://w3c.github.io/webcodecs/#imagetracklist), and the selected one.
PlaneLayoutThe offset and the stride of a plane copied by VideoFrame.CopyTo (https://w3c.github.io/webcodecs/#dictdef-planelayout).
VideoColorSpaceThe color space of a VideoFrame (https://w3c.github.io/webcodecs/#videocolorspace): its color primaries, transfer characteristics, matrix coefficients and range, as the codecs describe them.
VideoColorSpaceInitThe members of a VideoColorSpace (https://w3c.github.io/webcodecs/#dictdef-videocolorspaceinit).
VideoFrameA frame of video or a decoded image (https://w3c.github.io/webcodecs/#videoframe): the frames created by an ImageDecoder. Its pixels are RGBA (8 bits per sample, not premultiplied, in the sRGB color space, or Display P3 for an image whose colors are outside of sRGB); its rotation and flip are the EXIF orientation of the image. A frame can be drawn on a canvas and used by createImageBitmap(); the frames cannot be constructed by the scripts (the decoders and the encoders of audio and video are not implemented).
VideoFrameCopyToOptionsThe options of VideoFrame.CopyTo and VideoFrame.AllocationSize (https://w3c.github.io/webcodecs/#dictdef-videoframecopytooptions).
VideoFrameMetadataThe metadata of a VideoFrame (https://w3c.github.io/webcodecs/#dictdef-videoframemetadata): no member is defined by the specification.

Enums

NameDescription
VideoColorPrimariesThe color primaries of a video color space (https://w3c.github.io/webcodecs/#enumdef-videocolorprimaries).
VideoMatrixCoefficientsThe matrix coefficients of a video color space (https://w3c.github.io/webcodecs/#enumdef-videomatrixcoefficients).
VideoPixelFormatThe arrangement of the bytes of the planes of a VideoFrame (https://w3c.github.io/webcodecs/#enumdef-videopixelformat).
VideoTransferCharacteristicsThe transfer characteristics of a video color space (https://w3c.github.io/webcodecs/#enumdef-videotransfercharacteristics).