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

Unified Diff: webrtc/video_decoder.h

Issue 2518263003: Move VideoDecoderSoftwareFallbackWrapper from webrtc/video_decoder.h to webrtc/media/engine/ (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/video_decoder_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_decoder.h
diff --git a/webrtc/video_decoder.h b/webrtc/video_decoder.h
index 7a41840ba8fbf9b3d357c0bd730e84d1cd1c47dd..8c89ce97717c76a269a4b32ff0f4fa7cf14d2a75 100644
--- a/webrtc/video_decoder.h
+++ b/webrtc/video_decoder.h
@@ -83,44 +83,6 @@ class VideoDecoder {
virtual const char* ImplementationName() const { return "unknown"; }
};
-// Class used to wrap external VideoDecoders to provide a fallback option on
-// software decoding when a hardware decoder fails to decode a stream due to
-// hardware restrictions, such as max resolution.
-class VideoDecoderSoftwareFallbackWrapper : public webrtc::VideoDecoder {
- public:
- VideoDecoderSoftwareFallbackWrapper(VideoCodecType codec_type,
- VideoDecoder* decoder);
-
- int32_t InitDecode(const VideoCodec* codec_settings,
- int32_t number_of_cores) override;
-
- int32_t Decode(const EncodedImage& input_image,
- bool missing_frames,
- const RTPFragmentationHeader* fragmentation,
- const CodecSpecificInfo* codec_specific_info,
- int64_t render_time_ms) override;
-
- int32_t RegisterDecodeCompleteCallback(
- DecodedImageCallback* callback) override;
-
- int32_t Release() override;
- bool PrefersLateDecoding() const override;
-
- const char* ImplementationName() const override;
-
- private:
- bool InitFallbackDecoder();
-
- const DecoderType decoder_type_;
- VideoDecoder* const decoder_;
-
- VideoCodec codec_settings_;
- int32_t number_of_cores_;
- std::string fallback_implementation_name_;
- std::unique_ptr<VideoDecoder> fallback_decoder_;
- DecodedImageCallback* callback_;
-};
-
// Video decoder class to be used for unknown codecs. Doesn't support decoding
// but logs messages to LS_ERROR.
class NullVideoDecoder : public VideoDecoder {
« no previous file with comments | « webrtc/video/video_decoder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698