/*! * Copyright (c) 2025-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /** * Describes the color space of a video frame. * * Corresponds to the WebCodecs VideoColorSpace API. */ export declare class VideoColorSpacePolyfill { /** * The color primaries standard used. */ readonly primaries: VideoColorPrimaries | null; /** * The transfer characteristics used. */ readonly transfer: VideoTransferCharacteristics | null; /** * The color matrix coefficients used. */ readonly matrix: VideoMatrixCoefficients | null; /** * Whether the color values use the full range or limited range. */ readonly fullRange: boolean | null; /** * Creates a new VideoColorSpace. */ constructor(init?: VideoColorSpaceInit); /** * Serializes the color space to a JSON object. */ toJSON(): { primaries: VideoColorPrimaries | null; transfer: VideoTransferCharacteristics | null; matrix: VideoMatrixCoefficients | null; fullRange: boolean | null; }; }