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

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

Issue 2927943003: Return WrappedI444Buffer in VP9Impl (Closed)
Patch Set: 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const int height_; 74 const int height_;
75 const uint8_t* const y_plane_; 75 const uint8_t* const y_plane_;
76 const uint8_t* const u_plane_; 76 const uint8_t* const u_plane_;
77 const uint8_t* const v_plane_; 77 const uint8_t* const v_plane_;
78 const int y_stride_; 78 const int y_stride_;
79 const int u_stride_; 79 const int u_stride_;
80 const int v_stride_; 80 const int v_stride_;
81 rtc::Callback0<void> no_longer_used_cb_; 81 rtc::Callback0<void> no_longer_used_cb_;
82 }; 82 };
83 83
84 class WrappedI444Buffer : public I444BufferInterface {
Yuwei 2017/06/08 20:38:37 TBH I don't quite like duplicating the WrappedI420
nisse-webrtc 2017/06/09 09:01:22 I think it should be doable to define WrappedYuvBu
magjed_webrtc 2017/06/09 13:46:57 How about we expose two factory functions instead:
Yuwei 2017/06/10 00:13:52 Done. This is much better :) But please also see t
85 public:
86 WrappedI444Buffer(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 int width() const override;
96 int height() const override;
97
98 const uint8_t* DataY() const override;
99 const uint8_t* DataU() const override;
100 const uint8_t* DataV() const override;
101 int StrideY() const override;
102 int StrideU() const override;
103 int StrideV() const override;
104
105 private:
106 friend class rtc::RefCountedObject<WrappedI444Buffer>;
107 ~WrappedI444Buffer() override;
108
109 const int width_;
110 const int height_;
111 const uint8_t* const y_plane_;
112 const uint8_t* const u_plane_;
113 const uint8_t* const v_plane_;
114 const int y_stride_;
115 const int u_stride_;
116 const int v_stride_;
117 rtc::Callback0<void> no_longer_used_cb_;
118 };
119
84 } // namespace webrtc 120 } // namespace webrtc
85 121
86 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ 122 #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') | webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698