blob: 4bb14be0d0d4c5db2ed66624b2b23c37043163b5 [file] [log] [blame]
pbos@webrtc.org1ecee9a2013-05-29 11:34:32 +00001/*
2 * Copyright (c) 2013 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_NEW_INCLUDE_VIDEO_RENDERER_H_
12#define WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_
13
14namespace webrtc {
15
16class I420VideoFrame;
17
18namespace newapi {
19
20class VideoRenderer {
21 public:
22 // This function should return as soon as possible and not block until it's
23 // time to render the frame.
24 // TODO(mflodman) Remove time_to_render_ms when I420VideoFrame contains NTP.
25 virtual void RenderFrame(const I420VideoFrame& video_frame,
26 int time_to_render_ms) = 0;
27
28 protected:
29 virtual ~VideoRenderer() {}
30};
31} // namespace newapi
32} // namespace webrtc
33
34#endif // WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_