Index: webrtc/media/base/videoadapter.h |
diff --git a/webrtc/media/base/videoadapter.h b/webrtc/media/base/videoadapter.h |
index 45fd1fa8274ef3b85adfbb98cd3c8c598cfdf7d5..9d17f5ce1538f5446546f39bee1c391cc7a8f438 100644 |
--- a/webrtc/media/base/videoadapter.h |
+++ b/webrtc/media/base/videoadapter.h |
@@ -27,11 +27,11 @@ class VideoAdapter { |
VideoAdapter(); |
virtual ~VideoAdapter(); |
- // 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, |
int64_t in_timestamp_ns, |
int* cropped_width, |