Index: webrtc/video/vie_encoder.h |
diff --git a/webrtc/video/vie_encoder.h b/webrtc/video/vie_encoder.h |
index c086644e147e407bb298adc1e7b4ee1a549e9fc8..67c9c50132ec41a7b2769028d59a0d9291ecd74a 100644 |
--- a/webrtc/video/vie_encoder.h |
+++ b/webrtc/video/vie_encoder.h |
@@ -128,7 +128,8 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>, |
class EncodeTask; |
class VideoSourceProxy; |
- struct VideoFrameInfo { |
+ class VideoFrameInfo { |
+ public: |
VideoFrameInfo(int width, |
int height, |
VideoRotation rotation, |
@@ -141,6 +142,7 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>, |
int height; |
VideoRotation rotation; |
bool is_texture; |
+ int GetPixelCount() { return width * height; } |
perkj_webrtc
2017/01/11 08:32:51
const
|
}; |
void ConfigureEncoderOnTaskQueue(VideoEncoderConfig config, |
@@ -215,8 +217,6 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>, |
// Set depending on degradation preferences |
bool scaling_enabled_ ACCESS_ON(&encoder_queue_) = false; |
- int last_frame_width_ ACCESS_ON(&encoder_queue_); |
- int last_frame_height_ ACCESS_ON(&encoder_queue_); |
// Pixel count last time the resolution was requested to be changed down. |
rtc::Optional<int> max_pixel_count_ ACCESS_ON(&encoder_queue_); |
// Pixel count last time the resolution was requested to be changed up. |