Index: webrtc/media/base/videoadapter.h |
diff --git a/webrtc/media/base/videoadapter.h b/webrtc/media/base/videoadapter.h |
index 2db0ada271324f5b61350ef0ca508d4d8856fdbe..a5db197efbf3bc238c0a3215620647057973d4c5 100644 |
--- a/webrtc/media/base/videoadapter.h |
+++ b/webrtc/media/base/videoadapter.h |
@@ -32,11 +32,11 @@ class VideoAdapter { |
// interval. |
void SetExpectedInputFrameInterval(int64_t interval); |
- // Return the adapted resolution given the input resolution. The input |
- // resolution should first be cropped to the specified resolution, and then |
- // scaled to the final output resolution. The output resolution will be 0x0 if |
- // the frame should be dropped. |
- void AdaptFrameResolution(int in_width, |
+ // Return the adapted resolution and cropping parameters given the |
+ // input resolution. The input frame should first be cropped, then |
+ // scaled to the final output resolution. Returns true if the frame |
+ // should be adapted, and false if it should be dropped. |
+ bool AdaptFrameResolution(int in_width, |
int in_height, |
int* cropped_width, |
int* cropped_height, |