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

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

Issue 2380623002: Delete method webrtc::VideoFrame::allocated_size and enum PlaneType. (Closed)
Patch Set: Fix H264DecoderImpl. Created 4 years, 2 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/common_video/i420_video_frame_unittest.cc ('k') | webrtc/common_video/video_frame.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
11 #ifndef WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ 11 #ifndef WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_
12 #define WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ 12 #define WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_
13 13
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 #include <memory> 16 #include <memory>
17 17
18 #include "webrtc/base/callback.h" 18 #include "webrtc/base/callback.h"
19 #include "webrtc/base/refcount.h" 19 #include "webrtc/base/refcount.h"
20 #include "webrtc/base/scoped_ref_ptr.h" 20 #include "webrtc/base/scoped_ref_ptr.h"
21 #include "webrtc/common_video/rotation.h" 21 #include "webrtc/common_video/rotation.h"
22 #include "webrtc/system_wrappers/include/aligned_malloc.h" 22 #include "webrtc/system_wrappers/include/aligned_malloc.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 25
26 enum PlaneType {
27 kYPlane = 0,
28 kUPlane = 1,
29 kVPlane = 2,
30 kNumOfPlanes = 3,
31 };
32
33 // Interface of a simple frame buffer containing pixel data. This interface does 26 // Interface of a simple frame buffer containing pixel data. This interface does
34 // not contain any frame metadata such as rotation, timestamp, pixel_width, etc. 27 // not contain any frame metadata such as rotation, timestamp, pixel_width, etc.
35 class VideoFrameBuffer : public rtc::RefCountInterface { 28 class VideoFrameBuffer : public rtc::RefCountInterface {
36 public: 29 public:
37 // The resolution of the frame in pixels. For formats where some planes are 30 // The resolution of the frame in pixels. For formats where some planes are
38 // subsampled, this is the highest-resolution plane. 31 // subsampled, this is the highest-resolution plane.
39 virtual int width() const = 0; 32 virtual int width() const = 0;
40 virtual int height() const = 0; 33 virtual int height() const = 0;
41 34
42 // Returns pointer to the pixel data for a given plane. The memory is owned by 35 // Returns pointer to the pixel data for a given plane. The memory is owned by
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 const uint8_t* const v_plane_; 198 const uint8_t* const v_plane_;
206 const int y_stride_; 199 const int y_stride_;
207 const int u_stride_; 200 const int u_stride_;
208 const int v_stride_; 201 const int v_stride_;
209 rtc::Callback0<void> no_longer_used_cb_; 202 rtc::Callback0<void> no_longer_used_cb_;
210 }; 203 };
211 204
212 } // namespace webrtc 205 } // namespace webrtc
213 206
214 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_ 207 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_BUFFER_H_
OLDNEW
« no previous file with comments | « webrtc/common_video/i420_video_frame_unittest.cc ('k') | webrtc/common_video/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698