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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // complete. | 67 // complete. |
68 }; | 68 }; |
69 | 69 |
70 class VideoCodingModule : public Module { | 70 class VideoCodingModule : public Module { |
71 public: | 71 public: |
72 enum SenderNackMode { kNackNone, kNackAll, kNackSelective }; | 72 enum SenderNackMode { kNackNone, kNackAll, kNackSelective }; |
73 | 73 |
74 // DEPRECATED. | 74 // DEPRECATED. |
75 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); | 75 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); |
76 | 76 |
77 // Get supported codec settings using codec type | |
78 // | |
79 // Input: | |
80 // - codecType : The codec type to get settings for | |
81 // - codec : Memory where the codec settings will be stored | |
82 // | |
83 // Return value : VCM_OK, on success | |
84 // VCM_PARAMETER_ERROR if codec not supported | |
85 static void Codec(VideoCodecType codecType, VideoCodec* codec); | |
86 | |
87 /* | 77 /* |
88 * Sender | 78 * Sender |
89 */ | 79 */ |
90 | 80 |
91 // Registers a codec to be used for encoding. Calling this | 81 // Registers a codec to be used for encoding. Calling this |
92 // API multiple times overwrites any previously registered codecs. | 82 // API multiple times overwrites any previously registered codecs. |
93 // | 83 // |
94 // NOTE: Must be called on the thread that constructed the VCM instance. | 84 // NOTE: Must be called on the thread that constructed the VCM instance. |
95 // | 85 // |
96 // Input: | 86 // Input: |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 412 |
423 virtual void RegisterPostEncodeImageCallback( | 413 virtual void RegisterPostEncodeImageCallback( |
424 EncodedImageCallback* post_encode_callback) = 0; | 414 EncodedImageCallback* post_encode_callback) = 0; |
425 // Releases pending decode calls, permitting faster thread shutdown. | 415 // Releases pending decode calls, permitting faster thread shutdown. |
426 virtual void TriggerDecoderShutdown() = 0; | 416 virtual void TriggerDecoderShutdown() = 0; |
427 }; | 417 }; |
428 | 418 |
429 } // namespace webrtc | 419 } // namespace webrtc |
430 | 420 |
431 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 421 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |