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

Side by Side Diff: webrtc/video_frame.h

Issue 2380623002: Delete method webrtc::VideoFrame::allocated_size and enum PlaneType. (Closed)
Patch Set: Fix H264DecoderImpl. Created 4 years, 2 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
« no previous file with comments | « webrtc/test/frame_generator_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // the pixel data, and use the constructor to wrap it into a VideoFrame. 93 // the pixel data, and use the constructor to wrap it into a VideoFrame.
94 void CopyFrame(const VideoFrame& videoFrame); 94 void CopyFrame(const VideoFrame& videoFrame);
95 95
96 // Creates a shallow copy of |videoFrame|, i.e, the this object will retain a 96 // Creates a shallow copy of |videoFrame|, i.e, the this object will retain a
97 // reference to the video buffer also retained by |videoFrame|. 97 // reference to the video buffer also retained by |videoFrame|.
98 // TODO(nisse): Deprecated. Should be deleted in the cricket::VideoFrame and 98 // TODO(nisse): Deprecated. Should be deleted in the cricket::VideoFrame and
99 // webrtc::VideoFrame merge. Instead, pass video_frame_buffer() and timestamps 99 // webrtc::VideoFrame merge. Instead, pass video_frame_buffer() and timestamps
100 // to the constructor. 100 // to the constructor.
101 void ShallowCopy(const VideoFrame& videoFrame); 101 void ShallowCopy(const VideoFrame& videoFrame);
102 102
103 // Get allocated size per plane.
104
105 // TODO(nisse): Deprecated. Should be deleted in the cricket::VideoFrame and
106 // webrtc::VideoFrame merge. When used with memset, consider using
107 // libyuv::I420Rect instead.
108 int allocated_size(PlaneType type) const;
109
110 // Get frame width. 103 // Get frame width.
111 int width() const; 104 int width() const;
112 105
113 // Get frame height. 106 // Get frame height.
114 int height() const; 107 int height() const;
115 108
116 // System monotonic clock, same timebase as rtc::TimeMicros(). 109 // System monotonic clock, same timebase as rtc::TimeMicros().
117 int64_t timestamp_us() const { return timestamp_us_; } 110 int64_t timestamp_us() const { return timestamp_us_; }
118 void set_timestamp_us(int64_t timestamp_us) { 111 void set_timestamp_us(int64_t timestamp_us) {
119 timestamp_us_ = timestamp_us; 112 timestamp_us_ = timestamp_us;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 int qp_ = -1; // Quantizer value. 229 int qp_ = -1; // Quantizer value.
237 230
238 // When an application indicates non-zero values here, it is taken as an 231 // When an application indicates non-zero values here, it is taken as an
239 // indication that all future frames will be constrained with those limits 232 // indication that all future frames will be constrained with those limits
240 // until the application indicates a change again. 233 // until the application indicates a change again.
241 PlayoutDelay playout_delay_ = {-1, -1}; 234 PlayoutDelay playout_delay_ = {-1, -1};
242 }; 235 };
243 236
244 } // namespace webrtc 237 } // namespace webrtc
245 #endif // WEBRTC_VIDEO_FRAME_H_ 238 #endif // WEBRTC_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « webrtc/test/frame_generator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698