Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 | 56 |
| 57 struct VCMFrameCount { | 57 struct VCMFrameCount { |
| 58 uint32_t numKeyFrames; | 58 uint32_t numKeyFrames; |
| 59 uint32_t numDeltaFrames; | 59 uint32_t numDeltaFrames; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 // Callback class used for passing decoded frames which are ready to be | 62 // Callback class used for passing decoded frames which are ready to be |
| 63 // rendered. | 63 // rendered. |
| 64 class VCMReceiveCallback { | 64 class VCMReceiveCallback { |
| 65 public: | 65 public: |
| 66 virtual int32_t FrameToRender(VideoFrame& videoFrame) = 0; // NOLINT | 66 virtual int32_t FrameToRender(VideoFrame& videoFrame, int qp) = 0; // NOLINT |
|
hbos
2017/01/25 11:31:12
Can you use rtc::Optional<uint64_t> instead?
sakal
2017/01/25 12:39:34
This is something I thought about. I am not sure i
sprang_webrtc
2017/01/25 15:59:14
Agree that optional would be slightly more readabl
| |
| 67 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { | 67 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { |
| 68 return -1; | 68 return -1; |
| 69 } | 69 } |
| 70 // Called when the current receive codec changes. | 70 // Called when the current receive codec changes. |
| 71 virtual void OnIncomingPayloadType(int payload_type) {} | 71 virtual void OnIncomingPayloadType(int payload_type) {} |
| 72 virtual void OnDecoderImplementationName(const char* implementation_name) {} | 72 virtual void OnDecoderImplementationName(const char* implementation_name) {} |
| 73 | 73 |
| 74 protected: | 74 protected: |
| 75 virtual ~VCMReceiveCallback() {} | 75 virtual ~VCMReceiveCallback() {} |
| 76 }; | 76 }; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 public: | 166 public: |
| 167 virtual void RequestKeyFrame() = 0; | 167 virtual void RequestKeyFrame() = 0; |
| 168 | 168 |
| 169 protected: | 169 protected: |
| 170 virtual ~KeyFrameRequestSender() {} | 170 virtual ~KeyFrameRequestSender() {} |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace webrtc | 173 } // namespace webrtc |
| 174 | 174 |
| 175 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 175 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
| OLD | NEW |