-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathIEncoder.cs
27 lines (24 loc) · 851 Bytes
/
IEncoder.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace MBaske.Sensors.Grid
{
/// <summary>
/// Interface for encoders.
/// An encoder is responsible for writing <see cref="DetectionResult"/> contents
/// to the <see cref="Grid.GridBuffer"/> which is used by the <see cref="GridSensor"/>.
/// </summary>
public interface IEncoder
{
/// <summary>
/// <see cref="IEncodingSettings"/> to use for encoding.
/// </summary>
IEncodingSettings Settings { get; set; }
/// <summary>
/// The <see cref="Grid.GridBuffer"/> to write to.
/// </summary>
GridBuffer GridBuffer { set; }
/// <summary>
/// Encodes a <see cref="DetectionResult"/>.
/// </summary>
/// <param name="result"><see cref="DetectionResult"/> to encode</param>
void Encode(DetectionResult result);
}
}