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

Side by Side Diff: media/base/video_frame.h

Issue 1030253002: Fix missing symbols for pre-linking of the Cast sender library for iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add native_library_ios.mm to base/BUILD.gn. Created 5 years, 9 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_ 5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_
6 #define MEDIA_BASE_VIDEO_FRAME_H_ 6 #define MEDIA_BASE_VIDEO_FRAME_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // frame->visible_rect(). 188 // frame->visible_rect().
189 static scoped_refptr<VideoFrame> WrapVideoFrame( 189 static scoped_refptr<VideoFrame> WrapVideoFrame(
190 const scoped_refptr<VideoFrame>& frame, 190 const scoped_refptr<VideoFrame>& frame,
191 const gfx::Rect& visible_rect, 191 const gfx::Rect& visible_rect,
192 const gfx::Size& natural_size, 192 const gfx::Size& natural_size,
193 const base::Closure& no_longer_needed_cb); 193 const base::Closure& no_longer_needed_cb);
194 194
195 // Creates a frame which indicates end-of-stream. 195 // Creates a frame which indicates end-of-stream.
196 static scoped_refptr<VideoFrame> CreateEOSFrame(); 196 static scoped_refptr<VideoFrame> CreateEOSFrame();
197 197
198 #if !defined(MEDIA_FOR_CAST_IOS)
198 // Allocates YV12 frame based on |size|, and sets its data to the YUV(y,u,v). 199 // Allocates YV12 frame based on |size|, and sets its data to the YUV(y,u,v).
199 static scoped_refptr<VideoFrame> CreateColorFrame( 200 static scoped_refptr<VideoFrame> CreateColorFrame(
200 const gfx::Size& size, 201 const gfx::Size& size,
201 uint8 y, uint8 u, uint8 v, 202 uint8 y, uint8 u, uint8 v,
202 base::TimeDelta timestamp); 203 base::TimeDelta timestamp);
203 204
204 // Allocates YV12 frame based on |size|, and sets its data to the YUV 205 // Allocates YV12 frame based on |size|, and sets its data to the YUV
205 // equivalent of RGB(0,0,0). 206 // equivalent of RGB(0,0,0).
206 static scoped_refptr<VideoFrame> CreateBlackFrame(const gfx::Size& size); 207 static scoped_refptr<VideoFrame> CreateBlackFrame(const gfx::Size& size);
207 208
208 // Allocates YV12A frame based on |size|, and sets its data to the YUVA 209 // Allocates YV12A frame based on |size|, and sets its data to the YUVA
209 // equivalent of RGBA(0,0,0,0). 210 // equivalent of RGBA(0,0,0,0).
210 static scoped_refptr<VideoFrame> CreateTransparentFrame( 211 static scoped_refptr<VideoFrame> CreateTransparentFrame(
211 const gfx::Size& size); 212 const gfx::Size& size);
213 #endif // defined(MEDIA_FOR_CAST_IOS)
212 214
213 #if defined(VIDEO_HOLE) 215 #if defined(VIDEO_HOLE)
214 // Allocates a hole frame. 216 // Allocates a hole frame.
215 static scoped_refptr<VideoFrame> CreateHoleFrame(const gfx::Size& size); 217 static scoped_refptr<VideoFrame> CreateHoleFrame(const gfx::Size& size);
216 #endif // defined(VIDEO_HOLE) 218 #endif // defined(VIDEO_HOLE)
217 219
218 static size_t NumPlanes(Format format); 220 static size_t NumPlanes(Format format);
219 221
220 // Returns the required allocation size for a (tightly packed) frame of the 222 // Returns the required allocation size for a (tightly packed) frame of the
221 // given coded size and format. 223 // given coded size and format.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 VideoFrameMetadata metadata_; 418 VideoFrameMetadata metadata_;
417 419
418 bool allow_overlay_; 420 bool allow_overlay_;
419 421
420 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 422 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
421 }; 423 };
422 424
423 } // namespace media 425 } // namespace media
424 426
425 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 427 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698