Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: webrtc/media/engine/scopedvideodecoder.h

Issue 3010953002: Revert of Prepare for injectable SW decoders (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/media/engine/scopedvideodecoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/media/engine/scopedvideodecoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698