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

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

Issue 1561703002: media/vpx: Add support for VP9 alpha channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 | media/base/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 // 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 int32_t u_stride, 198 int32_t u_stride,
199 int32_t v_stride, 199 int32_t v_stride,
200 uint8_t* y_data, 200 uint8_t* y_data,
201 uint8_t* u_data, 201 uint8_t* u_data,
202 uint8_t* v_data, 202 uint8_t* v_data,
203 const gfx::GpuMemoryBufferHandle& y_handle, 203 const gfx::GpuMemoryBufferHandle& y_handle,
204 const gfx::GpuMemoryBufferHandle& u_handle, 204 const gfx::GpuMemoryBufferHandle& u_handle,
205 const gfx::GpuMemoryBufferHandle& v_handle, 205 const gfx::GpuMemoryBufferHandle& v_handle,
206 base::TimeDelta timestamp); 206 base::TimeDelta timestamp);
207 207
208 // Wraps external YUVA data of the given parameters with a VideoFrame.
209 // The returned VideoFrame does not own the data passed in.
210 static scoped_refptr<VideoFrame> WrapExternalYuvaData(
211 VideoPixelFormat format,
212 const gfx::Size& coded_size,
213 const gfx::Rect& visible_rect,
214 const gfx::Size& natural_size,
215 int32_t y_stride,
216 int32_t u_stride,
217 int32_t v_stride,
218 int32_t a_stride,
219 uint8_t* y_data,
220 uint8_t* u_data,
221 uint8_t* v_data,
222 uint8_t* a_data,
223 base::TimeDelta timestamp);
224
208 #if defined(OS_LINUX) 225 #if defined(OS_LINUX)
209 // Wraps provided dmabufs 226 // Wraps provided dmabufs
210 // (https://www.kernel.org/doc/Documentation/dma-buf-sharing.txt) with a 227 // (https://www.kernel.org/doc/Documentation/dma-buf-sharing.txt) with a
211 // VideoFrame. The dmabuf fds are dup()ed on creation, so that the VideoFrame 228 // VideoFrame. The dmabuf fds are dup()ed on creation, so that the VideoFrame
212 // retains a reference to them, and are automatically close()d on destruction, 229 // retains a reference to them, and are automatically close()d on destruction,
213 // dropping the reference. The caller may safely close() its reference after 230 // dropping the reference. The caller may safely close() its reference after
214 // calling WrapExternalDmabufs(). 231 // calling WrapExternalDmabufs().
215 // The image data is only accessible via dmabuf fds, which are usually passed 232 // The image data is only accessible via dmabuf fds, which are usually passed
216 // directly to a hardware device and/or to another process, or can also be 233 // directly to a hardware device and/or to another process, or can also be
217 // mapped via mmap() for CPU access. 234 // mapped via mmap() for CPU access.
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 gpu::SyncToken release_sync_token_; 538 gpu::SyncToken release_sync_token_;
522 539
523 VideoFrameMetadata metadata_; 540 VideoFrameMetadata metadata_;
524 541
525 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 542 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
526 }; 543 };
527 544
528 } // namespace media 545 } // namespace media
529 546
530 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 547 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698