forked from mtysgithub/Qualcomm.Vuforia.UnityExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImage.cs
37 lines (26 loc) · 725 Bytes
/
Image.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
28
29
30
31
32
33
34
35
36
using System;
using UnityEngine;
public abstract class Image
{
protected Image()
{
}
public abstract void CopyToTexture(Texture2D texture2D);
public abstract bool IsValid();
public abstract int BufferHeight { get; set; }
public abstract int BufferWidth { get; set; }
public abstract int Height { get; set; }
public abstract PIXEL_FORMAT PixelFormat { get; set; }
public abstract byte[] Pixels { get; set; }
public abstract int Stride { get; set; }
public abstract int Width { get; set; }
public enum PIXEL_FORMAT
{
GRAYSCALE = 4,
RGB565 = 1,
RGB888 = 2,
RGBA8888 = 0x10,
UNKNOWN_FORMAT = 0,
YUV = 8
}
}