New VideoEngine API implementation on top of old one, first steps.

BUG=1668
R=mflodman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1360004

git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4044 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/video_engine/internal/video_send_stream.h b/video_engine/internal/video_send_stream.h
new file mode 100644
index 0000000..b178033
--- /dev/null
+++ b/video_engine/internal/video_send_stream.h
@@ -0,0 +1,82 @@
+/*
+ *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
+ *
+ *  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.
+ */
+
+#ifndef WEBRTC_VIDEO_ENGINE_VIDEO_SEND_STREAM_IMPL_H_
+#define WEBRTC_VIDEO_ENGINE_VIDEO_SEND_STREAM_IMPL_H_
+
+#include <vector>
+
+#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
+#include "webrtc/video_engine/new_include/video_send_stream.h"
+#include "webrtc/video_engine/new_include/video_receive_stream.h"
+
+namespace webrtc {
+
+class VideoEngine;
+class ViEBase;
+class ViECapture;
+class ViECodec;
+class ViEExternalCapture;
+class ViENetwork;
+class ViERTP_RTCP;
+
+namespace internal {
+class VideoSendStream : public newapi::VideoSendStream,
+                        public newapi::VideoSendStreamInput,
+                        public webrtc::Transport {
+ public:
+  VideoSendStream(newapi::Transport* transport,
+                  webrtc::VideoEngine* video_engine,
+                  const newapi::VideoSendStreamConfig& send_stream_config);
+
+  virtual ~VideoSendStream();
+
+  virtual void PutFrame(const I420VideoFrame& frame, int32_t delta_capture_time)
+      OVERRIDE;
+
+  virtual newapi::VideoSendStreamInput* Input() OVERRIDE;
+
+  virtual void StartSend() OVERRIDE;
+
+  virtual void StopSend() OVERRIDE;
+
+  virtual void GetSendStatistics(
+      std::vector<newapi::SendStatistics>* statistics) OVERRIDE;
+
+  virtual bool SetTargetBitrate(int min_bitrate, int max_bitrate,
+                                const std::vector<SimulcastStream>& streams)
+      OVERRIDE;
+
+  virtual void GetSendCodec(VideoCodec* send_codec) OVERRIDE;
+
+  virtual int SendPacket(int /*channel*/, const void* packet, int length)
+      OVERRIDE;
+
+  virtual int SendRTCPPacket(int /*channel*/, const void* packet, int length)
+      OVERRIDE;
+
+ private:
+  newapi::Transport* transport_;
+  newapi::VideoSendStreamConfig config_;
+
+  ViEBase* video_engine_base_;
+  ViECapture* capture_;
+  ViECodec* codec_;
+  ViEExternalCapture* external_capture_;
+  ViENetwork* network_;
+  ViERTP_RTCP* rtp_rtcp_;
+
+  int channel_;
+  int capture_id_;
+};
+}  // namespace internal
+}  // namespace webrtc
+
+#endif  // WEBRTC_VIDEO_ENGINE_INTERNAL_VIDEO_SEND_STREAM_H_