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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 static VideoCodingModule* Create( | 84 static VideoCodingModule* Create( |
85 Clock* clock, | 85 Clock* clock, |
86 VideoEncoderRateObserver* encoder_rate_observer, | 86 VideoEncoderRateObserver* encoder_rate_observer, |
87 VCMQMSettingsCallback* qm_settings_callback); | 87 VCMQMSettingsCallback* qm_settings_callback); |
88 | 88 |
89 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); | 89 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); |
90 | 90 |
91 static void Destroy(VideoCodingModule* module); | 91 static void Destroy(VideoCodingModule* module); |
92 | 92 |
93 // Get number of supported codecs | |
94 // | |
95 // Return value : Number of supported codecs | |
96 static uint8_t NumberOfCodecs(); | |
97 | |
98 // Get supported codec settings with using id | |
99 // | |
100 // Input: | |
101 // - listId : Id or index of the codec to look up | |
102 // - codec : Memory where the codec settings will be stored | |
103 // | |
104 // Return value : VCM_OK, on success | |
105 // VCM_PARAMETER_ERROR if codec not supported or id too
high | |
106 static int32_t Codec(const uint8_t listId, VideoCodec* codec); | |
107 | |
108 // Get supported codec settings using codec type | 93 // Get supported codec settings using codec type |
109 // | 94 // |
110 // Input: | 95 // Input: |
111 // - codecType : The codec type to get settings for | 96 // - codecType : The codec type to get settings for |
112 // - codec : Memory where the codec settings will be stored | 97 // - codec : Memory where the codec settings will be stored |
113 // | 98 // |
114 // Return value : VCM_OK, on success | 99 // Return value : VCM_OK, on success |
115 // VCM_PARAMETER_ERROR if codec not supported | 100 // VCM_PARAMETER_ERROR if codec not supported |
116 static int32_t Codec(VideoCodecType codecType, VideoCodec* codec); | 101 static int32_t Codec(VideoCodecType codecType, VideoCodec* codec); |
117 | 102 |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 EncodedImageCallback* observer) = 0; | 520 EncodedImageCallback* observer) = 0; |
536 virtual void RegisterPostEncodeImageCallback( | 521 virtual void RegisterPostEncodeImageCallback( |
537 EncodedImageCallback* post_encode_callback) = 0; | 522 EncodedImageCallback* post_encode_callback) = 0; |
538 // Releases pending decode calls, permitting faster thread shutdown. | 523 // Releases pending decode calls, permitting faster thread shutdown. |
539 virtual void TriggerDecoderShutdown() = 0; | 524 virtual void TriggerDecoderShutdown() = 0; |
540 }; | 525 }; |
541 | 526 |
542 } // namespace webrtc | 527 } // namespace webrtc |
543 | 528 |
544 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ | 529 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ |
OLD | NEW |