Lines Matching +full:clang +full:- +full:format +full:- +full:diff
4 * Use of this source code is governed by a BSD-style license
25 - (void)capturer:(RTC_OBJC_TYPE(RTCVideoCapturer) *)capturer
30 _capturer->OnFrame(webrtc::VideoFrame::Builder()
46 for (AVCaptureDeviceFormat *format in formats) {
47 CMVideoDimensions dimension = CMVideoFormatDescriptionGetDimensions(format.formatDescription);
48 int diff =
49 std::abs((int64_t)width - dimension.width) + std::abs((int64_t)height - dimension.height);
50 if (diff < currentDiff) {
51 selectedFormat = format;
52 currentDiff = diff;
77 AVCaptureDeviceFormat *format = SelectClosestFormat(device, width, height);
78 [capturer startCaptureWithDevice:device format:format fps:target_fps];
89 #pragma clang diagnostic push
90 #pragma clang diagnostic ignored "-Wunused-variable"
95 #pragma clang diagnostic pop