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

Unified Diff: webrtc/api/android/java/src/org/webrtc/VideoCapturer.java

Issue 2373353002: Android: Remove onOutputFormatRequest from the VideoCapturer interface (Closed)
Patch Set: Created 4 years, 3 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
Index: webrtc/api/android/java/src/org/webrtc/VideoCapturer.java
diff --git a/webrtc/api/android/java/src/org/webrtc/VideoCapturer.java b/webrtc/api/android/java/src/org/webrtc/VideoCapturer.java
index 0a5e7d592a94b8ebe3cf13cb179076e0cf368530..706c43dc273c3c2977ed43dd604ac26477f9f9a7 100644
--- a/webrtc/api/android/java/src/org/webrtc/VideoCapturer.java
+++ b/webrtc/api/android/java/src/org/webrtc/VideoCapturer.java
@@ -32,11 +32,6 @@ public interface VideoCapturer {
void onTextureFrameCaptured(
int width, int height, int oesTextureId, float[] transformMatrix, int rotation,
long timestamp);
-
- // Requests an output format from the video capturer. Captured frames
- // by the camera will be scaled/or dropped by the video capturer.
- // Called on a Java thread owned by VideoCapturer.
- void onOutputFormatRequest(int width, int height, int framerate);
}
// An implementation of CapturerObserver that forwards all calls from
@@ -74,11 +69,6 @@ public interface VideoCapturer {
rotation, timestamp);
}
- @Override
- public void onOutputFormatRequest(int width, int height, int framerate) {
- nativeOnOutputFormatRequest(nativeSource, width, height, framerate);
- }
-
private native void nativeCapturerStarted(long nativeSource,
boolean success);
private native void nativeCapturerStopped(long nativeSource);
@@ -86,8 +76,6 @@ public interface VideoCapturer {
byte[] data, int length, int width, int height, int rotation, long timeStamp);
private native void nativeOnTextureFrameCaptured(long nativeSource, int width, int height,
int oesTextureId, float[] transformMatrix, int rotation, long timestamp);
- private native void nativeOnOutputFormatRequest(long nativeSource,
- int width, int height, int framerate);
}
/**
@@ -112,12 +100,6 @@ public interface VideoCapturer {
*/
void stopCapture() throws InterruptedException;
- /**
- * Use VideoSource.adaptOutputFormat() instead.
- */
- @Deprecated
- void onOutputFormatRequest(int width, int height, int framerate);
-
void changeCaptureFormat(int width, int height, int framerate);
/**

Powered by Google App Engine
This is Rietveld 408576698