OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 uint32_t _encodedHeight = 0; | 53 uint32_t _encodedHeight = 0; |
54 uint32_t _timeStamp = 0; | 54 uint32_t _timeStamp = 0; |
55 // NTP time of the capture time in local timebase in milliseconds. | 55 // NTP time of the capture time in local timebase in milliseconds. |
56 int64_t ntp_time_ms_ = 0; | 56 int64_t ntp_time_ms_ = 0; |
57 int64_t capture_time_ms_ = 0; | 57 int64_t capture_time_ms_ = 0; |
58 FrameType _frameType = kVideoFrameDelta; | 58 FrameType _frameType = kVideoFrameDelta; |
59 uint8_t* _buffer; | 59 uint8_t* _buffer; |
60 size_t _length; | 60 size_t _length; |
61 size_t _size; | 61 size_t _size; |
62 VideoRotation rotation_ = kVideoRotation_0; | 62 VideoRotation rotation_ = kVideoRotation_0; |
63 VideoContentType content_type_ = VideoContentType::UNSPECIFIED; | 63 mutable VideoContentType content_type_ = VideoContentType::UNSPECIFIED; |
sprang_webrtc
2017/07/26 14:13:42
why mutable?
ilnik
2017/07/26 14:49:48
Because it's modified in VCMEncodedFrameCallback::
| |
64 bool _completeFrame = false; | 64 bool _completeFrame = false; |
65 AdaptReason adapt_reason_; | 65 AdaptReason adapt_reason_; |
66 int qp_ = -1; // Quantizer value. | 66 int qp_ = -1; // Quantizer value. |
67 | 67 |
68 // When an application indicates non-zero values here, it is taken as an | 68 // When an application indicates non-zero values here, it is taken as an |
69 // indication that all future frames will be constrained with those limits | 69 // indication that all future frames will be constrained with those limits |
70 // until the application indicates a change again. | 70 // until the application indicates a change again. |
71 PlayoutDelay playout_delay_ = {-1, -1}; | 71 PlayoutDelay playout_delay_ = {-1, -1}; |
72 | 72 |
73 // Timing information should be updatable on const instances. | 73 // Timing information should be updatable on const instances. |
74 mutable struct Timing { | 74 mutable struct Timing { |
75 bool is_timing_frame = false; | 75 bool is_timing_frame = false; |
76 int64_t encode_start_ms = 0; | 76 int64_t encode_start_ms = 0; |
77 int64_t encode_finish_ms = 0; | 77 int64_t encode_finish_ms = 0; |
78 int64_t packetization_finish_ms = 0; | 78 int64_t packetization_finish_ms = 0; |
79 int64_t pacer_exit_ms = 0; | 79 int64_t pacer_exit_ms = 0; |
80 int64_t network_timestamp_ms = 0; | 80 int64_t network_timestamp_ms = 0; |
81 int64_t network2_timestamp_ms = 0; | 81 int64_t network2_timestamp_ms = 0; |
82 int64_t receive_start_ms = 0; | 82 int64_t receive_start_ms = 0; |
83 int64_t receive_finish_ms = 0; | 83 int64_t receive_finish_ms = 0; |
84 } timing_; | 84 } timing_; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace webrtc | 87 } // namespace webrtc |
88 | 88 |
89 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_H_ | 89 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_H_ |
OLD | NEW |