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/media/base/videoframe.h

Issue 2075983003: Cleanups in cricket::VideoFrame and cricket::WebRtcVideoFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: revert to patchset 4 Created 4 years, 5 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/media/base/videoframe_unittest.h » ('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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 uint8_t* buffer, 68 uint8_t* buffer,
69 size_t size, 69 size_t size,
70 int stride_rgb) const; 70 int stride_rgb) const;
71 71
72 // Tests if sample is valid. Returns true if valid. 72 // Tests if sample is valid. Returns true if valid.
73 static bool Validate(uint32_t fourcc, 73 static bool Validate(uint32_t fourcc,
74 int w, 74 int w,
75 int h, 75 int h,
76 const uint8_t* sample, 76 const uint8_t* sample,
77 size_t sample_size); 77 size_t sample_size);
78
79 protected:
80 // Creates an empty frame.
81 virtual VideoFrame* CreateEmptyFrame(int w,
82 int h,
83 int64_t timestamp_us) const = 0;
84
85 virtual void set_rotation(webrtc::VideoRotation rotation) = 0;
86 }; 78 };
87 79
88 } // namespace cricket 80 } // namespace cricket
89 81
90 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_ 82 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/base/videoframe_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698