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_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_ | 11 #ifndef WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_ |
12 #define WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_ | 12 #define WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_ |
13 | 13 |
14 #include "webrtc/common_video/include/frame_callback.h" | 14 #include "webrtc/common_video/include/frame_callback.h" |
15 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 15 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 class EncodedFrameCallbackAdapter : public EncodedImageCallback { | 20 class EncodedFrameCallbackAdapter : public EncodedImageCallback { |
21 public: | 21 public: |
22 explicit EncodedFrameCallbackAdapter(EncodedFrameObserver* observer); | 22 explicit EncodedFrameCallbackAdapter(EncodedFrameObserver* observer); |
23 virtual ~EncodedFrameCallbackAdapter(); | 23 virtual ~EncodedFrameCallbackAdapter(); |
24 | 24 |
25 virtual int32_t Encoded(const EncodedImage& encodedImage, | 25 virtual int32_t Encoded(const EncodedImage& encodedImage, |
26 const CodecSpecificInfo* codecSpecificInfo, | 26 const CodecSpecificInfo* codecSpecificInfo, |
27 const RTPFragmentationHeader* fragmentation); | 27 const RTPFragmentationHeader* fragmentation); |
28 | 28 |
29 private: | 29 private: |
30 EncodedFrameObserver* observer_; | 30 EncodedFrameObserver* const observer_; |
31 }; | 31 }; |
32 | 32 |
33 } // namespace internal | 33 } // namespace internal |
34 } // namespace webrtc | 34 } // namespace webrtc |
35 | 35 |
36 #endif // WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_ | 36 #endif // WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_ |
OLD | NEW |