blob: 7f542450ab648fd9bf1341306262ed92207da575 [file] [log] [blame]
pbos@webrtc.org4988d942013-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_FRAME_CALLBACK_H_
12#define WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_FRAME_CALLBACK_H_
13
14namespace webrtc {
15
16class I420VideoFrame;
17
pbos@webrtc.org4988d942013-05-29 11:34:32 +000018struct EncodedFrame;
19
20class I420FrameCallback {
21 public:
22 // This function is called with a I420 frame allowing the user to modify the
23 // frame content.
24 virtual void FrameCallback(I420VideoFrame* video_frame) = 0;
25
26 protected:
27 virtual ~I420FrameCallback() {}
28};
29
30class EncodedFrameObserver {
31 public:
32 virtual void EncodedFrameCallback(const EncodedFrame& encoded_frame) = 0;
33
34 protected:
35 virtual ~EncodedFrameObserver() {}
36};
pbos@webrtc.org4988d942013-05-29 11:34:32 +000037} // namespace webrtc
38
39#endif // WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_FRAME_CALLBACK_H_