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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.h

Issue 3007433002: Let CreateVideoDecoder take a cricket::VideoCodec. (Closed)
Patch Set: return a value from unused function 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
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 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
11 #ifndef WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_FACT ORY_H_ 11 #ifndef WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_FACT ORY_H_
12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_FACT ORY_H_ 12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_FACT ORY_H_
13 13
14 #include "webrtc/media/base/codec.h" 14 #include "webrtc/media/base/codec.h"
15 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" 15 #include "webrtc/media/engine/webrtcvideodecoderfactory.h"
16 16
17 @protocol RTCVideoDecoderFactory; 17 @protocol RTCVideoDecoderFactory;
18 18
19 namespace webrtc { 19 namespace webrtc {
20 20
21 class ObjCVideoDecoderFactory : public cricket::WebRtcVideoDecoderFactory { 21 class ObjCVideoDecoderFactory : public cricket::WebRtcVideoDecoderFactory {
22 public: 22 public:
23 explicit ObjCVideoDecoderFactory(id<RTCVideoDecoderFactory>); 23 explicit ObjCVideoDecoderFactory(id<RTCVideoDecoderFactory>);
24 ~ObjCVideoDecoderFactory(); 24 ~ObjCVideoDecoderFactory();
25 25
26 id<RTCVideoDecoderFactory> wrapped_decoder_factory() const; 26 id<RTCVideoDecoderFactory> wrapped_decoder_factory() const;
27 27
28 webrtc::VideoDecoder* CreateVideoDecoder( 28 VideoDecoder* CreateVideoDecoderWithParams(
29 webrtc::VideoCodecType type) override; 29 const cricket::VideoCodec& codec,
30 cricket::VideoDecoderParams params) override;
31
30 void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) override; 32 void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) override;
31 33
32 private: 34 private:
33 id<RTCVideoDecoderFactory> decoder_factory_; 35 id<RTCVideoDecoderFactory> decoder_factory_;
34 std::vector<cricket::VideoCodec> supported_codecs_; 36 std::vector<cricket::VideoCodec> supported_codecs_;
35 }; 37 };
36 38
37 } // namespace webrtc 39 } // namespace webrtc
38 40
39 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_F ACTORY_H_ 41 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_F ACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/BUILD.gn ('k') | webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698