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_RENDER_IMPL_H_ |
| 12 | #define WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
andrew@webrtc.org | 9841d92 | 2012-10-31 05:22:11 +0000 | [diff] [blame^] | 14 | #include "webrtc/modules/video_render/include/video_render_defines.h" |
mflodman@webrtc.org | 9ba151b | 2012-06-21 10:02:13 +0000 | [diff] [blame] | 15 | #include "typedefs.h" // NOLINT |
mflodman@webrtc.org | a4863db | 2011-12-22 08:51:52 +0000 | [diff] [blame] | 16 | #include "video_engine/include/vie_render.h" |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 17 | #include "video_engine/vie_ref_count.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 18 | |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 19 | namespace webrtc { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 21 | class ViESharedData; |
| 22 | |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 23 | class ViERenderImpl |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 24 | : public ViERender, |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 25 | public ViERefCount { |
| 26 | public: |
| 27 | // Implements ViERender |
| 28 | virtual int Release(); |
mflodman@webrtc.org | 9ba151b | 2012-06-21 10:02:13 +0000 | [diff] [blame] | 29 | virtual int RegisterVideoRenderModule(VideoRender& render_module); // NOLINT |
| 30 | virtual int DeRegisterVideoRenderModule( |
| 31 | VideoRender& render_module); // NOLINT |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 32 | virtual int AddRenderer(const int render_id, void* window, |
| 33 | const unsigned int z_order, const float left, |
| 34 | const float top, const float right, |
| 35 | const float bottom); |
| 36 | virtual int RemoveRenderer(const int render_id); |
| 37 | virtual int StartRender(const int render_id); |
| 38 | virtual int StopRender(const int render_id); |
mflodman@webrtc.org | f4f2145 | 2012-09-28 11:27:35 +0000 | [diff] [blame] | 39 | virtual int SetExpectedRenderDelay(int render_id, int render_delay); |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 40 | virtual int ConfigureRender(int render_id, const unsigned int z_order, |
| 41 | const float left, const float top, |
| 42 | const float right, const float bottom); |
| 43 | virtual int MirrorRenderStream(const int render_id, const bool enable, |
| 44 | const bool mirror_xaxis, |
| 45 | const bool mirror_yaxis); |
| 46 | virtual int AddRenderer(const int render_id, RawVideoType video_input_format, |
| 47 | ExternalRenderer* renderer); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 48 | |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 49 | protected: |
mflodman@webrtc.org | 9ba151b | 2012-06-21 10:02:13 +0000 | [diff] [blame] | 50 | explicit ViERenderImpl(ViESharedData* shared_data); |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 51 | virtual ~ViERenderImpl(); |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 52 | |
| 53 | private: |
| 54 | ViESharedData* shared_data_; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 55 | }; |
mflodman@webrtc.org | 8da2417 | 2011-12-19 14:18:41 +0000 | [diff] [blame] | 56 | |
| 57 | } // namespace webrtc |
mflodman@webrtc.org | b11424b | 2012-01-25 13:42:03 +0000 | [diff] [blame] | 58 | |
mflodman@webrtc.org | e06ca3c | 2012-06-29 13:20:14 +0000 | [diff] [blame] | 59 | #endif // WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_ |