Home
last modified time | relevance | path

Searched refs:CaptureFormat (Results 1 – 7 of 7) sorted by relevance

/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCaptureQualityController.java16 import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
27 private final List<CaptureFormat> formats = Arrays.asList(
28 new CaptureFormat(1280, 720, 0, 30000),
29 new CaptureFormat(640, 480, 0, 30000),
30 new CaptureFormat(320, 240, 0, 30000),
31 new CaptureFormat(256, 144, 0, 30000));
47 private final Comparator<CaptureFormat> compareFormats = new Comparator<CaptureFormat>() {
49 public int compare(CaptureFormat first, CaptureFormat second) {
76 for (CaptureFormat format : formats) { in onProgressChanged()
90 final CaptureFormat bestFormat = Collections.max(formats, compareFormats); in onProgressChanged()
[all …]
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DCameraEnumerator.java32 import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
44 private List<List<CaptureFormat>> cachedSupportedFormats;
47 public List<CaptureFormat> getSupportedFormats(int cameraId) { in getSupportedFormats()
50 cachedSupportedFormats = new ArrayList<List<CaptureFormat>>(); in getSupportedFormats()
59 private List<CaptureFormat> enumerateFormats(int cameraId) { in enumerateFormats()
70 return new ArrayList<CaptureFormat>(); in enumerateFormats()
77 final List<CaptureFormat> formatList = new ArrayList<CaptureFormat>(); in enumerateFormats()
90 formatList.add(new CaptureFormat(size.width, size.height, minFps, maxFps)); in enumerateFormats()
DCamera2Enumerator.java42 import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
58 private final Map<Integer, List<CaptureFormat>> cachedSupportedFormats =
59 new HashMap<Integer, List<CaptureFormat>>();
70 public List<CaptureFormat> getSupportedFormats(int cameraId) { in getSupportedFormats()
83 return new ArrayList<CaptureFormat>(); in getSupportedFormats()
102 final List<CaptureFormat> formatList = new ArrayList<CaptureFormat>(); in getSupportedFormats()
113 formatList.add(new CaptureFormat(size.getWidth(), size.getHeight(), 0, maxFps * 1000)); in getSupportedFormats()
DCameraEnumerationAndroid.java54 List<CaptureFormat> getSupportedFormats(int cameraId); in getSupportedFormats()
61 public static synchronized List<CaptureFormat> getSupportedFormats(int cameraId) { in getSupportedFormats()
65 public static class CaptureFormat { class in CameraEnumerationAndroid
76 public CaptureFormat(int width, int height, int minFramerate, in CaptureFormat() method in CameraEnumerationAndroid.CaptureFormat
106 public boolean isSameFormat(final CaptureFormat that) { in isSameFormat()
159 List<CaptureFormat> formats = getSupportedFormats(id); in getSupportedFormatsAsJson()
161 for (CaptureFormat format : formats) { in getSupportedFormatsAsJson()
DVideoCapturerAndroid.java38 import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
86 private CaptureFormat captureFormat;
308 public List<CaptureFormat> getSupportedFormats() { in getSupportedFormats()
503 final CaptureFormat captureFormat = new CaptureFormat( in startPreviewOnCameraThread()
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DVideoCapturerAndroidTestFixtures.java33 import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
304 final List<CaptureFormat> formats = capturer.getSupportedFormats(); in cameraEventsInvoked()
305 final CameraEnumerationAndroid.CaptureFormat format = formats.get(0); in cameraEventsInvoked()
326 final List<CaptureFormat> formats = capturer.getSupportedFormats(); in cameraCallsAfterStop()
327 final CameraEnumerationAndroid.CaptureFormat format = formats.get(0); in cameraCallsAfterStop()
374 List<CaptureFormat> formats = capturer.getSupportedFormats(); in startStopWithDifferentResolutions()
377 CameraEnumerationAndroid.CaptureFormat format = formats.get(i); in startStopWithDifferentResolutions()
422 final List<CaptureFormat> formats = capturer.getSupportedFormats(); in startWhileCameraIsAlreadyOpen()
423 final CameraEnumerationAndroid.CaptureFormat format = formats.get(0); in startWhileCameraIsAlreadyOpen()
445 final List<CaptureFormat> formats = capturer.getSupportedFormats(); in startWhileCameraIsAlreadyOpenAndCloseCamera()
[all …]
DVideoCapturerAndroidTest.java34 import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
64 for (CaptureFormat format : camera1Enumerator.getSupportedFormats(i)) { in testCamera2Enumerator()
68 for (CaptureFormat format : camera2Enumerator.getSupportedFormats(i)) { in testCamera2Enumerator()