| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 114   // Return true if underlying plane buffers are of zero size, false if not. | 114   // Return true if underlying plane buffers are of zero size, false if not. | 
| 115   bool IsZeroSize() const; | 115   bool IsZeroSize() const; | 
| 116 | 116 | 
| 117   // Return the underlying buffer. Never nullptr for a properly | 117   // Return the underlying buffer. Never nullptr for a properly | 
| 118   // initialized VideoFrame. | 118   // initialized VideoFrame. | 
| 119   // Creating a new reference breaks the HasOneRef and IsMutable | 119   // Creating a new reference breaks the HasOneRef and IsMutable | 
| 120   // logic. So return a const ref to our reference. | 120   // logic. So return a const ref to our reference. | 
| 121   const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer() | 121   const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer() | 
| 122       const; | 122       const; | 
| 123 | 123 | 
| 124   // Set the underlying buffer. |  | 
| 125   void set_video_frame_buffer( |  | 
| 126       const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer); |  | 
| 127 |  | 
| 128   // Convert native-handle frame to memory-backed I420 frame. Should not be |  | 
| 129   // called on a non-native-handle frame. |  | 
| 130   VideoFrame ConvertNativeToI420Frame() const; |  | 
| 131 |  | 
| 132  private: | 124  private: | 
| 133   // An opaque reference counted handle that stores the pixel data. | 125   // An opaque reference counted handle that stores the pixel data. | 
| 134   rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer_; | 126   rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer_; | 
| 135   uint32_t timestamp_; | 127   uint32_t timestamp_; | 
| 136   int64_t ntp_time_ms_; | 128   int64_t ntp_time_ms_; | 
| 137   int64_t render_time_ms_; | 129   int64_t render_time_ms_; | 
| 138   VideoRotation rotation_; | 130   VideoRotation rotation_; | 
| 139 }; | 131 }; | 
| 140 | 132 | 
| 141 | 133 | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 181   int qp_ = -1;  // Quantizer value. | 173   int qp_ = -1;  // Quantizer value. | 
| 182 | 174 | 
| 183   // When an application indicates non-zero values here, it is taken as an | 175   // When an application indicates non-zero values here, it is taken as an | 
| 184   // indication that all future frames will be constrained with those limits | 176   // indication that all future frames will be constrained with those limits | 
| 185   // until the application indicates a change again. | 177   // until the application indicates a change again. | 
| 186   PlayoutDelay playout_delay_ = {-1, -1}; | 178   PlayoutDelay playout_delay_ = {-1, -1}; | 
| 187 }; | 179 }; | 
| 188 | 180 | 
| 189 }  // namespace webrtc | 181 }  // namespace webrtc | 
| 190 #endif  // WEBRTC_VIDEO_FRAME_H_ | 182 #endif  // WEBRTC_VIDEO_FRAME_H_ | 
| OLD | NEW | 
|---|