Lines Matching defs:VideoFrame

31 class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
74 static scoped_refptr<VideoFrame> CreateFrame(
96 // Wraps a native texture of the given parameters with a VideoFrame. The
97 // backing of the VideoFrame is held in the mailbox held by |mailbox_holder|,
99 // argument when the VideoFrame is to be destroyed.
102 static scoped_refptr<VideoFrame> WrapNativeTexture(
118 // Wraps packed image data residing in a memory buffer with a VideoFrame.
125 static scoped_refptr<VideoFrame> WrapExternalPackedMemory(
139 // VideoFrame. The dmabuf fds are dup()ed on creation, so that the VideoFrame
148 static scoped_refptr<VideoFrame> WrapExternalDmabufs(
159 // Wraps a provided CVPixelBuffer with a VideoFrame. The pixel buffer is
160 // retained for the lifetime of the VideoFrame and released upon destruction.
163 // VideoFrame are derived from the pixel buffer, with the exception of the
165 // pixel format that has no VideoFrame match), NULL is returned.
167 static scoped_refptr<VideoFrame> WrapCVPixelBuffer(
172 // Wraps external YUV data of the given parameters with a VideoFrame.
173 // The returned VideoFrame does not own the data passed in. When the frame
177 static scoped_refptr<VideoFrame> WrapExternalYuvData(
191 // Wraps |frame| and calls |no_longer_needed_cb| when the wrapper VideoFrame
194 static scoped_refptr<VideoFrame> WrapVideoFrame(
195 const scoped_refptr<VideoFrame>& frame,
201 static scoped_refptr<VideoFrame> CreateEOSFrame();
204 static scoped_refptr<VideoFrame> CreateColorFrame(
211 static scoped_refptr<VideoFrame> CreateBlackFrame(const gfx::Size& size);
215 static scoped_refptr<VideoFrame> CreateTransparentFrame(
220 static scoped_refptr<VideoFrame> CreateHoleFrame(const gfx::Size& size);
267 // VideoFrame object and must not be freed by the caller.
288 // Returns true if this VideoFrame represents the end of the stream.
311 // VideoFrame.
320 friend class base::RefCountedThreadSafe<VideoFrame>;
324 static bool IsValidPlane(size_t plane, VideoFrame::Format format);
327 VideoFrame(Format format,
334 virtual ~VideoFrame();
393 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);