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

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

Issue 1885443002: Rename some cricket::VideoFrame methods, to align with webrtc::VideoFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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/media/base/videobroadcaster.cc ('k') | webrtc/media/base/videoframe.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 virtual rtc::scoped_refptr<webrtc::VideoFrameBuffer> GetVideoFrameBuffer() 57 virtual rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer()
58 const = 0; 58 const = 0;
59 59
60 virtual int64_t GetTimeStamp() const = 0; 60 virtual int64_t GetTimeStamp() const = 0;
61 virtual void SetTimeStamp(int64_t time_stamp) = 0; 61 virtual void SetTimeStamp(int64_t time_stamp) = 0;
62 62
63 // Indicates the rotation angle in degrees. 63 // Indicates the rotation angle in degrees.
64 virtual webrtc::VideoRotation GetVideoRotation() const = 0; 64 virtual webrtc::VideoRotation rotation() const = 0;
65 65
66 // Make a shallow copy of the frame. The frame buffer itself is not copied. 66 // Make a shallow copy of the frame. The frame buffer itself is not copied.
67 // Both the current and new VideoFrame will share a single reference-counted 67 // Both the current and new VideoFrame will share a single reference-counted
68 // frame buffer. 68 // frame buffer.
69 virtual VideoFrame *Copy() const = 0; 69 virtual VideoFrame *Copy() const = 0;
70 70
71 // Since VideoFrame supports shallow copy and the internal frame buffer might 71 // Since VideoFrame supports shallow copy and the internal frame buffer might
72 // be shared, this function can be used to check exclusive ownership. 72 // be shared, this function can be used to check exclusive ownership.
73 virtual bool IsExclusive() const = 0; 73 virtual bool IsExclusive() const = 0;
74 74
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual bool CopyToPlanes(uint8_t* dst_y, 132 virtual bool CopyToPlanes(uint8_t* dst_y,
133 uint8_t* dst_u, 133 uint8_t* dst_u,
134 uint8_t* dst_v, 134 uint8_t* dst_v,
135 int32_t dst_pitch_y, 135 int32_t dst_pitch_y,
136 int32_t dst_pitch_u, 136 int32_t dst_pitch_u,
137 int32_t dst_pitch_v) const; 137 int32_t dst_pitch_v) const;
138 138
139 // Creates an empty frame. 139 // Creates an empty frame.
140 virtual VideoFrame *CreateEmptyFrame(int w, int h, 140 virtual VideoFrame *CreateEmptyFrame(int w, int h,
141 int64_t time_stamp) const = 0; 141 int64_t time_stamp) const = 0;
142 virtual void SetRotation(webrtc::VideoRotation rotation) = 0; 142 virtual void set_rotation(webrtc::VideoRotation rotation) = 0;
143 }; 143 };
144 144
145 } // namespace cricket 145 } // namespace cricket
146 146
147 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_ 147 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/videobroadcaster.cc ('k') | webrtc/media/base/videoframe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698