OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 DecodedImageCallback* callback) = 0; | 74 DecodedImageCallback* callback) = 0; |
75 | 75 |
76 virtual int32_t Release() = 0; | 76 virtual int32_t Release() = 0; |
77 | 77 |
78 // Returns true if the decoder prefer to decode frames late. | 78 // Returns true if the decoder prefer to decode frames late. |
79 // That is, it can not decode infinite number of frames before the decoded | 79 // That is, it can not decode infinite number of frames before the decoded |
80 // frame is consumed. | 80 // frame is consumed. |
81 virtual bool PrefersLateDecoding() const { return true; } | 81 virtual bool PrefersLateDecoding() const { return true; } |
82 | 82 |
83 virtual const char* ImplementationName() const { return "unknown"; } | 83 virtual const char* ImplementationName() const { return "unknown"; } |
84 | |
85 // Some VideoDecoders may choose to override this to return SSRC of the | |
86 // stream. Otherwise, returns 0. | |
87 virtual uint32_t ssrc() const { return 0; } | |
perkj_webrtc
2016/06/10 13:22:20
please remove from the interface.
sakal
2016/06/14 13:28:44
Done.
noahric
2016/06/14 17:51:10
See my comment elsewhere; if receive streams can h
| |
84 }; | 88 }; |
85 | 89 |
86 // Class used to wrap external VideoDecoders to provide a fallback option on | 90 // Class used to wrap external VideoDecoders to provide a fallback option on |
87 // software decoding when a hardware decoder fails to decode a stream due to | 91 // software decoding when a hardware decoder fails to decode a stream due to |
88 // hardware restrictions, such as max resolution. | 92 // hardware restrictions, such as max resolution. |
89 class VideoDecoderSoftwareFallbackWrapper : public webrtc::VideoDecoder { | 93 class VideoDecoderSoftwareFallbackWrapper : public webrtc::VideoDecoder { |
90 public: | 94 public: |
91 VideoDecoderSoftwareFallbackWrapper(VideoCodecType codec_type, | 95 VideoDecoderSoftwareFallbackWrapper(VideoCodecType codec_type, |
92 VideoDecoder* decoder); | 96 VideoDecoder* decoder); |
93 | 97 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 DecodedImageCallback* callback) override; | 144 DecodedImageCallback* callback) override; |
141 | 145 |
142 int32_t Release() override; | 146 int32_t Release() override; |
143 | 147 |
144 const char* ImplementationName() const override; | 148 const char* ImplementationName() const override; |
145 }; | 149 }; |
146 | 150 |
147 } // namespace webrtc | 151 } // namespace webrtc |
148 | 152 |
149 #endif // WEBRTC_VIDEO_DECODER_H_ | 153 #endif // WEBRTC_VIDEO_DECODER_H_ |
OLD | NEW |