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:
2025-12-18 09:26:00 +03:00
parent 650fd03bfe
commit 4de442f51f
6 changed files with 208 additions and 7 deletions
+17
View File
@@ -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);
}