Chromium Code Reviews| Index: webrtc/media/base/videoadapter.h |
| diff --git a/webrtc/media/base/videoadapter.h b/webrtc/media/base/videoadapter.h |
| index 9d17f5ce1538f5446546f39bee1c391cc7a8f438..a68e5eb7ea008a66906f7b674dbc01ac44ab5a36 100644 |
| --- a/webrtc/media/base/videoadapter.h |
| +++ b/webrtc/media/base/videoadapter.h |
| @@ -25,6 +25,7 @@ namespace cricket { |
| class VideoAdapter { |
| public: |
| VideoAdapter(); |
| + VideoAdapter(int required_resolution_divisor); |
|
magjed_webrtc
2016/12/07 13:44:51
nit: I would name this alignment instead of diviso
kthelgason
2016/12/08 08:42:03
Done.
|
| virtual ~VideoAdapter(); |
| // Return the adapted resolution and cropping parameters given the |
| @@ -63,6 +64,8 @@ class VideoAdapter { |
| int adaption_changes_; // Number of changes in scale factor. |
| int previous_width_; // Previous adapter output width. |
| int previous_height_; // Previous adapter output height. |
| + // Resolution must be divisible by this factor. |
| + int required_resolution_divisor_; |
|
magjed_webrtc
2016/12/07 13:44:51
const
kthelgason
2016/12/08 08:42:03
Done.
|
| // The target timestamp for the next frame based on requested format. |
| rtc::Optional<int64_t> next_frame_timestamp_ns_ GUARDED_BY(critical_section_); |