2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 namespace Tizen.Multimedia
22 /// Represents a configuration of <see cref="PersonAppearanceDetector"/> instances.
24 public class PersonAppearanceDetectionConfiguration : SurveillanceEngineConfiguration
26 private const string KeySkipFramesCount = "MV_SURVEILLANCE_SKIP_FRAMES_COUNT";
29 /// A read-only field that represents the default value of <see cref="SkipFramesCount"/>.
31 public static readonly int DefaultSkipFramesCount = 0;
34 /// Initializes a new instance of the <see cref="PersonAppearanceDetectionConfiguration"/> class.
36 /// <exception cref="NotSupportedException">The feature is not supported.</exception>
37 public PersonAppearanceDetectionConfiguration()
42 /// Gets or sets how many frames will be skipped during push source.\n
45 /// The value to specify the number of <see cref="MediaVisionSource"/> calls will be ignored by subscription
46 /// of the event trigger.\n
48 /// The default is 0. It means that no frames will be skipped and all <see cref="MediaVisionSource"/> will
51 /// <exception cref="ObjectDisposedException">The <see cref="PersonAppearanceDetectionConfiguration"/> already has been disposed of.</exception>
52 /// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> is less than zero.</exception>
53 /// <seealso cref="SurveillanceSource.Push(MediaVisionSource)"/>
54 public int SkipFramesCount
58 return GetInt(KeySkipFramesCount);
64 throw new ArgumentOutOfRangeException(nameof(SkipFramesCount), value,
65 $"{nameof(SkipFramesCount)} can't be less than zero.");
67 Set(KeySkipFramesCount, value);