"use strict";
/**
 * VideoColorSpace - Describes the color space of a video frame
 * Implements the W3C WebCodecs VideoColorSpace interface
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.VideoColorSpace = void 0;
class VideoColorSpace {
    constructor(init) {
        this.primaries = init?.primaries ?? null;
        this.transfer = init?.transfer ?? null;
        this.matrix = init?.matrix ?? null;
        this.fullRange = init?.fullRange ?? null;
    }
    toJSON() {
        return {
            primaries: this.primaries,
            transfer: this.transfer,
            matrix: this.matrix,
            fullRange: this.fullRange,
        };
    }
}
exports.VideoColorSpace = VideoColorSpace;
//# sourceMappingURL=VideoColorSpace.js.map