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

Side by Side Diff: webrtc/media/base/videoadapter.h

Issue 1973873003: Delete AndroidVideoCapturer::FrameFactory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Undo unrelated/unneeded changes. Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 14 matching lines...) Expand all
25 class VideoAdapter { 25 class VideoAdapter {
26 public: 26 public:
27 VideoAdapter(); 27 VideoAdapter();
28 virtual ~VideoAdapter(); 28 virtual ~VideoAdapter();
29 29
30 // Sets the expected frame interval. This controls how often frames should 30 // Sets the expected frame interval. This controls how often frames should
31 // be dropped if |OnOutputFormatRequest| is called with a lower frame 31 // be dropped if |OnOutputFormatRequest| is called with a lower frame
32 // interval. 32 // interval.
33 void SetExpectedInputFrameInterval(int64_t interval); 33 void SetExpectedInputFrameInterval(int64_t interval);
34 34
35 // Return the adapted resolution given the input resolution. The input 35 // Return the adapted resolution and cropping parameters given the
36 // resolution should first be cropped to the specified resolution, and then 36 // input resolution. The input frame should first be cropped, then
37 // scaled to the final output resolution. The output resolution will be 0x0 if 37 // scaled to the final output resolution. Returns true if the frame
38 // the frame should be dropped. 38 // should be adapted, and false if it should be dropped.
39 void AdaptFrameResolution(int in_width, 39 bool AdaptFrameResolution(int in_width,
40 int in_height, 40 int in_height,
41 int* cropped_width, 41 int* cropped_width,
42 int* cropped_height, 42 int* cropped_height,
43 int* out_width, 43 int* out_width,
44 int* out_height); 44 int* out_height);
45 45
46 // Requests the output frame size and frame interval from 46 // Requests the output frame size and frame interval from
47 // |AdaptFrameResolution| to not be larger than |format|. Also, the input 47 // |AdaptFrameResolution| to not be larger than |format|. Also, the input
48 // frame size will be cropped to match the requested aspect ratio. The 48 // frame size will be cropped to match the requested aspect ratio. The
49 // requested aspect ratio is orientation agnostic and will be adjusted to 49 // requested aspect ratio is orientation agnostic and will be adjusted to
(...skipping 26 matching lines...) Expand all
76 76
77 // The critical section to protect the above variables. 77 // The critical section to protect the above variables.
78 rtc::CriticalSection critical_section_; 78 rtc::CriticalSection critical_section_;
79 79
80 RTC_DISALLOW_COPY_AND_ASSIGN(VideoAdapter); 80 RTC_DISALLOW_COPY_AND_ASSIGN(VideoAdapter);
81 }; 81 };
82 82
83 } // namespace cricket 83 } // namespace cricket
84 84
85 #endif // WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_ 85 #endif // WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698