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

Side by Side Diff: webrtc/common_video/include/video_frame_buffer.h

Issue 2065733003: Delete unused and almost unused frame-related methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 30 matching lines...) Expand all
41 // TODO(nisse): For the transition, we use default implementations 41 // TODO(nisse): For the transition, we use default implementations
42 // of the stride and data methods where the new methods calls the 42 // of the stride and data methods where the new methods calls the
43 // old method, and the old method calls the new methods. Subclasses 43 // old method, and the old method calls the new methods. Subclasses
44 // must override either the new methods or the old method, to break 44 // must override either the new methods or the old method, to break
45 // infinite recursion. And similarly for the strides. When 45 // infinite recursion. And similarly for the strides. When
46 // applications, in particular Chrome, are updated, delete the old 46 // applications, in particular Chrome, are updated, delete the old
47 // method and delete the default implementation of the new methods. 47 // method and delete the default implementation of the new methods.
48 48
49 // Returns pointer to the pixel data for a given plane. The memory is owned by 49 // Returns pointer to the pixel data for a given plane. The memory is owned by
50 // the VideoFrameBuffer object and must not be freed by the caller. 50 // the VideoFrameBuffer object and must not be freed by the caller.
51 virtual const uint8_t* DataY() const; 51 virtual const uint8_t* DataY() const = 0;
52 virtual const uint8_t* DataU() const; 52 virtual const uint8_t* DataU() const = 0;
53 virtual const uint8_t* DataV() const; 53 virtual const uint8_t* DataV() const = 0;
54 // Deprecated method.
55 // TODO(nisse): Delete after all users are updated.
56 virtual const uint8_t* data(PlaneType type) const;
57 54
58 // TODO(nisse): Move MutableData methods to the I420Buffer subclass. 55 // TODO(nisse): Move MutableData methods to the I420Buffer subclass.
59 // Non-const data access. 56 // Non-const data access.
60 virtual uint8_t* MutableDataY(); 57 virtual uint8_t* MutableDataY();
61 virtual uint8_t* MutableDataU(); 58 virtual uint8_t* MutableDataU();
62 virtual uint8_t* MutableDataV(); 59 virtual uint8_t* MutableDataV();
63 // Deprecated method. TODO(nisse): Delete after all users are updated.
64 virtual uint8_t* MutableData(PlaneType type);
65 60
66 // Returns the number of bytes between successive rows for a given plane. 61 // Returns the number of bytes between successive rows for a given plane.
67 virtual int StrideY() const; 62 virtual int StrideY() const = 0;
68 virtual int StrideU() const; 63 virtual int StrideU() const = 0;
69 virtual int StrideV() const; 64 virtual int StrideV() const = 0;
70 // Deprecated method. TODO(nisse): Delete after all users are updated.
71 virtual int stride(PlaneType type) const;
72 65
73 // Return the handle of the underlying video frame. This is used when the 66 // Return the handle of the underlying video frame. This is used when the
74 // frame is backed by a texture. 67 // frame is backed by a texture.
75 virtual void* native_handle() const = 0; 68 virtual void* native_handle() const = 0;
76 69
77 // Returns a new memory-backed frame buffer converted from this buffer's 70 // Returns a new memory-backed frame buffer converted from this buffer's
78 // native handle. 71 // native handle.
79 virtual rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() = 0; 72 virtual rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() = 0;
80 73
81 protected: 74 protected:
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 const uint8_t* const v_plane_; 200 const uint8_t* const v_plane_;
208 const int y_stride_; 201 const int y_stride_;
209 const int u_stride_; 202 const int u_stride_;
210 const int v_stride_; 203 const int v_stride_;
211 rtc::Callback0<void> no_longer_used_cb_; 204 rtc::Callback0<void> no_longer_used_cb_;
212 }; 205 };
213 206
214 } // namespace webrtc 207 } // namespace webrtc
215 208
216 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ 209 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/common_video/video_frame.cc » ('j') | webrtc/modules/video_coding/video_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698