Skip to content

Commit 6ba967b

Browse files
committed
Update license headers, string resources
1 parent 0e5a059 commit 6ba967b

File tree

4 files changed

+15
-38
lines changed

4 files changed

+15
-38
lines changed

app/src/main/java/com/googleresearch/capturesync/CameraController.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2019 The Google Research Authors.
1+
/*
2+
* Copyright 2021 Mobile Robotics Lab. at Skoltech.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -130,7 +130,7 @@ public CameraController(
130130
output -> {
131131
CaptureResult result = output.result;
132132
Object userTag = CaptureRequestTag.getUserTag(result);
133-
// MROB: We don't skip them cause every frame counts!!
133+
// We don't skip them because every frame counts when restoring video sequence
134134
// if (userTag != null && userTag.equals(PhaseAlignController.INJECT_FRAME)) {
135135
// Log.v(TAG, "Skipping phase align injection frame.");
136136
// output.close();
@@ -150,7 +150,6 @@ public CameraController(
150150

151151
long phaseNs = phaseAlignController.updateCaptureTimestamp(synchronizedTimestampNs);
152152
double phaseMs = TimeUtils.nanosToMillis((double) phaseNs);
153-
//
154153
// Log.v(
155154
// TAG,
156155
// String.format(

app/src/main/java/com/googleresearch/capturesync/CaptureRequestFactory.java

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2019 The Google Research Authors.
1+
/*
2+
* Copyright 2021 Mobile Robotics Lab. at Skoltech.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -87,7 +87,8 @@ public CaptureRequest.Builder makePreview(
8787
}
8888

8989
/**
90-
* Experimental MROB. Creates builder for video request
90+
* An alternative capture request for video,
91+
* includes everything from preview + mediaRecorder
9192
*/
9293
public CaptureRequest.Builder makeVideo(
9394
Surface recorderSurface,
@@ -103,29 +104,6 @@ public CaptureRequest.Builder makeVideo(
103104
builder.addTarget(recorderSurface);
104105
}
105106
return builder;
106-
/*
107-
CaptureRequest.Builder builder = device.createCaptureRequest(TEMPLATE_PREVIEW);
108-
// Manually set exposure and sensitivity using UI sliders on the leader.
109-
builder.set(CONTROL_AE_MODE, CONTROL_AE_MODE_OFF);
110-
builder.set(SENSOR_EXPOSURE_TIME, sensorExposureTimeNs);
111-
builder.set(SENSOR_SENSITIVITY, sensorSensitivity);
112-
113-
// Auto white balance used, these could be locked and sent from the leader instead.
114-
builder.set(CONTROL_AWB_MODE, CONTROL_AWB_MODE_AUTO);
115-
116-
// Auto focus is used since different devices may have different manual focus values.
117-
builder.set(CONTROL_AF_MODE, CONTROL_AF_MODE_CONTINUOUS_PICTURE);
118-
119-
if (viewfinderSurface != null) {
120-
builder.addTarget(viewfinderSurface);
121-
}
122-
List<Integer> targetIndices = new ArrayList<>();
123-
for (int i = 0; i < imageSurfaces.size(); i++) {
124-
builder.addTarget(imageSurfaces.get(i));
125-
targetIndices.add(i);
126-
}
127-
builder.setTag(new CaptureRequestTag(targetIndices, null));
128-
return builder;*/
129107
}
130108

131109

app/src/main/java/com/googleresearch/capturesync/MainActivity.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/*
2-
* Copyright 2019 The Google Research Authors.
3-
* <p>
2+
* Copyright 2021 Mobile Robotics Lab. at Skoltech.
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
* <p>
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
* <p>
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
1616

17+
1718
package com.googleresearch.capturesync;
1819

1920
import android.Manifest.permission;
@@ -90,7 +91,6 @@
9091
*/
9192
public class MainActivity extends Activity {
9293
private static final String TAG = "MainActivity";
93-
// private static final int EXP_LEN = 20_000;
9494
private static final int STATIC_LEN = 15_000;
9595
private String lastTimeStamp;
9696
private PeriodCalculator periodCalculator;

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<!-- Synchronized simplecamera2 app. [CHAR_LIMIT=80] -->
55
<string name="app_name">CaptureSync</string>
66
<!-- Request synchronized still. [CHAR_LIMIT=80] -->
7-
<string name="action_capture_still">Capture Still</string>
7+
<string name="action_capture_still">Record video</string>
88
<!-- Request phase alignment. [CHAR_LIMIT=80] -->
99
<string name="action_phase_align">Align Phases</string>
1010
<!-- Request send 2A values. [CHAR_LIMIT=80] -->
1111
<string name="action_send_2a">Align 2A</string>
1212

1313
<!-- Status text. [CHAR_LIMIT=80] -->
14-
<string name="status_text_uninitialized">SoftwareSync Demo App</string>
14+
<string name="status_text_uninitialized">RecSync Android</string>
1515
<!-- Status text for current phase. [CHAR_LIMIT=80] -->
1616
<string name="status_text_phase">Phase</string>
1717
<!-- Slider text for exposure. [CHAR_LIMIT=80] -->

0 commit comments

Comments
 (0)