forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request IntelRealSense#4304 from matkatz/android-camera-fw…
…-update-2 Android camera app - firmware update
- Loading branch information
Showing
29 changed files
with
621 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
wrappers/android/librealsense/src/main/java/com/intel/realsense/librealsense/Updatable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
package com.intel.realsense.librealsense; | ||
|
||
public class Updatable extends Device { | ||
private ProgressListener mListener; | ||
|
||
public void enterUpdateState() { | ||
nEnterUpdateState(mHandle); | ||
} | ||
|
||
public synchronized byte[] createFlashBackup(ProgressListener listener){ | ||
mListener = listener; | ||
return nCreateFlashBackup(mHandle); | ||
} | ||
|
||
Updatable(long handle){ | ||
super(handle); | ||
mOwner = false; | ||
} | ||
|
||
void onProgress(float progress){ | ||
mListener.onProgress(progress); | ||
} | ||
|
||
private static native void nEnterUpdateState(long handle); | ||
private native byte[] nCreateFlashBackup(long handle); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 7 additions & 26 deletions
33
...droid/librealsense/src/main/java/com/intel/realsense/librealsense/VideoStreamProfile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,26 @@ | ||
package com.intel.realsense.librealsense; | ||
|
||
public class VideoStreamProfile extends StreamProfile { | ||
IntrinsicsParams mIntrinsicsParams; | ||
ResolutionParams mResolutionParams; | ||
|
||
private class IntrinsicsParams { | ||
private class ResolutionParams { | ||
public int width; | ||
public int height; | ||
public float fx; | ||
public float fy; | ||
public float ppx; | ||
public float ppy; | ||
} | ||
|
||
VideoStreamProfile(long handle) { | ||
super(handle); | ||
mIntrinsicsParams = new IntrinsicsParams(); | ||
nGetIntrinsics(mHandle, mIntrinsicsParams); | ||
mResolutionParams = new ResolutionParams(); | ||
nGetResolution(mHandle, mResolutionParams); | ||
} | ||
|
||
public int getWidth() { | ||
return mIntrinsicsParams.width; | ||
return mResolutionParams.width; | ||
} | ||
|
||
public int getHeight() { | ||
return mIntrinsicsParams.height; | ||
return mResolutionParams.height; | ||
} | ||
|
||
public float getFx() { | ||
return mIntrinsicsParams.fx; | ||
} | ||
|
||
public float getFy() { | ||
return mIntrinsicsParams.fy; | ||
} | ||
|
||
public float getPpx() { | ||
return mIntrinsicsParams.ppx; | ||
} | ||
|
||
public float getPpy() {return mIntrinsicsParams.ppy; } | ||
|
||
|
||
private static native void nGetIntrinsics(long handle, IntrinsicsParams params); | ||
private static native void nGetResolution(long handle, ResolutionParams params); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.