blob: ec7cacee3a703df401566375e28abe8329cf05cb [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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.org9ba151b2012-06-21 10:02:13 +000011#ifndef WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_ // NOLINT
12#define WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_ // NOLINT
niklase@google.com470e71d2011-07-07 08:21:25 +000013
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000014#include "modules/video_render/main/interface/video_render_defines.h"
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000015#include "typedefs.h" // NOLINT
mflodman@webrtc.orga4863db2011-12-22 08:51:52 +000016#include "video_engine/include/vie_render.h"
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000017#include "video_engine/vie_ref_count.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000018
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000019namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000020
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000021class ViESharedData;
22
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000023class ViERenderImpl
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000024 : public ViERender,
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000025 public ViERefCount {
26 public:
27 // Implements ViERender
28 virtual int Release();
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000029 virtual int RegisterVideoRenderModule(VideoRender& render_module); // NOLINT
30 virtual int DeRegisterVideoRenderModule(
31 VideoRender& render_module); // NOLINT
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000032 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);
39 virtual int ConfigureRender(int render_id, const unsigned int z_order,
40 const float left, const float top,
41 const float right, const float bottom);
42 virtual int MirrorRenderStream(const int render_id, const bool enable,
43 const bool mirror_xaxis,
44 const bool mirror_yaxis);
45 virtual int AddRenderer(const int render_id, RawVideoType video_input_format,
46 ExternalRenderer* renderer);
niklase@google.com470e71d2011-07-07 08:21:25 +000047
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000048 protected:
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000049 explicit ViERenderImpl(ViESharedData* shared_data);
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000050 virtual ~ViERenderImpl();
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000051
52 private:
53 ViESharedData* shared_data_;
niklase@google.com470e71d2011-07-07 08:21:25 +000054};
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000055
56} // namespace webrtc
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000057
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000058#endif // WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_ // NOLINT