|
@@ -42,16 +42,24 @@ package hl;
|
|
class Format {
|
|
class Format {
|
|
|
|
|
|
/**
|
|
/**
|
|
- Decode JPG data into the target buffer.
|
|
|
|
|
|
+ Decode JPG data into the target buffer.
|
|
**/
|
|
**/
|
|
@:hlNative("fmt","jpg_decode")
|
|
@:hlNative("fmt","jpg_decode")
|
|
public static function decodeJPG( src : hl.types.Bytes, srcLen : Int, dst : hl.types.Bytes, width : Int, height : Int, stride : Int, format : PixelFormat, flags : Int ) : Bool {
|
|
public static function decodeJPG( src : hl.types.Bytes, srcLen : Int, dst : hl.types.Bytes, width : Int, height : Int, stride : Int, format : PixelFormat, flags : Int ) : Bool {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ Decode PNG data into the target buffer.
|
|
|
|
+ **/
|
|
|
|
+ @:hlNative("fmt","png_decode")
|
|
|
|
+ public static function decodePNG( src : hl.types.Bytes, srcLen : Int, dst : hl.types.Bytes, width : Int, height : Int, stride : Int, format : PixelFormat, flags : Int ) : Bool {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Upscale/downscale an image.
|
|
Upscale/downscale an image.
|
|
- Currently supported flag bits: 1 = bilinear filtering
|
|
|
|
|
|
+ Currently supported flag bits: 1 = bilinear filtering
|
|
**/
|
|
**/
|
|
@:hlNative("fmt","img_scale")
|
|
@:hlNative("fmt","img_scale")
|
|
public static function scaleImage( out : hl.types.Bytes, outPos : Int, outStride : Int, outWidth : Int, outHeight : Int, _in : hl.types.Bytes, inPos : Int, inStride : Int, inWidth : Int, inHeight : Int, flags : Int ) {
|
|
public static function scaleImage( out : hl.types.Bytes, outPos : Int, outStride : Int, outWidth : Int, outHeight : Int, _in : hl.types.Bytes, inPos : Int, inStride : Int, inWidth : Int, inHeight : Int, flags : Int ) {
|