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

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

Issue 2580963004: Put iOS H264 High profile under a field trial (Closed)
Patch Set: Created 4 years 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 (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 10 matching lines...) Expand all
21 public: 21 public:
22 VideoToolboxVideoEncoderFactory(); 22 VideoToolboxVideoEncoderFactory();
23 ~VideoToolboxVideoEncoderFactory(); 23 ~VideoToolboxVideoEncoderFactory();
24 24
25 // WebRtcVideoEncoderFactory implementation. 25 // WebRtcVideoEncoderFactory implementation.
26 VideoEncoder* CreateVideoEncoder(const cricket::VideoCodec& codec) override; 26 VideoEncoder* CreateVideoEncoder(const cricket::VideoCodec& codec) override;
27 void DestroyVideoEncoder(VideoEncoder* encoder) override; 27 void DestroyVideoEncoder(VideoEncoder* encoder) override;
28 const std::vector<cricket::VideoCodec>& supported_codecs() const override; 28 const std::vector<cricket::VideoCodec>& supported_codecs() const override;
29 29
30 private: 30 private:
31 std::vector<cricket::VideoCodec> supported_codecs_; 31 // TODO(magjed): Mutable because it depends on a field trial and it is
32 // recalculated every call to supported_codecs().
33 mutable std::vector<cricket::VideoCodec> supported_codecs_;
32 }; 34 };
33 35
34 class VideoToolboxVideoDecoderFactory 36 class VideoToolboxVideoDecoderFactory
35 : public cricket::WebRtcVideoDecoderFactory { 37 : public cricket::WebRtcVideoDecoderFactory {
36 public: 38 public:
37 VideoToolboxVideoDecoderFactory(); 39 VideoToolboxVideoDecoderFactory();
38 ~VideoToolboxVideoDecoderFactory(); 40 ~VideoToolboxVideoDecoderFactory();
39 41
40 // WebRtcVideoDecoderFactory implementation. 42 // WebRtcVideoDecoderFactory implementation.
41 VideoDecoder* CreateVideoDecoder(VideoCodecType type) override; 43 VideoDecoder* CreateVideoDecoder(VideoCodecType type) override;
42 void DestroyVideoDecoder(VideoDecoder* decoder) override; 44 void DestroyVideoDecoder(VideoDecoder* decoder) override;
43 45
44 private: 46 private:
45 std::vector<cricket::VideoCodec> supported_codecs_; 47 std::vector<cricket::VideoCodec> supported_codecs_;
46 }; 48 };
47 49
48 } // namespace webrtc 50 } // namespace webrtc
49 51
50 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_VIDEOTOOLBOXVIDEOCODECFACTORY_H_ 52 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_VIDEOTOOLBOXVIDEOCODECFACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698