| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_MEDIA_ENGINE_SCOPEDVIDEODECODER_H_ | |
| 12 #define WEBRTC_MEDIA_ENGINE_SCOPEDVIDEODECODER_H_ | |
| 13 | |
| 14 #include <memory> | |
| 15 | |
| 16 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" | |
| 17 | |
| 18 namespace cricket { | |
| 19 | |
| 20 // Helper function that creates a webrtc::VideoDecoder held by an | |
| 21 // std::unique_ptr instead of having to be deleted through | |
| 22 // WebRtcVideoDecoderFactory::DestroyVideoDecoder. The factory passed in must | |
| 23 // outlive the returned encoder. | |
| 24 // TODO(andersc): This helper function will be deleted once | |
| 25 // cricket::WebRtcVideoDecoderFactory is deprecated, see | |
| 26 // https://bugs.chromium.org/p/webrtc/issues/detail?id=7925 for more info. | |
| 27 std::unique_ptr<webrtc::VideoDecoder> CreateScopedVideoDecoder( | |
| 28 cricket::WebRtcVideoDecoderFactory* factory, | |
| 29 webrtc::VideoCodecType type); | |
| 30 std::unique_ptr<webrtc::VideoDecoder> CreateScopedVideoDecoder( | |
| 31 cricket::WebRtcVideoDecoderFactory* factory, | |
| 32 webrtc::VideoCodecType type, | |
| 33 VideoDecoderParams params); | |
| 34 | |
| 35 } // namespace cricket | |
| 36 | |
| 37 #endif // WEBRTC_MEDIA_ENGINE_SCOPEDVIDEODECODER_H_ | |
| OLD | NEW |