123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
-
- namespace NRKernal.Record
- {
- using System;
- using System.Collections.Generic;
- using UnityEngine;
-
- public sealed class PhotoCaptureFrame : IDisposable
- {
-
- private byte[] data;
-
-
-
- public PhotoCaptureFrame(CapturePixelFormat format, byte[] data)
- {
- this.data = data;
- this.pixelFormat = format;
- }
-
- ~PhotoCaptureFrame()
- {
- }
-
-
- public int dataLength { get; }
-
-
- public bool hasLocationData { get; }
-
-
- public CapturePixelFormat pixelFormat { get; }
-
-
- public void CopyRawImageDataIntoBuffer(List<byte> byteBuffer)
- {
- }
-
- public void Dispose()
- {
- }
-
-
-
- public IntPtr GetUnsafePointerToBuffer()
- {
- return IntPtr.Zero;
- }
-
-
-
- public bool TryGetCameraToWorldMatrix(out Matrix4x4 cameraToWorldMatrix)
- {
- cameraToWorldMatrix = Matrix4x4.identity;
- return true;
- }
-
-
-
- public bool TryGetProjectionMatrix(out Matrix4x4 projectionMatrix)
- {
- projectionMatrix = Matrix4x4.identity;
- return true;
- }
-
-
-
-
-
- public bool TryGetProjectionMatrix(float nearClipPlane, float farClipPlane, out Matrix4x4 projectionMatrix)
- {
- projectionMatrix = Matrix4x4.identity;
- return true;
- }
-
-
-
- public void UploadImageDataToTexture(Texture2D targetTexture)
- {
- if (data == null)
- {
- return;
- }
- ImageConversion.LoadImage(targetTexture, data);
- }
- }
- }
|