|
|
|
@ -149,11 +149,11 @@ public class ImageSaver implements Runnable {
|
|
|
|
|
try {
|
|
|
|
|
byteBuffer = ByteBuffer.allocateDirect(mImage.getWidth() * mImage.getHeight() * 2 + 81768);
|
|
|
|
|
baos = new ByteBufferOutputStream(byteBuffer);
|
|
|
|
|
Log.d(TAG, "Before Saving DNG");
|
|
|
|
|
Log.d(TAG, "Before Saving DNG Exp=" + t.toString());
|
|
|
|
|
dngCreator.writeImage(baos, mImage);
|
|
|
|
|
byteBuffer.limit(byteBuffer.position());
|
|
|
|
|
byteBuffer.flip();
|
|
|
|
|
Log.d(TAG, "After Saving DNG pos=" + byteBuffer.position());
|
|
|
|
|
Log.d(TAG, "After Saving DNG Exp=" + t.toString() + " size=" + byteBuffer.position());
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
FileOutputStream output = null;
|
|
|
|
@ -176,7 +176,7 @@ public class ImageSaver implements Runnable {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Log.i("HDR", "Start Hardware Decode");
|
|
|
|
|
Log.i("HDR", "Start Hardware Decoding Exp=" + t.toString());
|
|
|
|
|
ImageDecoder imageDecoder = null;
|
|
|
|
|
Bitmap bmp = null;
|
|
|
|
|
// ImageDecoder.Source source = ImageDecoder.createSource(mFile);
|
|
|
|
@ -187,7 +187,7 @@ public class ImageSaver implements Runnable {
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
Log.i("HDR", "End Hardware Decode");
|
|
|
|
|
Log.i("HDR", "End Hardware Decoding Exp=" + t.toString());
|
|
|
|
|
|
|
|
|
|
byteBuffer = null;
|
|
|
|
|
mImagePair.addImage(bmp, 0, t.longValue());
|
|
|
|
|