2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
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.
11 #ifndef WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_FRAME_CALLBACK_H_
12 #define WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_FRAME_CALLBACK_H_
16 #include "webrtc/common_types.h"
24 EncodedFrame() : data_(NULL), length_(0), frame_type_(kFrameEmpty) {}
25 EncodedFrame(const uint8_t* data, size_t length, FrameType frame_type)
26 : data_(data), length_(length), frame_type_(frame_type) {}
30 const FrameType frame_type_;
33 class I420FrameCallback {
35 // This function is called with a I420 frame allowing the user to modify the
37 virtual void FrameCallback(I420VideoFrame* video_frame) = 0;
40 virtual ~I420FrameCallback() {}
43 class EncodedFrameObserver {
45 virtual void EncodedFrameCallback(const EncodedFrame& encoded_frame) = 0;
48 virtual ~EncodedFrameObserver() {}
53 #endif // WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_FRAME_CALLBACK_H_