• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
14 #include "webrtc/modules/video_render/include/video_render_defines.h"
15 #include "webrtc/typedefs.h"
16 #include "webrtc/video_engine/include/vie_render.h"
17 #include "webrtc/video_engine/vie_ref_count.h"
18 
19 namespace webrtc {
20 
21 class ViESharedData;
22 
23 class 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);
48   virtual int AddRenderCallback(int render_id,
49                                 VideoRenderCallback* callback) OVERRIDE;
50 
51  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_
62