These are the bindings for the HL fmt.hdll library, which contains various low level formats handling.

Static methods

@:hlNative("fmt","dxt_decode")staticdecodeDXT(src:Bytes, dst:Bytes, width:Int, height:Int, dxtFormat:Int):Bool

Decode any image data into ARGB pixels

@:hlNative("fmt","jpg_decode")staticdecodeJPG(src:Bytes, srcLen:Int, dst:Bytes, width:Int, height:Int, stride:Int, format:PixelFormat, flags:Int):Bool

Decode JPG data into the target buffer.

@:hlNative("fmt","png_decode")staticdecodePNG(src:Bytes, srcLen:Int, dst:Bytes, width:Int, height:Int, stride:Int, format:PixelFormat, flags:Int):Bool

Decode PNG data into the target buffer.

@:hlNative("fmt","digest")staticdigest(out:Bytes, src:Bytes, srcLen:Int, algorithm:Int):Void

Performs a cryptographic digest of some bytes. 0 = Md5 , 1 = Sha1 , 2 = Crc32, 3 = Adler32 Set 256 flag to tell the src are String bytes.

@:hlNative("fmt","img_scale")staticscaleImage(out:Bytes, outPos:Int, outStride:Int, outWidth:Int, outHeight:Int, _in:Bytes, inPos:Int, inStride:Int, inWidth:Int, inHeight:Int, flags:Int):Void

Upscale/downscale an image. Currently supported flag bits: 1 = bilinear filtering