forked from amkovkov/GranuSightSoftware2
Add GSS2.FrameDecoders project for image decoding realizations Add IFrameDecoder interface and FrameDecoderHelper class Add CameraService.CaptureImage method
18 lines
515 B
C#
18 lines
515 B
C#
using LibCameraSharp;
|
|
|
|
using OpenCvSharp;
|
|
|
|
namespace GSS2.FrameDecoders;
|
|
|
|
public interface IFrameDecoder
|
|
{
|
|
public uint Fourcc { get; }
|
|
public ulong Modifier { get; }
|
|
public ColorSpace.PrimariesEnum PrimariesEnum { get; }
|
|
public ColorSpace.TransferFunctionEnum TransferFunctionEnum { get; }
|
|
public ColorSpace.YcbcrEncodingEnum YcbcrEncodingEnum { get; }
|
|
public ColorSpace.RangeEnum RangeEnum { get; }
|
|
|
|
public Mat Decode(int width, int height, int stride, List<Memory<byte>> planes);
|
|
}
|