package com.metaio.sdk.jni;

import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import java.nio.Buffer;

public class ImageStruct
{
  protected boolean swigCMemOwn;
  private long swigCPtr;

  public ImageStruct()
  {
    this(MetaioSDKJNI.new_ImageStruct__SWIG_0(), true);
  }

  public ImageStruct(long paramLong, boolean paramBoolean)
  {
    this.swigCMemOwn = paramBoolean;
    this.swigCPtr = paramLong;
  }

  public ImageStruct(ImageStruct paramImageStruct)
  {
    this(MetaioSDKJNI.new_ImageStruct__SWIG_3(getCPtr(paramImageStruct), paramImageStruct), true);
  }

  public ImageStruct(byte[] paramArrayOfByte, int paramInt1, int paramInt2, ECOLOR_FORMAT paramECOLOR_FORMAT, boolean paramBoolean, double paramDouble)
  {
    this(MetaioSDKJNI.new_ImageStruct__SWIG_2(paramArrayOfByte, paramInt1, paramInt2, paramECOLOR_FORMAT.swigValue(), paramBoolean, paramDouble), true);
  }

  public ImageStruct(byte[] paramArrayOfByte, int paramInt1, int paramInt2, ECOLOR_FORMAT paramECOLOR_FORMAT, boolean paramBoolean, double paramDouble, SWIGTYPE_p_void paramSWIGTYPE_p_void, int paramInt3)
  {
    this(MetaioSDKJNI.new_ImageStruct__SWIG_1(paramArrayOfByte, paramInt1, paramInt2, paramECOLOR_FORMAT.swigValue(), paramBoolean, paramDouble, SWIGTYPE_p_void.getCPtr(paramSWIGTYPE_p_void), paramInt3), true);
  }

  public static long getCPtr(ImageStruct paramImageStruct)
  {
    if (paramImageStruct == null)
      return 0L;
    return paramImageStruct.swigCPtr;
  }

  public ByteBuffer compress()
  {
    long l = MetaioSDKJNI.ImageStruct_compress__SWIG_1(this.swigCPtr, this);
    if (l == 0L)
      return null;
    return new ByteBuffer(l, false);
  }

  public ByteBuffer compress(long paramLong)
  {
    long l = MetaioSDKJNI.ImageStruct_compress__SWIG_0(this.swigCPtr, this, paramLong);
    if (l == 0L)
      return null;
    return new ByteBuffer(l, false);
  }

  public void copyBufferToNioBuffer(Buffer paramBuffer)
  {
    long l = getBufferSize();
    if (l > paramBuffer.capacity())
      throw new IndexOutOfBoundsException("Destination buffer not large enough for copying " + l + " bytes");
    writeToNioBuffer(paramBuffer);
  }

  public void delete()
  {
    try
    {
      if (this.swigCPtr != 0L)
      {
        if (this.swigCMemOwn)
        {
          this.swigCMemOwn = false;
          MetaioSDKJNI.delete_ImageStruct(this.swigCPtr);
        }
        this.swigCPtr = 0L;
      }
      return;
    }
    finally
    {
    }
  }

  protected void finalize()
  {
    delete();
  }

  public Bitmap getBitmap()
  {
    return getBitmap(null);
  }

  public Bitmap getBitmap(Bitmap.Config paramConfig)
  {
    ByteBuffer localByteBuffer = compress(100L);
    Bitmap localBitmap = null;
    if (localByteBuffer != null)
    {
      BitmapFactory.Options localOptions = new BitmapFactory.Options();
      localOptions.inPreferredConfig = paramConfig;
      localBitmap = BitmapFactory.decodeByteArray(localByteBuffer.getBuffer(), 0, localByteBuffer.getLength(), localOptions);
      localByteBuffer.release();
      localByteBuffer.delete();
    }
    return localBitmap;
  }

  public byte[] getBuffer()
  {
    return MetaioSDKJNI.ImageStruct_getBuffer(this.swigCPtr, this);
  }

  public long getBufferSize()
  {
    return MetaioSDKJNI.ImageStruct_getBufferSize(this.swigCPtr, this);
  }

  public ECOLOR_FORMAT getColorFormat()
  {
    return ECOLOR_FORMAT.swigToEnum(MetaioSDKJNI.ImageStruct_colorFormat_get(this.swigCPtr, this));
  }

  public boolean getHasRegionOfInterest()
  {
    return MetaioSDKJNI.ImageStruct_hasRegionOfInterest_get(this.swigCPtr, this);
  }

  public int getHeight()
  {
    return MetaioSDKJNI.ImageStruct_height_get(this.swigCPtr, this);
  }

  public boolean getOriginIsUpperLeft()
  {
    return MetaioSDKJNI.ImageStruct_originIsUpperLeft_get(this.swigCPtr, this);
  }

  public long getPlanePaddingOffset()
  {
    return MetaioSDKJNI.ImageStruct_planePaddingOffset_get(this.swigCPtr, this);
  }

  public int getRoiLeft()
  {
    return MetaioSDKJNI.ImageStruct_roiLeft_get(this.swigCPtr, this);
  }

  public int getRoiLower()
  {
    return MetaioSDKJNI.ImageStruct_roiLower_get(this.swigCPtr, this);
  }

  public int getRoiRight()
  {
    return MetaioSDKJNI.ImageStruct_roiRight_get(this.swigCPtr, this);
  }

  public int getRoiUpper()
  {
    return MetaioSDKJNI.ImageStruct_roiUpper_get(this.swigCPtr, this);
  }

  public int getStride()
  {
    return MetaioSDKJNI.ImageStruct_stride_get(this.swigCPtr, this);
  }

  public double getTimestamp()
  {
    return MetaioSDKJNI.ImageStruct_timestamp_get(this.swigCPtr, this);
  }

  public int getWidth()
  {
    return MetaioSDKJNI.ImageStruct_width_get(this.swigCPtr, this);
  }

  public void release()
  {
    MetaioSDKJNI.ImageStruct_release(this.swigCPtr, this);
  }

  public void setColorFormat(ECOLOR_FORMAT paramECOLOR_FORMAT)
  {
    MetaioSDKJNI.ImageStruct_colorFormat_set(this.swigCPtr, this, paramECOLOR_FORMAT.swigValue());
  }

  public void setHasRegionOfInterest(boolean paramBoolean)
  {
    MetaioSDKJNI.ImageStruct_hasRegionOfInterest_set(this.swigCPtr, this, paramBoolean);
  }

  public void setHeight(int paramInt)
  {
    MetaioSDKJNI.ImageStruct_height_set(this.swigCPtr, this, paramInt);
  }

  public void setOriginIsUpperLeft(boolean paramBoolean)
  {
    MetaioSDKJNI.ImageStruct_originIsUpperLeft_set(this.swigCPtr, this, paramBoolean);
  }

  public void setPlanePaddingOffset(long paramLong)
  {
    MetaioSDKJNI.ImageStruct_planePaddingOffset_set(this.swigCPtr, this, paramLong);
  }

  public void setRegionOfInterest(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    MetaioSDKJNI.ImageStruct_setRegionOfInterest(this.swigCPtr, this, paramInt1, paramInt2, paramInt3, paramInt4);
  }

  public void setRoiLeft(int paramInt)
  {
    MetaioSDKJNI.ImageStruct_roiLeft_set(this.swigCPtr, this, paramInt);
  }

  public void setRoiLower(int paramInt)
  {
    MetaioSDKJNI.ImageStruct_roiLower_set(this.swigCPtr, this, paramInt);
  }

  public void setRoiRight(int paramInt)
  {
    MetaioSDKJNI.ImageStruct_roiRight_set(this.swigCPtr, this, paramInt);
  }

  public void setRoiUpper(int paramInt)
  {
    MetaioSDKJNI.ImageStruct_roiUpper_set(this.swigCPtr, this, paramInt);
  }

  public void setStride(int paramInt)
  {
    MetaioSDKJNI.ImageStruct_stride_set(this.swigCPtr, this, paramInt);
  }

  public void setTimestamp(double paramDouble)
  {
    MetaioSDKJNI.ImageStruct_timestamp_set(this.swigCPtr, this, paramDouble);
  }

  public void setWidth(int paramInt)
  {
    MetaioSDKJNI.ImageStruct_width_set(this.swigCPtr, this, paramInt);
  }

  public String toString()
  {
    return MetaioSDKJNI.ImageStruct_toString(this.swigCPtr, this);
  }

  protected void writeToNioBuffer(Object paramObject)
  {
    MetaioSDKJNI.ImageStruct_writeToNioBuffer(this.swigCPtr, this, paramObject);
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.metaio.sdk.jni.ImageStruct
 * JD-Core Version:    0.6.2
 */