C# 클래스 JpegEncoder, com.unity.simulation.capture

파일 보기 프로젝트 열기: needle-mirror/com.unity.simulation.capture 1 사용 예제들

공개 메소드들

메소드 설명
Decode ( Array, jpg, int &width, int &height ) : byte[]
Encode ( Array, raw, int width, int height, int pixelSize, GraphicsFormat textureFormat, int quality = 75, Flags, flags = Flags.TJ_BOTTOMUP ) : byte[]

비공개 메소드들

메소드 설명
GetPixelFormat ( int pixelSize, GraphicsFormat format, Flags, &flags ) : PixelFormat,
tjCompress ( IntPtr, handle, Array, srcBuf, int width, int pitch, int height, int pixelSize, Array, dstBuf, int &compressedSize, int jpegSubsamp, int jpegQual, int flags ) : int
tjCompress2 ( IntPtr, handle, Array, srcBuf, int width, int pitch, int height, int pixelFormat, Array, dstBuf, int &compressedSize, int jpegSubsamp, int jpegQual, int flags ) : int
tjDecompress2 ( IntPtr, handle, Array, jpegBuf, int jpegSize, Array, dstBuf, int width, int pitch, int height, int pixelFormat, int flags ) : int
tjDecompressHeader3 ( IntPtr, handle, Array, jpegBuf, int jpegSize, int &width, int &height, int &jpegSubsamp, int &jpegColorspace ) : int
tjDestroy ( IntPtr, handle ) : int
tjInitCompress ( ) : IntPtr,
tjInitDecompress ( ) : IntPtr,

메소드 상세

Decode() 공개 정적인 메소드

public static Decode ( Array, jpg, int &width, int &height ) : byte[]
jpg Array,
width int
height int
리턴 byte[]

Encode() 공개 정적인 메소드

public static Encode ( Array, raw, int width, int height, int pixelSize, GraphicsFormat textureFormat, int quality = 75, Flags, flags = Flags.TJ_BOTTOMUP ) : byte[]
raw Array,
width int
height int
pixelSize int
textureFormat GraphicsFormat
quality int
flags Flags,
리턴 byte[]