| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool Init(const CapturedFrame* frame, int dw, int dh, bool apply_rotation); | 61 bool Init(const CapturedFrame* frame, int dw, int dh, bool apply_rotation); |
| 62 | 62 |
| 63 void InitToEmptyBuffer(int w, int h); | 63 void InitToEmptyBuffer(int w, int h); |
| 64 void InitToEmptyBuffer(int w, int h, int64_t time_stamp_ns); | 64 void InitToEmptyBuffer(int w, int h, int64_t time_stamp_ns); |
| 65 | 65 |
| 66 bool InitToBlack(int w, int h, int64_t time_stamp_ns); | 66 bool InitToBlack(int w, int h, int64_t time_stamp_ns); |
| 67 | 67 |
| 68 int width() const override; | 68 int width() const override; |
| 69 int height() const override; | 69 int height() const override; |
| 70 | 70 |
| 71 const uint8_t* GetYPlane() const override; |
| 72 const uint8_t* GetUPlane() const override; |
| 73 const uint8_t* GetVPlane() const override; |
| 74 uint8_t* GetYPlane() override; |
| 75 uint8_t* GetUPlane() override; |
| 76 uint8_t* GetVPlane() override; |
| 77 int32_t GetYPitch() const override; |
| 78 int32_t GetUPitch() const override; |
| 79 int32_t GetVPitch() const override; |
| 71 void* GetNativeHandle() const override; | 80 void* GetNativeHandle() const override; |
| 72 const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& video_frame_buffer() | 81 rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer() |
| 73 const override; | 82 const override; |
| 74 | 83 |
| 75 /* System monotonic clock */ | 84 /* System monotonic clock */ |
| 76 int64_t timestamp_us() const override { return timestamp_us_; } | 85 int64_t timestamp_us() const override { return timestamp_us_; } |
| 77 void set_timestamp_us(int64_t time_us) override { timestamp_us_ = time_us; }; | 86 void set_timestamp_us(int64_t time_us) override { timestamp_us_ = time_us; }; |
| 78 | 87 |
| 79 webrtc::VideoRotation rotation() const override { return rotation_; } | 88 webrtc::VideoRotation rotation() const override { return rotation_; } |
| 80 | 89 |
| 81 VideoFrame* Copy() const override; | 90 VideoFrame* Copy() const override; |
| 82 bool IsExclusive() const override; | 91 bool IsExclusive() const override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 webrtc::VideoRotation rotation_; | 126 webrtc::VideoRotation rotation_; |
| 118 | 127 |
| 119 // This is mutable as the calculation is expensive but once calculated, it | 128 // This is mutable as the calculation is expensive but once calculated, it |
| 120 // remains const. | 129 // remains const. |
| 121 mutable std::unique_ptr<VideoFrame> rotated_frame_; | 130 mutable std::unique_ptr<VideoFrame> rotated_frame_; |
| 122 }; | 131 }; |
| 123 | 132 |
| 124 } // namespace cricket | 133 } // namespace cricket |
| 125 | 134 |
| 126 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_ | 135 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_ |
| OLD | NEW |