blob: c41979407df3e967893c18b480177c6bc4344051 [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.orge06ca3c2012-06-29 13:20:14 +000011#ifndef WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
andrew@webrtc.org9841d922012-10-31 05:22:11 +000014#include "webrtc/modules/video_render/include/video_render_defines.h"
pbos@webrtc.orgf5d4cb12013-05-17 13:44:48 +000015#include "webrtc/typedefs.h"
16#include "webrtc/video_engine/include/vie_render.h"
17#include "webrtc/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);
mflodman@webrtc.orgf4f21452012-09-28 11:27:35 +000039 virtual int SetExpectedRenderDelay(int render_id, int render_delay);
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000040 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.com470e71d2011-07-07 08:21:25 +000048
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000049 protected:
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000050 explicit ViERenderImpl(ViESharedData* shared_data);
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000051 virtual ~ViERenderImpl();
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000052
53 private:
54 ViESharedData* shared_data_;
niklase@google.com470e71d2011-07-07 08:21:25 +000055};
mflodman@webrtc.org8da24172011-12-19 14:18:41 +000056
57} // namespace webrtc
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000058
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000059#endif // WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_