niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
pwestin@webrtc.org | 4ea57e5 | 2012-02-02 12:21:47 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
pwestin@webrtc.org | 4ea57e5 | 2012-02-02 12:21:47 +0000 | [diff] [blame] | 9 | * |
pwestin@webrtc.org | 8d89b58 | 2012-09-20 20:49:12 +0000 | [diff] [blame] | 10 | * WEBRTC VP8 wrapper interface |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 11 | */ |
| 12 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 13 | #ifndef MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_ |
| 14 | #define MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 15 | |
Magnus Jedvert | 46a2765 | 2017-11-13 14:10:02 +0100 | [diff] [blame] | 16 | #include <memory> |
| 17 | |
Elad Alon | f2ca8c5 | 2019-03-25 13:19:43 +0100 | [diff] [blame] | 18 | #include "api/video_codecs/vp8_frame_buffer_controller.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 19 | #include "modules/video_coding/include/video_codec_interface.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | |
pwestin@webrtc.org | 8d89b58 | 2012-09-20 20:49:12 +0000 | [diff] [blame] | 21 | namespace webrtc { |
stefan@webrtc.org | a4a88f9 | 2011-12-02 08:34:05 +0000 | [diff] [blame] | 22 | |
Erik Språng | 5fbc0e0 | 2018-10-04 17:52:36 +0200 | [diff] [blame] | 23 | class VP8Encoder { |
pwestin@webrtc.org | 4ea57e5 | 2012-02-02 12:21:47 +0000 | [diff] [blame] | 24 | public: |
Erik Språng | 5fbc0e0 | 2018-10-04 17:52:36 +0200 | [diff] [blame] | 25 | static std::unique_ptr<VideoEncoder> Create(); |
Elad Alon | f2ca8c5 | 2019-03-25 13:19:43 +0100 | [diff] [blame] | 26 | |
| 27 | static std::unique_ptr<VideoEncoder> Create( |
| 28 | std::unique_ptr<Vp8FrameBufferControllerFactory> |
| 29 | frame_buffer_controller_factory); |
pwestin@webrtc.org | 4ea57e5 | 2012-02-02 12:21:47 +0000 | [diff] [blame] | 30 | }; // end of VP8Encoder class |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 31 | |
Erik Språng | 5fbc0e0 | 2018-10-04 17:52:36 +0200 | [diff] [blame] | 32 | class VP8Decoder { |
pwestin@webrtc.org | 4ea57e5 | 2012-02-02 12:21:47 +0000 | [diff] [blame] | 33 | public: |
Erik Språng | 5fbc0e0 | 2018-10-04 17:52:36 +0200 | [diff] [blame] | 34 | static std::unique_ptr<VideoDecoder> Create(); |
pwestin@webrtc.org | 4ea57e5 | 2012-02-02 12:21:47 +0000 | [diff] [blame] | 35 | }; // end of VP8Decoder class |
| 36 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 37 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 38 | #endif // MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_ |