Move VideoCapturer to video_api and cleanup.
This should only be landed after clients have been given time to upgrade to the new interface. Bug: webrtc:9496, webrtc:9181 Change-Id: Ideb37637d9f0b9a3a9748811879c263c64f81d11 Reviewed-on: https://webrtc-review.googlesource.com/87308 Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Paulina Hensman <phensman@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24080}
This commit is contained in:
committed by
Commit Bot
parent
213618e37e
commit
903bd4145f
@ -23,13 +23,6 @@ public class VideoSource extends MediaSource {
|
||||
this.capturerObserver = new NativeCapturerObserver(nativeGetInternalSource(nativeSource));
|
||||
}
|
||||
|
||||
// TODO(bugs.webrtc.org/9181): Remove.
|
||||
VideoSource(long nativeSource, SurfaceTextureHelper surfaceTextureHelper) {
|
||||
super(nativeSource);
|
||||
this.capturerObserver =
|
||||
new NativeCapturerObserver(nativeGetInternalSource(nativeSource), surfaceTextureHelper);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling this function will cause frames to be scaled down to the requested resolution. Also,
|
||||
* frames will be cropped to match the requested aspect ratio, and frames will be dropped to match
|
||||
@ -44,12 +37,6 @@ public class VideoSource extends MediaSource {
|
||||
return capturerObserver;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
capturerObserver.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
// Returns source->internal() from webrtc::VideoTrackSourceProxy.
|
||||
private static native long nativeGetInternalSource(long source);
|
||||
private static native void nativeAdaptOutputFormat(long source, int width, int height, int fps);
|
||||
|
||||
Reference in New Issue
Block a user