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