OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 12 matching lines...) Expand all Loading... |
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #ifndef TALK_MEDIA_BASE_VIDEOFRAME_H_ | 28 #ifndef TALK_MEDIA_BASE_VIDEOFRAME_H_ |
29 #define TALK_MEDIA_BASE_VIDEOFRAME_H_ | 29 #define TALK_MEDIA_BASE_VIDEOFRAME_H_ |
30 | 30 |
31 #include "webrtc/base/basictypes.h" | 31 #include "webrtc/base/basictypes.h" |
32 #include "webrtc/base/stream.h" | 32 #include "webrtc/base/stream.h" |
33 #include "webrtc/common_video/interface/video_frame_buffer.h" | 33 #include "webrtc/common_video/include/video_frame_buffer.h" |
34 #include "webrtc/common_video/rotation.h" | 34 #include "webrtc/common_video/rotation.h" |
35 | 35 |
36 namespace cricket { | 36 namespace cricket { |
37 | 37 |
38 // Represents a YUV420 (a.k.a. I420) video frame. | 38 // Represents a YUV420 (a.k.a. I420) video frame. |
39 class VideoFrame { | 39 class VideoFrame { |
40 public: | 40 public: |
41 VideoFrame() {} | 41 VideoFrame() {} |
42 virtual ~VideoFrame() {} | 42 virtual ~VideoFrame() {} |
43 | 43 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Creates an empty frame. | 211 // Creates an empty frame. |
212 virtual VideoFrame *CreateEmptyFrame(int w, int h, size_t pixel_width, | 212 virtual VideoFrame *CreateEmptyFrame(int w, int h, size_t pixel_width, |
213 size_t pixel_height, | 213 size_t pixel_height, |
214 int64_t time_stamp) const = 0; | 214 int64_t time_stamp) const = 0; |
215 virtual void SetRotation(webrtc::VideoRotation rotation) = 0; | 215 virtual void SetRotation(webrtc::VideoRotation rotation) = 0; |
216 }; | 216 }; |
217 | 217 |
218 } // namespace cricket | 218 } // namespace cricket |
219 | 219 |
220 #endif // TALK_MEDIA_BASE_VIDEOFRAME_H_ | 220 #endif // TALK_MEDIA_BASE_VIDEOFRAME_H_ |
OLD | NEW |