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

Side by Side Diff: talk/media/base/videoadapter.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « talk/media/base/testutils.cc ('k') | talk/media/base/videoadapter.cc » ('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 * libjingle 2 * libjingle
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 VideoFormat input_format_; 81 VideoFormat input_format_;
82 VideoFormat output_format_; 82 VideoFormat output_format_;
83 int output_num_pixels_; 83 int output_num_pixels_;
84 bool scale_third_; // True if adapter allows scaling to 1/3 and 2/3. 84 bool scale_third_; // True if adapter allows scaling to 1/3 and 2/3.
85 int frames_in_; // Number of input frames. 85 int frames_in_; // Number of input frames.
86 int frames_out_; // Number of output frames. 86 int frames_out_; // Number of output frames.
87 int frames_scaled_; // Number of frames scaled. 87 int frames_scaled_; // Number of frames scaled.
88 int adaption_changes_; // Number of changes in scale factor. 88 int adaption_changes_; // Number of changes in scale factor.
89 size_t previous_width_; // Previous adapter output width. 89 size_t previous_width_; // Previous adapter output width.
90 size_t previous_height_; // Previous adapter output height. 90 size_t previous_height_; // Previous adapter output height.
91 int64 interval_next_frame_; 91 int64_t interval_next_frame_;
92 // The critical section to protect the above variables. 92 // The critical section to protect the above variables.
93 rtc::CriticalSection critical_section_; 93 rtc::CriticalSection critical_section_;
94 94
95 RTC_DISALLOW_COPY_AND_ASSIGN(VideoAdapter); 95 RTC_DISALLOW_COPY_AND_ASSIGN(VideoAdapter);
96 }; 96 };
97 97
98 // CoordinatedVideoAdapter adapts the video input to the encoder by coordinating 98 // CoordinatedVideoAdapter adapts the video input to the encoder by coordinating
99 // the format request from the server, the resolution request from the encoder, 99 // the format request from the server, the resolution request from the encoder,
100 // and the CPU load. 100 // and the CPU load.
101 class CoordinatedVideoAdapter 101 class CoordinatedVideoAdapter
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 int cpu_load_min_samples_; 183 int cpu_load_min_samples_;
184 int cpu_load_num_samples_; 184 int cpu_load_num_samples_;
185 // cpu system load thresholds relative to max cpus. 185 // cpu system load thresholds relative to max cpus.
186 float high_system_threshold_; 186 float high_system_threshold_;
187 float low_system_threshold_; 187 float low_system_threshold_;
188 // cpu process load thresholds relative to current cpus. 188 // cpu process load thresholds relative to current cpus.
189 float process_threshold_; 189 float process_threshold_;
190 // Video formats that the server view requests, the CPU wants, and the encoder 190 // Video formats that the server view requests, the CPU wants, and the encoder
191 // wants respectively. The adapted output format is the minimum of these. 191 // wants respectively. The adapted output format is the minimum of these.
192 int view_desired_num_pixels_; 192 int view_desired_num_pixels_;
193 int64 view_desired_interval_; 193 int64_t view_desired_interval_;
194 int encoder_desired_num_pixels_; 194 int encoder_desired_num_pixels_;
195 int cpu_desired_num_pixels_; 195 int cpu_desired_num_pixels_;
196 CoordinatedVideoAdapter::AdaptReason adapt_reason_; 196 CoordinatedVideoAdapter::AdaptReason adapt_reason_;
197 // The critical section to protect handling requests. 197 // The critical section to protect handling requests.
198 rtc::CriticalSection request_critical_section_; 198 rtc::CriticalSection request_critical_section_;
199 199
200 // The weighted average of cpu load over time. It's always updated (if cpu 200 // The weighted average of cpu load over time. It's always updated (if cpu
201 // adaptation is on), but only used if cpu_smoothing_ is set. 201 // adaptation is on), but only used if cpu_smoothing_ is set.
202 float system_load_average_; 202 float system_load_average_;
203 203
204 RTC_DISALLOW_COPY_AND_ASSIGN(CoordinatedVideoAdapter); 204 RTC_DISALLOW_COPY_AND_ASSIGN(CoordinatedVideoAdapter);
205 }; 205 };
206 206
207 } // namespace cricket 207 } // namespace cricket
208 208
209 #endif // TALK_MEDIA_BASE_VIDEOADAPTER_H_ // NOLINT 209 #endif // TALK_MEDIA_BASE_VIDEOADAPTER_H_ // NOLINT
OLDNEW
« no previous file with comments | « talk/media/base/testutils.cc ('k') | talk/media/base/videoadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698