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

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

Issue 2927943003: Return WrappedI444Buffer in VP9Impl (Closed)
Patch Set: Resolve feedback 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 class WrappedI420Buffer : public I420BufferInterface { 48 rtc::scoped_refptr<I420BufferInterface> WrapI420Buffer(
nisse-webrtc 2017/06/13 12:29:09 Deleting this class will likely break some downstr
Yuwei 2017/06/19 21:33:26 Just added back WrappedI420Buffer. I did a cs on C
49 public: 49 int width,
50 WrappedI420Buffer(int width, 50 int height,
51 int height, 51 const uint8_t* y_plane,
52 const uint8_t* y_plane, 52 int y_stride,
53 int y_stride, 53 const uint8_t* u_plane,
54 const uint8_t* u_plane, 54 int u_stride,
55 int u_stride, 55 const uint8_t* v_plane,
56 const uint8_t* v_plane, 56 int v_stride,
57 int v_stride, 57 const rtc::Callback0<void>& no_longer_used);
58 const rtc::Callback0<void>& no_longer_used);
59 int width() const override;
60 int height() const override;
61 58
62 const uint8_t* DataY() const override; 59 rtc::scoped_refptr<I444BufferInterface> WrapI444Buffer(
63 const uint8_t* DataU() const override; 60 int width,
64 const uint8_t* DataV() const override; 61 int height,
65 int StrideY() const override; 62 const uint8_t* y_plane,
66 int StrideU() const override; 63 int y_stride,
67 int StrideV() const override; 64 const uint8_t* u_plane,
68 65 int u_stride,
69 private: 66 const uint8_t* v_plane,
70 friend class rtc::RefCountedObject<WrappedI420Buffer>; 67 int v_stride,
71 ~WrappedI420Buffer() override; 68 const rtc::Callback0<void>& no_longer_used);
72
73 const int width_;
74 const int height_;
75 const uint8_t* const y_plane_;
76 const uint8_t* const u_plane_;
77 const uint8_t* const v_plane_;
78 const int y_stride_;
79 const int u_stride_;
80 const int v_stride_;
81 rtc::Callback0<void> no_longer_used_cb_;
82 };
83 69
84 } // namespace webrtc 70 } // namespace webrtc
85 71
86 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ 72 #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