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

Unified Diff: webrtc/video/vie_encoder.h

Issue 2613713002: delete redundant members in ViEEncoder (Closed)
Patch Set: fix nit Created 3 years, 11 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
« no previous file with comments | « no previous file | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/vie_encoder.h
diff --git a/webrtc/video/vie_encoder.h b/webrtc/video/vie_encoder.h
index c086644e147e407bb298adc1e7b4ee1a549e9fc8..7fd3741bea9ace4cd022f8dc2e5e5159d5b3cbc1 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 pixel_count() const { return width * height; }
};
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.
« no previous file with comments | « no previous file | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698