OLD | NEW |
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(Clock* clock, EventFactory* event_factory); | 76 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); |
77 | 77 |
78 static void Destroy(VideoCodingModule* module); | |
79 | |
80 // Get supported codec settings using codec type | 78 // Get supported codec settings using codec type |
81 // | 79 // |
82 // Input: | 80 // Input: |
83 // - codecType : The codec type to get settings for | 81 // - codecType : The codec type to get settings for |
84 // - codec : Memory where the codec settings will be stored | 82 // - codec : Memory where the codec settings will be stored |
85 // | 83 // |
86 // Return value : VCM_OK, on success | 84 // Return value : VCM_OK, on success |
87 // VCM_PARAMETER_ERROR if codec not supported | 85 // VCM_PARAMETER_ERROR if codec not supported |
88 static void Codec(VideoCodecType codecType, VideoCodec* codec); | 86 static void Codec(VideoCodecType codecType, VideoCodec* codec); |
89 | 87 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 EncodedImageCallback* observer) = 0; | 508 EncodedImageCallback* observer) = 0; |
511 virtual void RegisterPostEncodeImageCallback( | 509 virtual void RegisterPostEncodeImageCallback( |
512 EncodedImageCallback* post_encode_callback) = 0; | 510 EncodedImageCallback* post_encode_callback) = 0; |
513 // Releases pending decode calls, permitting faster thread shutdown. | 511 // Releases pending decode calls, permitting faster thread shutdown. |
514 virtual void TriggerDecoderShutdown() = 0; | 512 virtual void TriggerDecoderShutdown() = 0; |
515 }; | 513 }; |
516 | 514 |
517 } // namespace webrtc | 515 } // namespace webrtc |
518 | 516 |
519 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 517 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |