Skip to content

Commit

Permalink
Add missing JNI method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jun 16, 2023
1 parent 08d8cc2 commit a9478d8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ij_kotlin_name_count_to_use_star_import = 0

[*.java]
max_line_length = 140
indent_size = 4
ij_continuation_indent_size = 8
indent_size = 2
ij_continuation_indent_size = 4
ij_java_names_count_to_use_import_on_demand = 999
ij_java_class_count_to_use_import_on_demand = 999
ij_java_spaces_around_equality_operators = true
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,14 @@ public void setReduceMemoryUsage( boolean aLowMemory ) {
setLowMemory( fPointer, aLowMemory ? 1 : 0 );
}

public boolean getUseSharpYUV() {
return getUseSharpYUV( fPointer ) != 0;
}

public void setUseSharpYUV( boolean aUseSharpYUV ) {
setUseSharpYUV( fPointer, aUseSharpYUV ? 1 : 0 );
}

private static native float getQuality( long aPointer );

private static native void setQuality( long aPointer, float aQuality );
Expand Down Expand Up @@ -307,4 +315,8 @@ public void setReduceMemoryUsage( boolean aLowMemory ) {
private static native int getLowMemory( long aPointer );

private static native void setLowMemory( long aPointer, int aLowMemory );

private static native int getUseSharpYUV( long aPointer );

private static native void setUseSharpYUV( long aPointer, int aUseSharpYUV );
}
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,13 @@ public void setPreprocessing(int aPreprocessing) {
fOptions.setPreprocessing(aPreprocessing);
}

public void setUseSharpYUV(boolean aUseSharpYUV) { fOptions.setUseSharpYUV(aUseSharpYUV); }
public void setUseSharpYUV(boolean aUseSharpYUV) {
fOptions.setUseSharpYUV(aUseSharpYUV);
}

public boolean getUseSharpYUV() { return fOptions.getUseSharpYUV(); }
public boolean getUseSharpYUV() {
return fOptions.getUseSharpYUV();
}

WebPEncoderOptions getEncoderOptions() {
return fOptions;
Expand Down

0 comments on commit a9478d8

Please sign in to comment.