Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: media/base/android/java/src/org/chromium/media/VideoCaptureTango.java

Issue 656323004: Android Video Capture: Refactor VideoCapture class hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/android/java/src/org/chromium/media/VideoCaptureCamera.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
diff --git a/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java b/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
index c005b11a869d67602fc78b57aaf03e37f95ff87a..67d9ca55ea45bd8d1495b7a90030e32a3727ea20 100644
--- a/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
+++ b/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
@@ -20,9 +20,9 @@ import java.util.Arrays;
* |s_CAM_PARAMS|; all devices |id| are index 0 towards the parent VideoCapture.
**/
@SuppressWarnings("deprecation")
-public class VideoCaptureTango extends VideoCapture {
+public class VideoCaptureTango extends VideoCaptureCamera {
- static class CamParams {
+ private static class CamParams {
final int mId;
final String mName;
final int mWidth;
@@ -161,8 +161,8 @@ public class VideoCaptureTango extends VideoCapture {
// them explicitly since they're filled to 128 on creation.
ByteBuffer.wrap(data, startY, sizeY).get(mFrameBuffer.array(), 0, sizeY);
} else if (mTangoCameraId == FOURMP_CAMERA_ID) {
- int startY = SF_WIDTH * (SF_LINES_HEADER + SF_LINES_FISHEYE +
- SF_LINES_RESERVED + SF_LINES_DEPTH_PADDED);
+ int startY = SF_WIDTH * (SF_LINES_HEADER + SF_LINES_FISHEYE
+ + SF_LINES_RESERVED + SF_LINES_DEPTH_PADDED);
int sizeY = SF_WIDTH * SF_LINES_BIGIMAGE;
// The spec is completely inaccurate on the location, sizes
« no previous file with comments | « media/base/android/java/src/org/chromium/media/VideoCaptureCamera.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698