niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
mflodman@webrtc.org | 9ba151b | 2012-06-21 10:02:13 +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. |
| 9 | */ |
| 10 | |
mflodman@webrtc.org | e06ca3c | 2012-06-29 13:20:14 +0000 | [diff] [blame] | 11 | #ifndef WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_ |
| 12 | #define WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
pbos@webrtc.org | f5d4cb1 | 2013-05-17 13:44:48 +0000 | [diff] [blame] | 14 | #include "webrtc/video_engine/include/vie_external_codec.h" |
| 15 | #include "webrtc/video_engine/vie_ref_count.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 16 | |
mflodman@webrtc.org | 813b4ef | 2011-12-20 10:39:30 +0000 | [diff] [blame] | 17 | namespace webrtc { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 18 | |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 19 | class ViESharedData; |
| 20 | |
mflodman@webrtc.org | 813b4ef | 2011-12-20 10:39:30 +0000 | [diff] [blame] | 21 | class ViEExternalCodecImpl |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 22 | : public ViEExternalCodec, |
mflodman@webrtc.org | 813b4ef | 2011-12-20 10:39:30 +0000 | [diff] [blame] | 23 | public ViERefCount { |
| 24 | public: |
| 25 | // Implements ViEExternalCodec. |
| 26 | virtual int Release(); |
| 27 | virtual int RegisterExternalSendCodec(const int video_channel, |
| 28 | const unsigned char pl_type, |
stefan@webrtc.org | fcd8585 | 2013-01-09 08:35:40 +0000 | [diff] [blame] | 29 | VideoEncoder* encoder, |
| 30 | bool internal_source = false); |
mflodman@webrtc.org | 813b4ef | 2011-12-20 10:39:30 +0000 | [diff] [blame] | 31 | virtual int DeRegisterExternalSendCodec(const int video_channel, |
| 32 | const unsigned char pl_type); |
| 33 | virtual int RegisterExternalReceiveCodec(const int video_channel, |
| 34 | const unsigned int pl_type, |
| 35 | VideoDecoder* decoder, |
| 36 | bool decoder_render = false, |
| 37 | int render_delay = 0); |
| 38 | virtual int DeRegisterExternalReceiveCodec(const int video_channel, |
| 39 | const unsigned char pl_type); |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 40 | |
| 41 | protected: |
mflodman@webrtc.org | 9ba151b | 2012-06-21 10:02:13 +0000 | [diff] [blame] | 42 | explicit ViEExternalCodecImpl(ViESharedData* shared_data); |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 43 | virtual ~ViEExternalCodecImpl(); |
| 44 | |
| 45 | private: |
| 46 | ViESharedData* shared_data_; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 47 | }; |
mflodman@webrtc.org | 813b4ef | 2011-12-20 10:39:30 +0000 | [diff] [blame] | 48 | |
| 49 | } // namespace webrtc |
| 50 | |
mflodman@webrtc.org | e06ca3c | 2012-06-29 13:20:14 +0000 | [diff] [blame] | 51 | #endif // WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_ |