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

Side by Side Diff: webrtc/modules/video_coding/include/video_coding.h

Issue 1778503002: Experiment for the nack module. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added histogram to BUILD.gn. Created 4 years, 9 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 | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/jitter_buffer.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 public: 66 public:
67 enum SenderNackMode { kNackNone, kNackAll, kNackSelective }; 67 enum SenderNackMode { kNackNone, kNackAll, kNackSelective };
68 68
69 enum ReceiverRobustness { kNone, kHardNack, kSoftNack, kReferenceSelection }; 69 enum ReceiverRobustness { kNone, kHardNack, kSoftNack, kReferenceSelection };
70 70
71 static VideoCodingModule* Create( 71 static VideoCodingModule* Create(
72 Clock* clock, 72 Clock* clock,
73 VideoEncoderRateObserver* encoder_rate_observer, 73 VideoEncoderRateObserver* encoder_rate_observer,
74 VCMQMSettingsCallback* qm_settings_callback); 74 VCMQMSettingsCallback* qm_settings_callback);
75 75
76 static VideoCodingModule* Create(
77 Clock* clock,
78 VideoEncoderRateObserver* encoder_rate_observer,
79 VCMQMSettingsCallback* qm_settings_callback,
80 NackSender* nack_sender,
81 KeyFrameRequestSender* keyframe_request_sender);
82
76 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); 83 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory);
77 84
85 static VideoCodingModule* Create(
86 Clock* clock,
87 EventFactory* event_factory,
88 NackSender* nack_sender,
89 KeyFrameRequestSender* keyframe_request_sender);
90
78 // Get supported codec settings using codec type 91 // Get supported codec settings using codec type
79 // 92 //
80 // Input: 93 // Input:
81 // - codecType : The codec type to get settings for 94 // - codecType : The codec type to get settings for
82 // - codec : Memory where the codec settings will be stored 95 // - codec : Memory where the codec settings will be stored
83 // 96 //
84 // Return value : VCM_OK, on success 97 // Return value : VCM_OK, on success
85 // VCM_PARAMETER_ERROR if codec not supported 98 // VCM_PARAMETER_ERROR if codec not supported
86 static void Codec(VideoCodecType codecType, VideoCodec* codec); 99 static void Codec(VideoCodecType codecType, VideoCodec* codec);
87 100
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 EncodedImageCallback* observer) = 0; 515 EncodedImageCallback* observer) = 0;
503 virtual void RegisterPostEncodeImageCallback( 516 virtual void RegisterPostEncodeImageCallback(
504 EncodedImageCallback* post_encode_callback) = 0; 517 EncodedImageCallback* post_encode_callback) = 0;
505 // Releases pending decode calls, permitting faster thread shutdown. 518 // Releases pending decode calls, permitting faster thread shutdown.
506 virtual void TriggerDecoderShutdown() = 0; 519 virtual void TriggerDecoderShutdown() = 0;
507 }; 520 };
508 521
509 } // namespace webrtc 522 } // namespace webrtc
510 523
511 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ 524 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/jitter_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698