blob: 67d6a784a7e778bcf78b84361c8c64fe1cbd21ac [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
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.org813b4ef2011-12-20 10:39:30 +000011#ifndef WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
mflodman@webrtc.orga4863db2011-12-22 08:51:52 +000014#include "video_engine/include/vie_external_codec.h"
mflodman@webrtc.org813b4ef2011-12-20 10:39:30 +000015#include "video_engine/vie_ref_count.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000016
mflodman@webrtc.org813b4ef2011-12-20 10:39:30 +000017namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000018
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000019class ViESharedData;
20
mflodman@webrtc.org813b4ef2011-12-20 10:39:30 +000021class ViEExternalCodecImpl
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000022 : public ViEExternalCodec,
mflodman@webrtc.org813b4ef2011-12-20 10:39:30 +000023 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,
29 VideoEncoder* encoder);
30 virtual int DeRegisterExternalSendCodec(const int video_channel,
31 const unsigned char pl_type);
32 virtual int RegisterExternalReceiveCodec(const int video_channel,
33 const unsigned int pl_type,
34 VideoDecoder* decoder,
35 bool decoder_render = false,
36 int render_delay = 0);
37 virtual int DeRegisterExternalReceiveCodec(const int video_channel,
38 const unsigned char pl_type);
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000039
40 protected:
41 ViEExternalCodecImpl(ViESharedData* shared_data);
42 virtual ~ViEExternalCodecImpl();
43
44 private:
45 ViESharedData* shared_data_;
niklase@google.com470e71d2011-07-07 08:21:25 +000046};
mflodman@webrtc.org813b4ef2011-12-20 10:39:30 +000047
48} // namespace webrtc
49
50#endif // WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_