| // gpu/ipc/common/vulkan_ycbcr_info.mojom.m.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| import {mojo} from '../../../mojo/public/js/bindings.js'; |
| |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const VulkanYCbCrInfoSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| VulkanYCbCrInfoSpec.$, |
| 'VulkanYCbCrInfo', |
| [ |
| mojo.internal.StructField( |
| 'imageFormat', 0, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'externalFormat', 8, |
| 0, |
| mojo.internal.Uint64, |
| BigInt(0), |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'suggestedYcbcrModel', 4, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'suggestedYcbcrRange', 16, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'suggestedXchromaOffset', 20, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'suggestedYchromaOffset', 24, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'formatFeatures', 28, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| ], |
| [[0, 40],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class VulkanYCbCrInfo { |
| constructor() { |
| /** @type { !number } */ |
| this.imageFormat; |
| /** @type { !number } */ |
| this.suggestedYcbcrModel; |
| /** @type { !bigint } */ |
| this.externalFormat; |
| /** @type { !number } */ |
| this.suggestedYcbcrRange; |
| /** @type { !number } */ |
| this.suggestedXchromaOffset; |
| /** @type { !number } */ |
| this.suggestedYchromaOffset; |
| /** @type { !number } */ |
| this.formatFeatures; |
| } |
| } |
| |