|
|
|
@ -275,6 +275,8 @@ public class RawActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
|
|
private boolean mFrontCamera = false;
|
|
|
|
|
|
|
|
|
|
private String mCameraTmpPath = null;
|
|
|
|
|
|
|
|
|
|
private int mBurstCaptures = 1;
|
|
|
|
|
private List<String> mPathsOfCapture = new ArrayList<>();
|
|
|
|
|
private Set<Integer> mRequestIds = new HashSet<>();
|
|
|
|
@ -542,9 +544,9 @@ public class RawActivity extends AppCompatActivity {
|
|
|
|
|
String currentDateTime = generateTimestamp();
|
|
|
|
|
int requestId = (int) request.getTag();
|
|
|
|
|
|
|
|
|
|
File rawFile = new File(Environment.
|
|
|
|
|
getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM),
|
|
|
|
|
"RAW_" + currentDateTime + "_" + requestId + ".dng");
|
|
|
|
|
File rawFile = new File(TextUtils.isEmpty(mCameraTmpPath) ? Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) : new File(mCameraTmpPath),
|
|
|
|
|
"RAW_" + currentDateTime + "_" + requestId + ".dng");
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
File jpegFile = new File(Environment.
|
|
|
|
|
getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM),
|
|
|
|
@ -681,6 +683,7 @@ public class RawActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
|
|
mCameraId = Integer.toString(intent.getIntExtra("cameraId", 0));
|
|
|
|
|
mOrientation = intent.getIntExtra("orientation", -1);
|
|
|
|
|
mCameraTmpPath = intent.getStringExtra("cameraTmpPath");
|
|
|
|
|
|
|
|
|
|
int width = intent.getIntExtra("width", MAX_PREVIEW_WIDTH);
|
|
|
|
|
int height = intent.getIntExtra("height", MAX_PREVIEW_HEIGHT);
|
|
|
|
|