Dale Sather | ccde3cc | 2016-03-03 15:44:44 -0800 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_H_ |
| 6 | #define SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_H_ |
| 7 | |
| 8 | #include <memory> |
| 9 | |
| 10 | #include "services/media/framework/parts/decoder.h" |
| 11 | |
| 12 | namespace mojo { |
| 13 | namespace media { |
| 14 | |
| 15 | // Abstract base class for ffmpeg-based decoders, just the create function. |
| 16 | // We don't want the base class implementation here, because we don't want |
| 17 | // dependent targets to have to deal with ffmpeg includes. |
| 18 | class FfmpegDecoder : public Decoder { |
| 19 | public: |
| 20 | // Creates an ffmpeg-based Decoder object for a given media type. |
Dale Sather | 4ccdd21 | 2016-03-23 09:27:19 -0700 | [diff] [blame] | 21 | static Result Create(const StreamType& stream_type, |
| 22 | std::shared_ptr<Decoder>* decoder_out); |
Dale Sather | ccde3cc | 2016-03-03 15:44:44 -0800 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | } // namespace media |
| 26 | } // namespace mojo |
| 27 | |
Dale Sather | 4ccdd21 | 2016-03-23 09:27:19 -0700 | [diff] [blame] | 28 | #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_H_ |