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

Unified Diff: webrtc/media/base/videoadapter.h

Issue 1973873003: Delete AndroidVideoCapturer::FrameFactory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Delete left-over prototype. Revert a comment change. 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698