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. | |
26 class VideoFrame { | 23 class VideoFrame { |
27 public: | 24 public: |
28 // TODO(nisse): Deprecated. Using the default constructor violates the | 25 // TODO(nisse): Deprecated. Using the default constructor violates the |
29 // reasonable assumption that video_frame_buffer() returns a valid buffer. | 26 // reasonable assumption that video_frame_buffer() returns a valid buffer. |
30 VideoFrame(); | 27 VideoFrame(); |
31 | 28 |
32 // TODO(nisse): This constructor is consistent with | 29 // TODO(nisse): This constructor is consistent with |
33 // cricket::WebRtcVideoFrame. After the class | 30 // cricket::WebRtcVideoFrame. After the class |
34 // cricket::WebRtcVideoFrame and its baseclass cricket::VideoFrame | 31 // cricket::WebRtcVideoFrame and its baseclass cricket::VideoFrame |
35 // are deleted, we should consider whether or not we want to stick | 32 // are deleted, we should consider whether or not we want to stick |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 int qp_ = -1; // Quantizer value. | 177 int qp_ = -1; // Quantizer value. |
181 | 178 |
182 // When an application indicates non-zero values here, it is taken as an | 179 // 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 | 180 // indication that all future frames will be constrained with those limits |
184 // until the application indicates a change again. | 181 // until the application indicates a change again. |
185 PlayoutDelay playout_delay_ = {-1, -1}; | 182 PlayoutDelay playout_delay_ = {-1, -1}; |
186 }; | 183 }; |
187 | 184 |
188 } // namespace webrtc | 185 } // namespace webrtc |
189 #endif // WEBRTC_VIDEO_FRAME_H_ | 186 #endif // WEBRTC_VIDEO_FRAME_H_ |
OLD | NEW |