| 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 |
| 11 #ifndef WEBRTC_VIDEO_FRAME_H_ | 11 #ifndef WEBRTC_VIDEO_FRAME_H_ |
| 12 #define WEBRTC_VIDEO_FRAME_H_ | 12 #define WEBRTC_VIDEO_FRAME_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/scoped_ref_ptr.h" | 14 #include "webrtc/base/scoped_ref_ptr.h" |
| 15 #include "webrtc/base/timeutils.h" | 15 #include "webrtc/base/timeutils.h" |
| 16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
| 17 #include "webrtc/common_video/include/video_frame_buffer.h" | 17 #include "webrtc/common_video/include/video_frame_buffer.h" |
| 18 #include "webrtc/common_video/rotation.h" | 18 #include "webrtc/common_video/rotation.h" |
| 19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 // TODO(nisse): This class duplicates cricket::VideoFrame. There's |
| 24 // ongoing work to merge the classes. See |
| 25 // https://bugs.chromium.org/p/webrtc/issues/detail?id=5682. |
| 23 class VideoFrame { | 26 class VideoFrame { |
| 24 public: | 27 public: |
| 25 // TODO(nisse): Deprecated. Using the default constructor violates the | 28 // TODO(nisse): Deprecated. Using the default constructor violates the |
| 26 // reasonable assumption that video_frame_buffer() returns a valid buffer. | 29 // reasonable assumption that video_frame_buffer() returns a valid buffer. |
| 27 VideoFrame(); | 30 VideoFrame(); |
| 28 | 31 |
| 29 // TODO(nisse): This constructor is consistent with | 32 // TODO(nisse): This constructor is consistent with |
| 30 // cricket::WebRtcVideoFrame. After the class | 33 // cricket::WebRtcVideoFrame. After the class |
| 31 // cricket::WebRtcVideoFrame and its baseclass cricket::VideoFrame | 34 // cricket::WebRtcVideoFrame and its baseclass cricket::VideoFrame |
| 32 // are deleted, we should consider whether or not we want to stick | 35 // are deleted, we should consider whether or not we want to stick |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 int qp_ = -1; // Quantizer value. | 183 int qp_ = -1; // Quantizer value. |
| 181 | 184 |
| 182 // When an application indicates non-zero values here, it is taken as an | 185 // When an application indicates non-zero values here, it is taken as an |
| 183 // indication that all future frames will be constrained with those limits | 186 // indication that all future frames will be constrained with those limits |
| 184 // until the application indicates a change again. | 187 // until the application indicates a change again. |
| 185 PlayoutDelay playout_delay_ = {-1, -1}; | 188 PlayoutDelay playout_delay_ = {-1, -1}; |
| 186 }; | 189 }; |
| 187 | 190 |
| 188 } // namespace webrtc | 191 } // namespace webrtc |
| 189 #endif // WEBRTC_VIDEO_FRAME_H_ | 192 #endif // WEBRTC_VIDEO_FRAME_H_ |
| OLD | NEW |