Clean up compiler warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@546 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -197,7 +197,7 @@ public class TJExample {
|
|||||||
}
|
}
|
||||||
|
|
||||||
File file = new File(argv[0]);
|
File file = new File(argv[0]);
|
||||||
int width, height, subsamp = TJ.SAMP_444;
|
int width, height;
|
||||||
|
|
||||||
if(inFormat.equalsIgnoreCase("jpg")) {
|
if(inFormat.equalsIgnoreCase("jpg")) {
|
||||||
FileInputStream fis = new FileInputStream(file);
|
FileInputStream fis = new FileInputStream(file);
|
||||||
@@ -211,7 +211,6 @@ public class TJExample {
|
|||||||
fis.close();
|
fis.close();
|
||||||
|
|
||||||
TJDecompressor tjd;
|
TJDecompressor tjd;
|
||||||
TJ.ScalingFactor sf;
|
|
||||||
if(xform.op != TJTransform.OP_NONE || xform.options != 0) {
|
if(xform.op != TJTransform.OP_NONE || xform.options != 0) {
|
||||||
TJTransformer tjt = new TJTransformer(inputBuf);
|
TJTransformer tjt = new TJTransformer(inputBuf);
|
||||||
TJTransform t[] = new TJTransform[1];
|
TJTransform t[] = new TJTransform[1];
|
||||||
|
|||||||
@@ -704,7 +704,7 @@ public class TJUnitTest {
|
|||||||
String baseFilename) throws Exception {
|
String baseFilename) throws Exception {
|
||||||
TJCompressor tjc = null;
|
TJCompressor tjc = null;
|
||||||
TJDecompressor tjd = null;
|
TJDecompressor tjd = null;
|
||||||
int size, pfstart, pfend;
|
int size;
|
||||||
byte[] jpegBuf;
|
byte[] jpegBuf;
|
||||||
|
|
||||||
if(yuv == YUVENCODE) jpegBuf = new byte[TJ.bufSizeYUV(w, h, subsamp)];
|
if(yuv == YUVENCODE) jpegBuf = new byte[TJ.bufSizeYUV(w, h, subsamp)];
|
||||||
|
|||||||
Reference in New Issue
Block a user