OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 _renderTimeMs = renderTimeMs; | 39 _renderTimeMs = renderTimeMs; |
40 } | 40 } |
41 | 41 |
42 /** | 42 /** |
43 * Set the encoded frame size | 43 * Set the encoded frame size |
44 */ | 44 */ |
45 void SetEncodedSize(uint32_t width, uint32_t height) { | 45 void SetEncodedSize(uint32_t width, uint32_t height) { |
46 _encodedWidth = width; | 46 _encodedWidth = width; |
47 _encodedHeight = height; | 47 _encodedHeight = height; |
48 } | 48 } |
| 49 |
| 50 void SetPlayoutDelay(int min_playout_delay, int max_playout_delay) { |
| 51 playout_delay_.min_ms = min_playout_delay; |
| 52 playout_delay_.max_ms = max_playout_delay; |
| 53 } |
| 54 |
49 /** | 55 /** |
50 * Get the encoded image | 56 * Get the encoded image |
51 */ | 57 */ |
52 const webrtc::EncodedImage& EncodedImage() const { | 58 const webrtc::EncodedImage& EncodedImage() const { |
53 return static_cast<const webrtc::EncodedImage&>(*this); | 59 return static_cast<const webrtc::EncodedImage&>(*this); |
54 } | 60 } |
55 /** | 61 /** |
56 * Get pointer to frame buffer | 62 * Get pointer to frame buffer |
57 */ | 63 */ |
58 const uint8_t* Buffer() const { return _buffer; } | 64 const uint8_t* Buffer() const { return _buffer; } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 129 |
124 // Video rotation is only set along with the last packet for each frame | 130 // Video rotation is only set along with the last packet for each frame |
125 // (same as marker bit). This |_rotation_set| is only for debugging purpose | 131 // (same as marker bit). This |_rotation_set| is only for debugging purpose |
126 // to ensure we don't set it twice for a frame. | 132 // to ensure we don't set it twice for a frame. |
127 bool _rotation_set; | 133 bool _rotation_set; |
128 }; | 134 }; |
129 | 135 |
130 } // namespace webrtc | 136 } // namespace webrtc |
131 | 137 |
132 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_ | 138 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_ |
OLD | NEW |