/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the rekognition-2016-06-27.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Rekognition.Model { /// /// Information about a video that Amazon Rekognition analyzed. Videometadata /// is returned in every page of paginated responses from a Amazon Rekognition video operation. /// public partial class VideoMetadata { private string _codec; private VideoColorRange _colorRange; private long? _durationMillis; private string _format; private long? _frameHeight; private float? _frameRate; private long? _frameWidth; /// /// Gets and sets the property Codec. /// /// Type of compression used in the analyzed video. /// /// public string Codec { get { return this._codec; } set { this._codec = value; } } // Check to see if Codec property is set internal bool IsSetCodec() { return this._codec != null; } /// /// Gets and sets the property ColorRange. /// /// A description of the range of luminance values in a video, either LIMITED (16 to /// 235) or FULL (0 to 255). /// /// public VideoColorRange ColorRange { get { return this._colorRange; } set { this._colorRange = value; } } // Check to see if ColorRange property is set internal bool IsSetColorRange() { return this._colorRange != null; } /// /// Gets and sets the property DurationMillis. /// /// Length of the video in milliseconds. /// /// [AWSProperty(Min=0)] public long DurationMillis { get { return this._durationMillis.GetValueOrDefault(); } set { this._durationMillis = value; } } // Check to see if DurationMillis property is set internal bool IsSetDurationMillis() { return this._durationMillis.HasValue; } /// /// Gets and sets the property Format. /// /// Format of the analyzed video. Possible values are MP4, MOV and AVI. /// /// public string Format { get { return this._format; } set { this._format = value; } } // Check to see if Format property is set internal bool IsSetFormat() { return this._format != null; } /// /// Gets and sets the property FrameHeight. /// /// Vertical pixel dimension of the video. /// /// [AWSProperty(Min=0)] public long FrameHeight { get { return this._frameHeight.GetValueOrDefault(); } set { this._frameHeight = value; } } // Check to see if FrameHeight property is set internal bool IsSetFrameHeight() { return this._frameHeight.HasValue; } /// /// Gets and sets the property FrameRate. /// /// Number of frames per second in the video. /// /// public float FrameRate { get { return this._frameRate.GetValueOrDefault(); } set { this._frameRate = value; } } // Check to see if FrameRate property is set internal bool IsSetFrameRate() { return this._frameRate.HasValue; } /// /// Gets and sets the property FrameWidth. /// /// Horizontal pixel dimension of the video. /// /// [AWSProperty(Min=0)] public long FrameWidth { get { return this._frameWidth.GetValueOrDefault(); } set { this._frameWidth = value; } } // Check to see if FrameWidth property is set internal bool IsSetFrameWidth() { return this._frameWidth.HasValue; } } }