use of android.graphics.ImageFormat in project PhotoNoter by yydcdut.
the class CameraServicePresenterImpl method add2DB.
@Override
public void add2DB(String fileName, int size, String cameraId, long time, int categoryId, boolean isMirror, int ratio, int orientation, String latitude, String longitude, int whiteBalance, int flash, int imageLength, int imageWidth, String make, String model, int imageFormat) {
SandExif sandExif = new SandExif(orientation, latitude, longitude, whiteBalance, flash, imageLength, imageWidth, make, model);
SandPhoto sandPhoto = new SandPhoto(SandPhoto.ID_NULL, time, cameraId, categoryId, isMirror, ratio, fileName, size, imageFormat, sandExif);
mRxSandBox.saveOne(sandPhoto).subscribe(sandPhoto1 -> {
synchronized (mObject) {
long id = sandPhoto1.getId();
sandPhoto.setId(id);
mQueue.offer(sandPhoto);
mObject.notifyAll();
}
}, (throwable -> YLog.e(throwable)));
}
Aggregations