pbos@webrtc.org | 4988d94 | 2013-05-29 11:34:32 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 14 | namespace webrtc { |
| 15 | |
| 16 | class I420VideoFrame; |
| 17 | |
pbos@webrtc.org | 4988d94 | 2013-05-29 11:34:32 +0000 | [diff] [blame] | 18 | struct EncodedFrame; |
| 19 | |
| 20 | class 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 | |
| 30 | class EncodedFrameObserver { |
| 31 | public: |
| 32 | virtual void EncodedFrameCallback(const EncodedFrame& encoded_frame) = 0; |
| 33 | |
| 34 | protected: |
| 35 | virtual ~EncodedFrameObserver() {} |
| 36 | }; |
pbos@webrtc.org | 4988d94 | 2013-05-29 11:34:32 +0000 | [diff] [blame] | 37 | } // namespace webrtc |
| 38 | |
| 39 | #endif // WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_FRAME_CALLBACK_H_ |