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 28 matching lines...) Expand all Loading... |
39 virtual ~VCMDecodedFrameCallback(); | 39 virtual ~VCMDecodedFrameCallback(); |
40 void SetUserReceiveCallback(VCMReceiveCallback* receiveCallback); | 40 void SetUserReceiveCallback(VCMReceiveCallback* receiveCallback); |
41 VCMReceiveCallback* UserReceiveCallback(); | 41 VCMReceiveCallback* UserReceiveCallback(); |
42 | 42 |
43 virtual int32_t Decoded(VideoFrame& decodedImage); | 43 virtual int32_t Decoded(VideoFrame& decodedImage); |
44 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId); | 44 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId); |
45 virtual int32_t ReceivedDecodedFrame(const uint64_t pictureId); | 45 virtual int32_t ReceivedDecodedFrame(const uint64_t pictureId); |
46 | 46 |
47 uint64_t LastReceivedPictureID() const; | 47 uint64_t LastReceivedPictureID() const; |
48 | 48 |
49 int32_t Map(uint32_t timestamp, VCMFrameInformation* frameInfo); | 49 void Map(uint32_t timestamp, VCMFrameInformation* frameInfo); |
50 int32_t Pop(uint32_t timestamp); | 50 int32_t Pop(uint32_t timestamp); |
51 | 51 |
52 private: | 52 private: |
53 // Protect |_receiveCallback| and |_timestampMap|. | 53 // Protect |_receiveCallback| and |_timestampMap|. |
54 CriticalSectionWrapper* _critSect; | 54 CriticalSectionWrapper* _critSect; |
55 Clock* _clock; | 55 Clock* _clock; |
56 VCMReceiveCallback* _receiveCallback; // Guarded by |_critSect|. | 56 VCMReceiveCallback* _receiveCallback; // Guarded by |_critSect|. |
57 VCMTiming& _timing; | 57 VCMTiming& _timing; |
58 VCMTimestampMap _timestampMap; // Guarded by |_critSect|. | 58 VCMTimestampMap _timestampMap; // Guarded by |_critSect|. |
59 uint64_t _lastReceivedPictureID; | 59 uint64_t _lastReceivedPictureID; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 uint32_t _nextFrameInfoIdx; | 103 uint32_t _nextFrameInfoIdx; |
104 VideoDecoder& _decoder; | 104 VideoDecoder& _decoder; |
105 VideoCodecType _codecType; | 105 VideoCodecType _codecType; |
106 bool _isExternal; | 106 bool _isExternal; |
107 bool _keyFrameDecoded; | 107 bool _keyFrameDecoded; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace webrtc | 110 } // namespace webrtc |
111 | 111 |
112 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ | 112 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ |
OLD | NEW |