OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 } | 142 } |
143 }); | 143 }); |
144 } | 144 } |
145 | 145 |
146 | 146 |
147 @Override | 147 @Override |
148 public synchronized void dispose() { | 148 public synchronized void dispose() { |
149 isDisposed = true; | 149 isDisposed = true; |
150 } | 150 } |
151 | 151 |
152 @Override | |
153 public synchronized void onOutputFormatRequest( | |
154 final int width, final int height, final int framerate) { | |
155 checkNotDisposed(); | |
156 surfaceTextureHelper.getHandler().post(new Runnable() { | |
157 @Override | |
158 public void run() { | |
159 capturerObserver.onOutputFormatRequest(width, height, framerate); | |
160 } | |
161 }); | |
162 } | |
163 | |
164 /** | 152 /** |
165 * Changes output video format. This method can be used to scale the output | 153 * Changes output video format. This method can be used to scale the output |
166 * video, or to change orientation when the captured screen is rotated for exa
mple. | 154 * video, or to change orientation when the captured screen is rotated for exa
mple. |
167 * | 155 * |
168 * @param width new output video width | 156 * @param width new output video width |
169 * @param height new output video height | 157 * @param height new output video height |
170 * @param ignoredFramerate ignored | 158 * @param ignoredFramerate ignored |
171 */ | 159 */ |
172 @Override | 160 @Override |
173 public synchronized void changeCaptureFormat( | 161 public synchronized void changeCaptureFormat( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 @Override | 201 @Override |
214 public boolean isScreencast() { | 202 public boolean isScreencast() { |
215 return true; | 203 return true; |
216 } | 204 } |
217 | 205 |
218 public long getNumCapturedFrames() { | 206 public long getNumCapturedFrames() { |
219 return numCapturedFrames; | 207 return numCapturedFrames; |
220 } | 208 } |
221 } | 209 } |
222 | 210 |
OLD | NEW |