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

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

Issue 2794033002: Revert of Move video_encoder.h and video_decoder.h to /api and create GN targets for them (Closed)
Patch Set: Created 3 years, 8 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 (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
11 #ifndef WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_ 11 #ifndef WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_
12 #define WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_ 12 #define WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/api/video_codecs/video_encoder.h"
19 #include "webrtc/media/base/codec.h" 18 #include "webrtc/media/base/codec.h"
19 #include "webrtc/video_encoder.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 // Class used to wrap external VideoEncoders to provide a fallback option on 23 // Class used to wrap external VideoEncoders to provide a fallback option on
24 // software encoding when a hardware encoder fails to encode a stream due to 24 // software encoding when a hardware encoder fails to encode a stream due to
25 // hardware restrictions, such as max resolution. 25 // hardware restrictions, such as max resolution.
26 class VideoEncoderSoftwareFallbackWrapper : public VideoEncoder { 26 class VideoEncoderSoftwareFallbackWrapper : public VideoEncoder {
27 public: 27 public:
28 VideoEncoderSoftwareFallbackWrapper(const cricket::VideoCodec& codec, 28 VideoEncoderSoftwareFallbackWrapper(const cricket::VideoCodec& codec,
29 webrtc::VideoEncoder* encoder); 29 webrtc::VideoEncoder* encoder);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 webrtc::VideoEncoder* const encoder_; 69 webrtc::VideoEncoder* const encoder_;
70 70
71 std::unique_ptr<webrtc::VideoEncoder> fallback_encoder_; 71 std::unique_ptr<webrtc::VideoEncoder> fallback_encoder_;
72 std::string fallback_implementation_name_; 72 std::string fallback_implementation_name_;
73 EncodedImageCallback* callback_; 73 EncodedImageCallback* callback_;
74 }; 74 };
75 75
76 } // namespace webrtc 76 } // namespace webrtc
77 77
78 #endif // WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_ 78 #endif // WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/videodecodersoftwarefallbackwrapper_unittest.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698