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

Side by Side Diff: webrtc/modules/audio_coding/neteq/neteq_impl.h

Issue 2290153002: NetEq: Change member variables for current RTP types to rtc::Optionals (Closed)
Patch Set: Updates after review Created 4 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
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 16
17 #include "webrtc/base/constructormagic.h" 17 #include "webrtc/base/constructormagic.h"
18 #include "webrtc/base/criticalsection.h" 18 #include "webrtc/base/criticalsection.h"
19 #include "webrtc/base/optional.h"
19 #include "webrtc/base/thread_annotations.h" 20 #include "webrtc/base/thread_annotations.h"
20 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" 21 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h"
21 #include "webrtc/modules/audio_coding/neteq/defines.h" 22 #include "webrtc/modules/audio_coding/neteq/defines.h"
22 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" 23 #include "webrtc/modules/audio_coding/neteq/include/neteq.h"
23 #include "webrtc/modules/audio_coding/neteq/packet.h" // Declare PacketList. 24 #include "webrtc/modules/audio_coding/neteq/packet.h" // Declare PacketList.
24 #include "webrtc/modules/audio_coding/neteq/random_vector.h" 25 #include "webrtc/modules/audio_coding/neteq/random_vector.h"
25 #include "webrtc/modules/audio_coding/neteq/rtcp.h" 26 #include "webrtc/modules/audio_coding/neteq/rtcp.h"
26 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h" 27 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h"
27 #include "webrtc/modules/audio_coding/neteq/tick_timer.h" 28 #include "webrtc/modules/audio_coding/neteq/tick_timer.h"
28 #include "webrtc/typedefs.h" 29 #include "webrtc/typedefs.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 size_t decoder_frame_length_ GUARDED_BY(crit_sect_); 391 size_t decoder_frame_length_ GUARDED_BY(crit_sect_);
391 Modes last_mode_ GUARDED_BY(crit_sect_); 392 Modes last_mode_ GUARDED_BY(crit_sect_);
392 Operations last_operation_ GUARDED_BY(crit_sect_); 393 Operations last_operation_ GUARDED_BY(crit_sect_);
393 std::unique_ptr<int16_t[]> mute_factor_array_ GUARDED_BY(crit_sect_); 394 std::unique_ptr<int16_t[]> mute_factor_array_ GUARDED_BY(crit_sect_);
394 size_t decoded_buffer_length_ GUARDED_BY(crit_sect_); 395 size_t decoded_buffer_length_ GUARDED_BY(crit_sect_);
395 std::unique_ptr<int16_t[]> decoded_buffer_ GUARDED_BY(crit_sect_); 396 std::unique_ptr<int16_t[]> decoded_buffer_ GUARDED_BY(crit_sect_);
396 uint32_t playout_timestamp_ GUARDED_BY(crit_sect_); 397 uint32_t playout_timestamp_ GUARDED_BY(crit_sect_);
397 bool new_codec_ GUARDED_BY(crit_sect_); 398 bool new_codec_ GUARDED_BY(crit_sect_);
398 uint32_t timestamp_ GUARDED_BY(crit_sect_); 399 uint32_t timestamp_ GUARDED_BY(crit_sect_);
399 bool reset_decoder_ GUARDED_BY(crit_sect_); 400 bool reset_decoder_ GUARDED_BY(crit_sect_);
400 uint8_t current_rtp_payload_type_ GUARDED_BY(crit_sect_); 401 rtc::Optional<uint8_t> current_rtp_payload_type_ GUARDED_BY(crit_sect_);
401 uint8_t current_cng_rtp_payload_type_ GUARDED_BY(crit_sect_); 402 rtc::Optional<uint8_t> current_cng_rtp_payload_type_ GUARDED_BY(crit_sect_);
402 uint32_t ssrc_ GUARDED_BY(crit_sect_); 403 uint32_t ssrc_ GUARDED_BY(crit_sect_);
403 bool first_packet_ GUARDED_BY(crit_sect_); 404 bool first_packet_ GUARDED_BY(crit_sect_);
404 int error_code_ GUARDED_BY(crit_sect_); // Store last error code. 405 int error_code_ GUARDED_BY(crit_sect_); // Store last error code.
405 int decoder_error_code_ GUARDED_BY(crit_sect_); 406 int decoder_error_code_ GUARDED_BY(crit_sect_);
406 const BackgroundNoiseMode background_noise_mode_ GUARDED_BY(crit_sect_); 407 const BackgroundNoiseMode background_noise_mode_ GUARDED_BY(crit_sect_);
407 NetEqPlayoutMode playout_mode_ GUARDED_BY(crit_sect_); 408 NetEqPlayoutMode playout_mode_ GUARDED_BY(crit_sect_);
408 bool enable_fast_accelerate_ GUARDED_BY(crit_sect_); 409 bool enable_fast_accelerate_ GUARDED_BY(crit_sect_);
409 std::unique_ptr<NackTracker> nack_ GUARDED_BY(crit_sect_); 410 std::unique_ptr<NackTracker> nack_ GUARDED_BY(crit_sect_);
410 bool nack_enabled_ GUARDED_BY(crit_sect_); 411 bool nack_enabled_ GUARDED_BY(crit_sect_);
411 const bool enable_muted_state_ GUARDED_BY(crit_sect_); 412 const bool enable_muted_state_ GUARDED_BY(crit_sect_);
412 AudioFrame::VADActivity last_vad_activity_ GUARDED_BY(crit_sect_) = 413 AudioFrame::VADActivity last_vad_activity_ GUARDED_BY(crit_sect_) =
413 AudioFrame::kVadPassive; 414 AudioFrame::kVadPassive;
414 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_ 415 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_
415 GUARDED_BY(crit_sect_); 416 GUARDED_BY(crit_sect_);
416 417
417 private: 418 private:
418 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl); 419 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl);
419 }; 420 };
420 421
421 } // namespace webrtc 422 } // namespace webrtc
422 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ 423 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h ('k') | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698