forked from amkovkov/GranuSightSoftware2
feat: CameraService camera image capture
Add GSS2.FrameDecoders project for image decoding realizations Add IFrameDecoder interface and FrameDecoderHelper class Add CameraService.CaptureImage method
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user