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

Side by Side Diff: webrtc/video/vie_encoder.cc

Issue 2541863002: Delete VideoFrame default constructor, and IsZeroSize method. (Closed)
Patch Set: Initialize pixel data in VideoBroadcasterTest.OnFrame test. Created 4 years 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 unified diff | Download patch
« no previous file with comments | « webrtc/video/video_quality_test.cc ('k') | webrtc/video_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 size_t max_data_payload_length_; 73 size_t max_data_payload_length_;
74 bool nack_enabled_; 74 bool nack_enabled_;
75 }; 75 };
76 76
77 class ViEEncoder::EncodeTask : public rtc::QueuedTask { 77 class ViEEncoder::EncodeTask : public rtc::QueuedTask {
78 public: 78 public:
79 EncodeTask(const VideoFrame& frame, 79 EncodeTask(const VideoFrame& frame,
80 ViEEncoder* vie_encoder, 80 ViEEncoder* vie_encoder,
81 int64_t time_when_posted_in_ms, 81 int64_t time_when_posted_in_ms,
82 bool log_stats) 82 bool log_stats)
83 : vie_encoder_(vie_encoder), 83 : frame_(frame),
84 vie_encoder_(vie_encoder),
84 time_when_posted_ms_(time_when_posted_in_ms), 85 time_when_posted_ms_(time_when_posted_in_ms),
85 log_stats_(log_stats) { 86 log_stats_(log_stats) {
86 frame_ = frame;
87 ++vie_encoder_->posted_frames_waiting_for_encode_; 87 ++vie_encoder_->posted_frames_waiting_for_encode_;
88 } 88 }
89 89
90 private: 90 private:
91 bool Run() override { 91 bool Run() override {
92 RTC_DCHECK_RUN_ON(&vie_encoder_->encoder_queue_); 92 RTC_DCHECK_RUN_ON(&vie_encoder_->encoder_queue_);
93 RTC_DCHECK_GT(vie_encoder_->posted_frames_waiting_for_encode_.Value(), 0); 93 RTC_DCHECK_GT(vie_encoder_->posted_frames_waiting_for_encode_.Value(), 0);
94 vie_encoder_->stats_proxy_->OnIncomingFrame(frame_.width(), 94 vie_encoder_->stats_proxy_->OnIncomingFrame(frame_.width(),
95 frame_.height()); 95 frame_.height());
96 ++vie_encoder_->captured_frame_count_; 96 ++vie_encoder_->captured_frame_count_;
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 --scale_counter_[reason]; 746 --scale_counter_[reason];
747 source_proxy_->RequestHigherResolutionThan(current_pixel_count); 747 source_proxy_->RequestHigherResolutionThan(current_pixel_count);
748 LOG(LS_INFO) << "Scaling up resolution."; 748 LOG(LS_INFO) << "Scaling up resolution.";
749 for (size_t i = 0; i < kScaleReasonSize; ++i) { 749 for (size_t i = 0; i < kScaleReasonSize; ++i) {
750 LOG(LS_INFO) << "Scaled " << scale_counter_[i] 750 LOG(LS_INFO) << "Scaled " << scale_counter_[i]
751 << " times for reason: " << (i ? "quality" : "cpu"); 751 << " times for reason: " << (i ? "quality" : "cpu");
752 } 752 }
753 } 753 }
754 754
755 } // namespace webrtc 755 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_quality_test.cc ('k') | webrtc/video_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698