Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: webrtc/video_frame.h

Issue 1492053003: Add unit test for stand-alone denoiser and fixed some bugs. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove gtest_disabled.h Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer() const; 151 rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer() const;
152 152
153 // Set the underlying buffer. 153 // Set the underlying buffer.
154 void set_video_frame_buffer( 154 void set_video_frame_buffer(
155 const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer); 155 const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& buffer);
156 156
157 // Convert native-handle frame to memory-backed I420 frame. Should not be 157 // Convert native-handle frame to memory-backed I420 frame. Should not be
158 // called on a non-native-handle frame. 158 // called on a non-native-handle frame.
159 VideoFrame ConvertNativeToI420Frame() const; 159 VideoFrame ConvertNativeToI420Frame() const;
160 160
161 bool EqualsFrame(const VideoFrame& frame) const;
162
161 private: 163 private:
162 // An opaque reference counted handle that stores the pixel data. 164 // An opaque reference counted handle that stores the pixel data.
163 rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer_; 165 rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer_;
164 uint32_t timestamp_; 166 uint32_t timestamp_;
165 int64_t ntp_time_ms_; 167 int64_t ntp_time_ms_;
166 int64_t render_time_ms_; 168 int64_t render_time_ms_;
167 VideoRotation rotation_; 169 VideoRotation rotation_;
168 }; 170 };
169 171
170 172
(...skipping 26 matching lines...) Expand all
197 uint8_t* _buffer; 199 uint8_t* _buffer;
198 size_t _length; 200 size_t _length;
199 size_t _size; 201 size_t _size;
200 bool _completeFrame = false; 202 bool _completeFrame = false;
201 AdaptReason adapt_reason_; 203 AdaptReason adapt_reason_;
202 int qp_ = -1; // Quantizer value. 204 int qp_ = -1; // Quantizer value.
203 }; 205 };
204 206
205 } // namespace webrtc 207 } // namespace webrtc
206 #endif // WEBRTC_VIDEO_FRAME_H_ 208 #endif // WEBRTC_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698