| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual int32_t Release() = 0; | 75 virtual int32_t Release() = 0; |
| 76 | 76 |
| 77 // Returns true if the decoder prefer to decode frames late. | 77 // Returns true if the decoder prefer to decode frames late. |
| 78 // That is, it can not decode infinite number of frames before the decoded | 78 // That is, it can not decode infinite number of frames before the decoded |
| 79 // frame is consumed. | 79 // frame is consumed. |
| 80 virtual bool PrefersLateDecoding() const { return true; } | 80 virtual bool PrefersLateDecoding() const { return true; } |
| 81 | 81 |
| 82 virtual const char* ImplementationName() const { return "unknown"; } | 82 virtual const char* ImplementationName() const { return "unknown"; } |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 class VideoDecoderFactoryEx { |
| 86 public: |
| 87 virtual VideoDecoder* Create() = 0; |
| 88 virtual void Destroy(VideoDecoder* decoder) = 0; |
| 89 virtual ~VideoDecoderFactoryEx() {} |
| 90 }; |
| 91 |
| 85 } // namespace webrtc | 92 } // namespace webrtc |
| 86 | 93 |
| 87 #endif // API_VIDEO_CODECS_VIDEO_DECODER_H_ | 94 #endif // API_VIDEO_CODECS_VIDEO_DECODER_H_ |
| OLD | NEW |