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

Side by Side Diff: webrtc/modules/interface/module_common_types.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 uint16_t fragmentationVectorSize; // Number of fragmentations 386 uint16_t fragmentationVectorSize; // Number of fragmentations
387 size_t* fragmentationOffset; // Offset of pointer to data for each 387 size_t* fragmentationOffset; // Offset of pointer to data for each
388 // fragmentation 388 // fragmentation
389 size_t* fragmentationLength; // Data size for each fragmentation 389 size_t* fragmentationLength; // Data size for each fragmentation
390 uint16_t* fragmentationTimeDiff; // Timestamp difference relative "now" for 390 uint16_t* fragmentationTimeDiff; // Timestamp difference relative "now" for
391 // each fragmentation 391 // each fragmentation
392 uint8_t* fragmentationPlType; // Payload type of each fragmentation 392 uint8_t* fragmentationPlType; // Payload type of each fragmentation
393 393
394 private: 394 private:
395 DISALLOW_COPY_AND_ASSIGN(RTPFragmentationHeader); 395 RTC_DISALLOW_COPY_AND_ASSIGN(RTPFragmentationHeader);
396 }; 396 };
397 397
398 struct RTCPVoIPMetric { 398 struct RTCPVoIPMetric {
399 // RFC 3611 4.7 399 // RFC 3611 4.7
400 uint8_t lossRate; 400 uint8_t lossRate;
401 uint8_t discardRate; 401 uint8_t discardRate;
402 uint8_t burstDensity; 402 uint8_t burstDensity;
403 uint8_t gapDensity; 403 uint8_t gapDensity;
404 uint16_t burstDuration; 404 uint16_t burstDuration;
405 uint16_t gapDuration; 405 uint16_t gapDuration;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 SpeechType speech_type_; 535 SpeechType speech_type_;
536 VADActivity vad_activity_; 536 VADActivity vad_activity_;
537 // Note that there is no guarantee that |energy_| is correct. Any user of this 537 // Note that there is no guarantee that |energy_| is correct. Any user of this
538 // member must verify that the value is correct. 538 // member must verify that the value is correct.
539 // TODO(henrike) Remove |energy_|. 539 // TODO(henrike) Remove |energy_|.
540 // See https://code.google.com/p/webrtc/issues/detail?id=3315. 540 // See https://code.google.com/p/webrtc/issues/detail?id=3315.
541 uint32_t energy_; 541 uint32_t energy_;
542 bool interleaved_; 542 bool interleaved_;
543 543
544 private: 544 private:
545 DISALLOW_COPY_AND_ASSIGN(AudioFrame); 545 RTC_DISALLOW_COPY_AND_ASSIGN(AudioFrame);
546 }; 546 };
547 547
548 inline AudioFrame::AudioFrame() 548 inline AudioFrame::AudioFrame()
549 : data_() { 549 : data_() {
550 Reset(); 550 Reset();
551 } 551 }
552 552
553 inline void AudioFrame::Reset() { 553 inline void AudioFrame::Reset() {
554 id_ = -1; 554 id_ = -1;
555 // TODO(wu): Zero is a valid value for |timestamp_|. We should initialize 555 // TODO(wu): Zero is a valid value for |timestamp_|. We should initialize
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 return unwrapped; 801 return unwrapped;
802 } 802 }
803 803
804 private: 804 private:
805 int64_t last_seq_; 805 int64_t last_seq_;
806 }; 806 };
807 807
808 } // namespace webrtc 808 } // namespace webrtc
809 809
810 #endif // MODULE_COMMON_TYPES_H 810 #endif // MODULE_COMMON_TYPES_H
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h ('k') | webrtc/modules/pacing/include/packet_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698