.class public Lcom/jpegkit/Jpeg; .super Ljava/lang/Object; .source "Jpeg.java" # interfaces .implements Landroid/os/Parcelable; # static fields .field public static final CREATOR:Landroid/os/Parcelable$Creator; .annotation system Ldalvik/annotation/Signature; value = { "Landroid/os/Parcelable$Creator<", "Lcom/jpegkit/Jpeg;", ">;" } .end annotation .end field .field public static final e:Ljava/lang/Object; # instance fields .field public d:Ljava/nio/ByteBuffer; # direct methods .method public static constructor ()V .locals 1 new-instance v0, Ljava/lang/Object; invoke-direct {v0}, Ljava/lang/Object;->()V sput-object v0, Lcom/jpegkit/Jpeg;->e:Ljava/lang/Object; const-string v0, "jpegkit" invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V new-instance v0, Lcom/jpegkit/Jpeg$a; invoke-direct {v0}, Lcom/jpegkit/Jpeg$a;->()V sput-object v0, Lcom/jpegkit/Jpeg;->CREATOR:Landroid/os/Parcelable$Creator; return-void .end method .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public constructor ([B)V .locals 0 .param p1 # [B .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-direct {p0}, Ljava/lang/Object;->()V invoke-virtual {p0, p1}, Lcom/jpegkit/Jpeg;->a([B)V return-void .end method .method private native jniCrop(Ljava/nio/ByteBuffer;IIII)V .end method .method private native jniFlipHorizontal(Ljava/nio/ByteBuffer;)V .end method .method private native jniFlipVertical(Ljava/nio/ByteBuffer;)V .end method .method private native jniGetHeight(Ljava/nio/ByteBuffer;)I .end method .method private native jniGetJpegBytes(Ljava/nio/ByteBuffer;)[B .end method .method private native jniGetJpegSize(Ljava/nio/ByteBuffer;)J .end method .method private native jniGetWidth(Ljava/nio/ByteBuffer;)I .end method .method private native jniMount([B)Ljava/nio/ByteBuffer; .end method .method private native jniRelease(Ljava/nio/ByteBuffer;)V .end method .method private native jniRotate(Ljava/nio/ByteBuffer;I)V .end method # virtual methods .method public a(I)V .locals 2 sget-object v0, Lcom/jpegkit/Jpeg;->e:Ljava/lang/Object; monitor-enter v0 :try_start_0 iget-object v1, p0, Lcom/jpegkit/Jpeg;->d:Ljava/nio/ByteBuffer; invoke-direct {p0, v1, p1}, Lcom/jpegkit/Jpeg;->jniRotate(Ljava/nio/ByteBuffer;I)V monitor-exit v0 return-void :catchall_0 move-exception p1 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw p1 .end method .method public a([B)V .locals 1 sget-object v0, Lcom/jpegkit/Jpeg;->e:Ljava/lang/Object; monitor-enter v0 :try_start_0 invoke-direct {p0, p1}, Lcom/jpegkit/Jpeg;->jniMount([B)Ljava/nio/ByteBuffer; move-result-object p1 iput-object p1, p0, Lcom/jpegkit/Jpeg;->d:Ljava/nio/ByteBuffer; monitor-exit v0 return-void :catchall_0 move-exception p1 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw p1 .end method .method public describeContents()I .locals 1 const/4 v0, 0x0 return v0 .end method .method public n()[B .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation sget-object v0, Lcom/jpegkit/Jpeg;->e:Ljava/lang/Object; monitor-enter v0 :try_start_0 iget-object v1, p0, Lcom/jpegkit/Jpeg;->d:Ljava/nio/ByteBuffer; invoke-direct {p0, v1}, Lcom/jpegkit/Jpeg;->jniGetJpegBytes(Ljava/nio/ByteBuffer;)[B move-result-object v1 monitor-exit v0 return-object v1 :catchall_0 move-exception v1 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw v1 .end method .method public o()V .locals 2 sget-object v0, Lcom/jpegkit/Jpeg;->e:Ljava/lang/Object; monitor-enter v0 :try_start_0 iget-object v1, p0, Lcom/jpegkit/Jpeg;->d:Ljava/nio/ByteBuffer; invoke-direct {p0, v1}, Lcom/jpegkit/Jpeg;->jniRelease(Ljava/nio/ByteBuffer;)V monitor-exit v0 return-void :catchall_0 move-exception v1 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw v1 .end method .method public writeToParcel(Landroid/os/Parcel;I)V .locals 1 invoke-virtual {p0}, Lcom/jpegkit/Jpeg;->n()[B move-result-object p2 array-length v0, p2 invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeInt(I)V invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeByteArray([B)V return-void .end method