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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer() | 69 const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer() |
70 const override; | 70 const override; |
71 | 71 |
72 /* System monotonic clock */ | 72 /* System monotonic clock */ |
73 int64_t timestamp_us() const override { return timestamp_us_; } | 73 int64_t timestamp_us() const override { return timestamp_us_; } |
74 void set_timestamp_us(int64_t time_us) override { timestamp_us_ = time_us; }; | 74 void set_timestamp_us(int64_t time_us) override { timestamp_us_ = time_us; }; |
75 | 75 |
76 webrtc::VideoRotation rotation() const override { return rotation_; } | 76 webrtc::VideoRotation rotation() const override { return rotation_; } |
77 | 77 |
78 VideoFrame* Copy() const override; | |
79 | |
80 size_t ConvertToRgbBuffer(uint32_t to_fourcc, | 78 size_t ConvertToRgbBuffer(uint32_t to_fourcc, |
81 uint8_t* buffer, | 79 uint8_t* buffer, |
82 size_t size, | 80 size_t size, |
83 int stride_rgb) const override; | 81 int stride_rgb) const override; |
84 | 82 |
85 const VideoFrame* GetCopyWithRotationApplied() const override; | 83 const VideoFrame* GetCopyWithRotationApplied() const override; |
86 | 84 |
87 protected: | 85 protected: |
88 void set_rotation(webrtc::VideoRotation rotation) override { | 86 void set_rotation(webrtc::VideoRotation rotation) override { |
89 rotation_ = rotation; | 87 rotation_ = rotation; |
(...skipping 24 matching lines...) Expand all Loading... |
114 webrtc::VideoRotation rotation_; | 112 webrtc::VideoRotation rotation_; |
115 | 113 |
116 // This is mutable as the calculation is expensive but once calculated, it | 114 // This is mutable as the calculation is expensive but once calculated, it |
117 // remains const. | 115 // remains const. |
118 mutable std::unique_ptr<VideoFrame> rotated_frame_; | 116 mutable std::unique_ptr<VideoFrame> rotated_frame_; |
119 }; | 117 }; |
120 | 118 |
121 } // namespace cricket | 119 } // namespace cricket |
122 | 120 |
123 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_ | 121 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_ |
OLD | NEW |