C# Class JpegEncoder, com.unity.simulation.capture

Afficher le fichier Open project: needle-mirror/com.unity.simulation.capture Class Usage Examples

Méthodes publiques

Méthode Description
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[]

Private Methods

Méthode Description
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,

Method Details

Decode() public static méthode

public static Decode ( Array, jpg, int &width, int &height ) : byte[]
jpg Array,
width int
height int
Résultat byte[]

Encode() public static méthode

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,
Résultat byte[]