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

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

Issue 2927943003: Return WrappedI444Buffer in VP9Impl (Closed)
Patch Set: Revert refactoring on other files Created 3 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
« no previous file with comments | « no previous file | webrtc/common_video/video_frame_buffer.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) 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 27 matching lines...) Expand all
38 int StrideV() const override; 38 int StrideV() const override;
39 39
40 void* native_handle() const override; 40 void* native_handle() const override;
41 41
42 protected: 42 protected:
43 void* native_handle_; 43 void* native_handle_;
44 const int width_; 44 const int width_;
45 const int height_; 45 const int height_;
46 }; 46 };
47 47
48 // Deprecated. Please use WrapI420Buffer(...) instead.
48 class WrappedI420Buffer : public I420BufferInterface { 49 class WrappedI420Buffer : public I420BufferInterface {
49 public: 50 public:
50 WrappedI420Buffer(int width, 51 WrappedI420Buffer(int width,
51 int height, 52 int height,
52 const uint8_t* y_plane, 53 const uint8_t* y_plane,
53 int y_stride, 54 int y_stride,
54 const uint8_t* u_plane, 55 const uint8_t* u_plane,
55 int u_stride, 56 int u_stride,
56 const uint8_t* v_plane, 57 const uint8_t* v_plane,
57 int v_stride, 58 int v_stride,
(...skipping 16 matching lines...) Expand all
74 const int height_; 75 const int height_;
75 const uint8_t* const y_plane_; 76 const uint8_t* const y_plane_;
76 const uint8_t* const u_plane_; 77 const uint8_t* const u_plane_;
77 const uint8_t* const v_plane_; 78 const uint8_t* const v_plane_;
78 const int y_stride_; 79 const int y_stride_;
79 const int u_stride_; 80 const int u_stride_;
80 const int v_stride_; 81 const int v_stride_;
81 rtc::Callback0<void> no_longer_used_cb_; 82 rtc::Callback0<void> no_longer_used_cb_;
82 }; 83 };
83 84
85 rtc::scoped_refptr<I420BufferInterface> WrapI420Buffer(
86 int width,
87 int height,
88 const uint8_t* y_plane,
89 int y_stride,
90 const uint8_t* u_plane,
91 int u_stride,
92 const uint8_t* v_plane,
93 int v_stride,
94 const rtc::Callback0<void>& no_longer_used);
95
96 rtc::scoped_refptr<I444BufferInterface> WrapI444Buffer(
97 int width,
98 int height,
99 const uint8_t* y_plane,
100 int y_stride,
101 const uint8_t* u_plane,
102 int u_stride,
103 const uint8_t* v_plane,
104 int v_stride,
105 const rtc::Callback0<void>& no_longer_used);
106
107 rtc::scoped_refptr<PlanarYuvBuffer> WrapYuvBuffer(
108 VideoFrameBuffer::Type type,
109 int width,
110 int height,
111 const uint8_t* y_plane,
112 int y_stride,
113 const uint8_t* u_plane,
114 int u_stride,
115 const uint8_t* v_plane,
116 int v_stride,
117 const rtc::Callback0<void>& no_longer_used);
118
84 } // namespace webrtc 119 } // namespace webrtc
85 120
86 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ 121 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/common_video/video_frame_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698