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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 int w, | 58 int w, |
59 int h, | 59 int h, |
60 int dw, | 60 int dw, |
61 int dh, | 61 int dh, |
62 uint8_t* sample, | 62 uint8_t* sample, |
63 size_t sample_size, | 63 size_t sample_size, |
64 int64_t time_stamp_ns, | 64 int64_t time_stamp_ns, |
65 webrtc::VideoRotation rotation, | 65 webrtc::VideoRotation rotation, |
66 bool apply_rotation) override; | 66 bool apply_rotation) override; |
67 | 67 |
68 size_t GetWidth() const override; | 68 int width() const override; |
69 size_t GetHeight() const override; | 69 int height() const override; |
| 70 |
70 const uint8_t* GetYPlane() const override; | 71 const uint8_t* GetYPlane() const override; |
71 const uint8_t* GetUPlane() const override; | 72 const uint8_t* GetUPlane() const override; |
72 const uint8_t* GetVPlane() const override; | 73 const uint8_t* GetVPlane() const override; |
73 uint8_t* GetYPlane() override; | 74 uint8_t* GetYPlane() override; |
74 uint8_t* GetUPlane() override; | 75 uint8_t* GetUPlane() override; |
75 uint8_t* GetVPlane() override; | 76 uint8_t* GetVPlane() override; |
76 int32_t GetYPitch() const override; | 77 int32_t GetYPitch() const override; |
77 int32_t GetUPitch() const override; | 78 int32_t GetUPitch() const override; |
78 int32_t GetVPitch() const override; | 79 int32_t GetVPitch() const override; |
79 void* GetNativeHandle() const override; | 80 void* GetNativeHandle() const override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 webrtc::VideoRotation rotation_; | 115 webrtc::VideoRotation rotation_; |
115 | 116 |
116 // This is mutable as the calculation is expensive but once calculated, it | 117 // This is mutable as the calculation is expensive but once calculated, it |
117 // remains const. | 118 // remains const. |
118 mutable std::unique_ptr<VideoFrame> rotated_frame_; | 119 mutable std::unique_ptr<VideoFrame> rotated_frame_; |
119 }; | 120 }; |
120 | 121 |
121 } // namespace cricket | 122 } // namespace cricket |
122 | 123 |
123 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_ | 124 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOFRAME_H_ |
OLD | NEW |