Add access methods for getting at the JPEG buffer
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@506 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -71,6 +71,16 @@ public class TJDecompressor {
|
|||||||
return jpegSubsamp;
|
return jpegSubsamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public byte[] getJPEGBuf() throws Exception {
|
||||||
|
if(jpegBuf == null) throw new Exception("JPEG buffer not initialized");
|
||||||
|
return jpegBuf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getJPEGSize() throws Exception {
|
||||||
|
if(jpegBufSize < 1) throw new Exception("JPEG buffer not initialized");
|
||||||
|
return jpegBufSize;
|
||||||
|
}
|
||||||
|
|
||||||
public int getScaledWidth(int desiredWidth, int desiredHeight)
|
public int getScaledWidth(int desiredWidth, int desiredHeight)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
if(jpegWidth < 1 || jpegHeight < 1)
|
if(jpegWidth < 1 || jpegHeight < 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user