OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_FRAME_CALLBACK_H_ | 11 #ifndef WEBRTC_COMMON_VIDEO_INCLUDE_FRAME_CALLBACK_H_ |
12 #define WEBRTC_FRAME_CALLBACK_H_ | 12 #define WEBRTC_COMMON_VIDEO_INCLUDE_FRAME_CALLBACK_H_ |
13 | 13 |
14 #include <stddef.h> | 14 #include <stddef.h> |
15 #include <stdint.h> | 15 #include <stdint.h> |
16 | 16 |
17 #include "webrtc/common_types.h" | 17 #include "webrtc/common_types.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 class VideoFrame; | 21 class VideoFrame; |
22 | 22 |
(...skipping 22 matching lines...) Expand all Loading... |
45 public: | 45 public: |
46 virtual void EncodedFrameCallback(const EncodedFrame& encoded_frame) = 0; | 46 virtual void EncodedFrameCallback(const EncodedFrame& encoded_frame) = 0; |
47 virtual void OnEncodeTiming(int64_t capture_ntp_ms, int encode_duration_ms) {} | 47 virtual void OnEncodeTiming(int64_t capture_ntp_ms, int encode_duration_ms) {} |
48 | 48 |
49 protected: | 49 protected: |
50 virtual ~EncodedFrameObserver() {} | 50 virtual ~EncodedFrameObserver() {} |
51 }; | 51 }; |
52 | 52 |
53 } // namespace webrtc | 53 } // namespace webrtc |
54 | 54 |
55 #endif // WEBRTC_FRAME_CALLBACK_H_ | 55 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_FRAME_CALLBACK_H_ |
OLD | NEW |