// skia/public/mojom/image_info.mojom-webui.ts is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { mojo } from '//resources/mojo/mojo/public/js/bindings.js';
export const ColorTypeSpec = { $: mojo.internal.Enum() };
export var ColorType;
(function (ColorType) {
    ColorType[ColorType["MIN_VALUE"] = 0] = "MIN_VALUE";
    ColorType[ColorType["MAX_VALUE"] = 7] = "MAX_VALUE";
    ColorType[ColorType["UNKNOWN"] = 0] = "UNKNOWN";
    ColorType[ColorType["ALPHA_8"] = 1] = "ALPHA_8";
    ColorType[ColorType["RGB_565"] = 2] = "RGB_565";
    ColorType[ColorType["ARGB_4444"] = 3] = "ARGB_4444";
    ColorType[ColorType["RGBA_8888"] = 4] = "RGBA_8888";
    ColorType[ColorType["BGRA_8888"] = 5] = "BGRA_8888";
    ColorType[ColorType["DEPRECATED_INDEX_8"] = 6] = "DEPRECATED_INDEX_8";
    ColorType[ColorType["GRAY_8"] = 7] = "GRAY_8";
})(ColorType || (ColorType = {}));
export const AlphaTypeSpec = { $: mojo.internal.Enum() };
export var AlphaType;
(function (AlphaType) {
    AlphaType[AlphaType["MIN_VALUE"] = 0] = "MIN_VALUE";
    AlphaType[AlphaType["MAX_VALUE"] = 3] = "MAX_VALUE";
    AlphaType[AlphaType["UNKNOWN"] = 0] = "UNKNOWN";
    AlphaType[AlphaType["ALPHA_TYPE_OPAQUE"] = 1] = "ALPHA_TYPE_OPAQUE";
    AlphaType[AlphaType["PREMUL"] = 2] = "PREMUL";
    AlphaType[AlphaType["UNPREMUL"] = 3] = "UNPREMUL";
})(AlphaType || (AlphaType = {}));
export const ImageInfoSpec = { $: {} };
export const BitmapN32ImageInfoSpec = { $: {} };
mojo.internal.Struct(ImageInfoSpec.$, 'ImageInfo', [
    mojo.internal.StructField('colorType', 0, 0, ColorTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('alphaType', 4, 0, AlphaTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('width', 8, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('height', 12, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('colorTransferFunction', 16, 0, mojo.internal.Array(mojo.internal.Float, false), null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('colorToXyzMatrix', 24, 0, mojo.internal.Array(mojo.internal.Float, false), null, true /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(BitmapN32ImageInfoSpec.$, 'BitmapN32ImageInfo', [
    mojo.internal.StructField('alphaType', 0, 0, AlphaTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('width', 4, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('height', 8, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('colorTransferFunction', 16, 0, mojo.internal.Array(mojo.internal.Float, false), null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('colorToXyzMatrix', 24, 0, mojo.internal.Array(mojo.internal.Float, false), null, true /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
