/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.10
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package nz.mega.sdk;
public class MegaGfxProcessor {
private long swigCPtr;
protected boolean swigCMemOwn;
protected MegaGfxProcessor(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(MegaGfxProcessor obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
protected synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
megaJNI.delete_MegaGfxProcessor(swigCPtr);
}
swigCPtr = 0;
}
}
protected void swigDirectorDisconnect() {
swigCMemOwn = false;
delete();
}
public void swigReleaseOwnership() {
swigCMemOwn = false;
megaJNI.MegaGfxProcessor_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigCMemOwn = true;
megaJNI.MegaGfxProcessor_change_ownership(this, swigCPtr, true);
}
public boolean readBitmap(String path) {
return megaJNI.MegaGfxProcessor_readBitmap(swigCPtr, this, path);
}
public int getWidth() {
return megaJNI.MegaGfxProcessor_getWidth(swigCPtr, this);
}
public int getHeight() {
return megaJNI.MegaGfxProcessor_getHeight(swigCPtr, this);
}
public int getBitmapDataSize(int width, int height, int px, int py, int rw, int rh) {
return megaJNI.MegaGfxProcessor_getBitmapDataSize(swigCPtr, this, width, height, px, py, rw, rh);
}
public boolean getBitmapData(byte[] bitmapData) {
return megaJNI.MegaGfxProcessor_getBitmapData(swigCPtr, this, bitmapData);
}
public void freeBitmap() {
megaJNI.MegaGfxProcessor_freeBitmap(swigCPtr, this);
}
public MegaGfxProcessor() {
this(megaJNI.new_MegaGfxProcessor(), true);
megaJNI.MegaGfxProcessor_director_connect(this, swigCPtr, swigCMemOwn, true);
}
}