Skip to content

Commit

Permalink
More documentation and better method/class modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
asimmon committed Aug 23, 2021
1 parent 210ca2d commit ba29b41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/Askaiser.Marionette/DriverOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public string FailureScreenshotPath
}

/// <summary>
/// Gets or sets how long previous screenshot bytes will be reused in subsequent searches. The cache will be evicted if the current monitor is changed.
/// It can be useful when searching for multiple elements at the same time, but it can also make the driver miss some frames.
/// Default value: 100 milliseconds.
/// </summary>
public TimeSpan ScreenshotCacheDuration
Expand All @@ -66,6 +68,7 @@ public TimeSpan ScreenshotCacheDuration
}

/// <summary>
/// When an element is not found and the driver is allowed to try again to find it, it will wait for this specific duration before retrying.
/// Default value: 50 milliseconds.
/// </summary>
public TimeSpan WaitForThrottlingInterval
Expand Down
6 changes: 3 additions & 3 deletions src/Askaiser.Marionette/MatExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

namespace Askaiser.Marionette
{
public static class MatExtensions
internal static class MatExtensions
{
internal static Mat ToGrayscale(this Mat mat)
public static Mat ToGrayscale(this Mat mat)
{
var channelCount = mat.Channels();

Expand All @@ -18,7 +18,7 @@ internal static Mat ToGrayscale(this Mat mat)
};
}

internal static Mat ToBGR(this Mat mat)
public static Mat ToBGR(this Mat mat)
{
var channelCount = mat.Channels();

Expand Down

0 comments on commit ba29b41

Please sign in to comment.