// Copyright © 2020 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp.DevTools.SystemInfo { /// /// Describes a supported image decoding profile with its associated minimum and /// maximum resolutions and subsampling. /// [System.Runtime.Serialization.DataContractAttribute] public class ImageDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Image coded, e.g. Jpeg. /// public CefSharp.DevTools.SystemInfo.ImageType ImageType { get { return (CefSharp.DevTools.SystemInfo.ImageType)(StringToEnum(typeof(CefSharp.DevTools.SystemInfo.ImageType), imageType)); } set { imageType = (EnumToString(value)); } } /// /// Image coded, e.g. Jpeg. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("imageType"), IsRequired = (true))] internal string imageType { get; set; } /// /// Maximum supported dimensions of the image in pixels. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxDimensions"), IsRequired = (true))] public CefSharp.DevTools.SystemInfo.Size MaxDimensions { get; set; } /// /// Minimum supported dimensions of the image in pixels. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("minDimensions"), IsRequired = (true))] public CefSharp.DevTools.SystemInfo.Size MinDimensions { get; set; } /// /// Optional array of supported subsampling formats, e.g. 4:2:0, if known. /// public CefSharp.DevTools.SystemInfo.SubsamplingFormat[] Subsamplings { get { return (CefSharp.DevTools.SystemInfo.SubsamplingFormat[])(StringToEnum(typeof(CefSharp.DevTools.SystemInfo.SubsamplingFormat[]), subsamplings)); } set { subsamplings = (EnumToString(value)); } } /// /// Optional array of supported subsampling formats, e.g. 4:2:0, if known. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("subsamplings"), IsRequired = (true))] internal string subsamplings { get; set; } } }