2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-06-21 10:02:13 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#ifndef WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_
|
|
|
|
|
#define WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_
|
2011-12-20 10:39:30 +00:00
|
|
|
|
2013-05-17 13:44:48 +00:00
|
|
|
#include "webrtc/video_engine/include/vie_external_codec.h"
|
|
|
|
|
#include "webrtc/video_engine/vie_ref_count.h"
|
2011-12-20 10:39:30 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2012-01-25 13:42:03 +00:00
|
|
|
class ViESharedData;
|
|
|
|
|
|
2011-12-20 10:39:30 +00:00
|
|
|
class ViEExternalCodecImpl
|
2012-01-25 13:42:03 +00:00
|
|
|
: public ViEExternalCodec,
|
2011-12-20 10:39:30 +00:00
|
|
|
public ViERefCount {
|
|
|
|
|
public:
|
|
|
|
|
// Implements ViEExternalCodec.
|
|
|
|
|
virtual int Release();
|
|
|
|
|
virtual int RegisterExternalSendCodec(const int video_channel,
|
|
|
|
|
const unsigned char pl_type,
|
2013-01-09 08:35:40 +00:00
|
|
|
VideoEncoder* encoder,
|
|
|
|
|
bool internal_source = false);
|
2011-12-20 10:39:30 +00:00
|
|
|
virtual int DeRegisterExternalSendCodec(const int video_channel,
|
|
|
|
|
const unsigned char pl_type);
|
|
|
|
|
virtual int RegisterExternalReceiveCodec(const int video_channel,
|
|
|
|
|
const unsigned int pl_type,
|
|
|
|
|
VideoDecoder* decoder,
|
|
|
|
|
bool decoder_render = false,
|
|
|
|
|
int render_delay = 0);
|
|
|
|
|
virtual int DeRegisterExternalReceiveCodec(const int video_channel,
|
|
|
|
|
const unsigned char pl_type);
|
2012-01-25 13:42:03 +00:00
|
|
|
|
|
|
|
|
protected:
|
2012-06-21 10:02:13 +00:00
|
|
|
explicit ViEExternalCodecImpl(ViESharedData* shared_data);
|
2012-01-25 13:42:03 +00:00
|
|
|
virtual ~ViEExternalCodecImpl();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
ViESharedData* shared_data_;
|
2011-12-20 10:39:30 +00:00
|
|
|
};
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-12-20 10:39:30 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2012-06-29 13:20:14 +00:00
|
|
|
#endif // WEBRTC_VIDEO_ENGINE_VIE_EXTERNAL_CODEC_IMPL_H_
|