| 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(PlayoutDelay playout_delay) { |
| 51 playout_delay_ = playout_delay; |
| 52 } |
| 53 |
| 49 /** | 54 /** |
| 50 * Get the encoded image | 55 * Get the encoded image |
| 51 */ | 56 */ |
| 52 const webrtc::EncodedImage& EncodedImage() const { | 57 const webrtc::EncodedImage& EncodedImage() const { |
| 53 return static_cast<const webrtc::EncodedImage&>(*this); | 58 return static_cast<const webrtc::EncodedImage&>(*this); |
| 54 } | 59 } |
| 55 /** | 60 /** |
| 56 * Get pointer to frame buffer | 61 * Get pointer to frame buffer |
| 57 */ | 62 */ |
| 58 const uint8_t* Buffer() const { return _buffer; } | 63 const uint8_t* Buffer() const { return _buffer; } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 128 |
| 124 // Video rotation is only set along with the last packet for each frame | 129 // 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 | 130 // (same as marker bit). This |_rotation_set| is only for debugging purpose |
| 126 // to ensure we don't set it twice for a frame. | 131 // to ensure we don't set it twice for a frame. |
| 127 bool _rotation_set; | 132 bool _rotation_set; |
| 128 }; | 133 }; |
| 129 | 134 |
| 130 } // namespace webrtc | 135 } // namespace webrtc |
| 131 | 136 |
| 132 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_ | 137 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_ |
| OLD | NEW |