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

Side by Side Diff: webrtc/media/base/videoframe.h

Issue 1900673002: Delete webrtc::VideoFrame methods buffer and stride. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 7 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/common_video/video_frame.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | 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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual int32_t GetUPitch() const = 0; 47 virtual int32_t GetUPitch() const = 0;
48 virtual int32_t GetVPitch() const = 0; 48 virtual int32_t GetVPitch() const = 0;
49 49
50 // Returns the handle of the underlying video frame. This is used when the 50 // Returns the handle of the underlying video frame. This is used when the
51 // frame is backed by a texture. The object should be destroyed when it is no 51 // frame is backed by a texture. The object should be destroyed when it is no
52 // longer in use, so the underlying resource can be freed. 52 // longer in use, so the underlying resource can be freed.
53 virtual void* GetNativeHandle() const = 0; 53 virtual void* GetNativeHandle() const = 0;
54 54
55 // Returns the underlying video frame buffer. This function is ok to call 55 // Returns the underlying video frame buffer. This function is ok to call
56 // multiple times, but the returned object will refer to the same memory. 56 // multiple times, but the returned object will refer to the same memory.
57 // TODO(nisse): Change to return a const ref to a scoped_refptr, for
58 // consistency with webrtc::VideoFrame.
57 virtual rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer() 59 virtual rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer()
58 const = 0; 60 const = 0;
59 61
60 // System monotonic clock, same timebase as rtc::TimeMicros(). 62 // System monotonic clock, same timebase as rtc::TimeMicros().
61 virtual int64_t timestamp_us() const = 0; 63 virtual int64_t timestamp_us() const = 0;
62 virtual void set_timestamp_us(int64_t time_us) = 0; 64 virtual void set_timestamp_us(int64_t time_us) = 0;
63 65
64 // Deprecated methods, for backwards compatibility. 66 // Deprecated methods, for backwards compatibility.
65 // TODO(nisse): Delete when usage in Chrome and other applications 67 // TODO(nisse): Delete when usage in Chrome and other applications
66 // have been replaced. 68 // have been replaced.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Creates an empty frame. 152 // Creates an empty frame.
151 virtual VideoFrame* CreateEmptyFrame(int w, 153 virtual VideoFrame* CreateEmptyFrame(int w,
152 int h, 154 int h,
153 int64_t timestamp_us) const = 0; 155 int64_t timestamp_us) const = 0;
154 virtual void set_rotation(webrtc::VideoRotation rotation) = 0; 156 virtual void set_rotation(webrtc::VideoRotation rotation) = 0;
155 }; 157 };
156 158
157 } // namespace cricket 159 } // namespace cricket
158 160
159 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_ 161 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_
OLDNEW
« no previous file with comments | « webrtc/common_video/video_frame.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698