blob: 370a7a345c345e86b4055f6bc31dd2e7a97eb6b7 [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +00001/*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
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
11#ifndef WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_
13
andrew@webrtc.org07e96da2012-10-31 05:22:11 +000014#include "webrtc/modules/video_render/include/video_render_defines.h"
pbos@webrtc.org281cff82013-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"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000018
19namespace webrtc {
20
21class ViESharedData;
22
23class ViERenderImpl
24 : public ViERender,
25 public ViERefCount {
26 public:
27 // Implements ViERender
28 virtual int Release();
29 virtual int RegisterVideoRenderModule(VideoRender& render_module); // NOLINT
30 virtual int DeRegisterVideoRenderModule(
31 VideoRender& render_module); // NOLINT
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);
39 virtual int SetExpectedRenderDelay(int render_id, int render_delay);
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);
pbos@webrtc.org30519512013-11-20 13:19:54 +000048 virtual int AddRenderCallback(int render_id,
49 VideoRenderCallback* callback) OVERRIDE;
50
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000051 protected:
52 explicit ViERenderImpl(ViESharedData* shared_data);
53 virtual ~ViERenderImpl();
54
55 private:
56 ViESharedData* shared_data_;
57};
58
59} // namespace webrtc
60
61#endif // WEBRTC_VIDEO_ENGINE_VIE_RENDER_IMPL_H_