OLD | NEW |
---|---|
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 // a sync token as the argument when the VideoFrame is to be destroyed. | 130 // a sync token as the argument when the VideoFrame is to be destroyed. |
131 static scoped_refptr<VideoFrame> WrapNativeTexture( | 131 static scoped_refptr<VideoFrame> WrapNativeTexture( |
132 VideoPixelFormat format, | 132 VideoPixelFormat format, |
133 const gpu::MailboxHolder& mailbox_holder, | 133 const gpu::MailboxHolder& mailbox_holder, |
134 const ReleaseMailboxCB& mailbox_holder_release_cb, | 134 const ReleaseMailboxCB& mailbox_holder_release_cb, |
135 const gfx::Size& coded_size, | 135 const gfx::Size& coded_size, |
136 const gfx::Rect& visible_rect, | 136 const gfx::Rect& visible_rect, |
137 const gfx::Size& natural_size, | 137 const gfx::Size& natural_size, |
138 base::TimeDelta timestamp); | 138 base::TimeDelta timestamp); |
139 | 139 |
140 static scoped_refptr<VideoFrame> WrapNativeTextures( | |
miu
2016/05/05 20:35:36
If you're going to add this, please delete WrapNat
| |
141 VideoPixelFormat format, | |
142 const gpu::MailboxHolder (&mailbox_holder)[kMaxPlanes], | |
143 const ReleaseMailboxCB& mailbox_holders_release_cb, | |
144 const gfx::Size& coded_size, | |
145 const gfx::Rect& visible_rect, | |
146 const gfx::Size& natural_size, | |
147 base::TimeDelta timestamp); | |
148 | |
140 // Wraps a set of native textures representing YUV data with a VideoFrame. | 149 // Wraps a set of native textures representing YUV data with a VideoFrame. |
141 // |mailbox_holders_release_cb| will be called with a sync token as the | 150 // |mailbox_holders_release_cb| will be called with a sync token as the |
142 // argument when the VideoFrame is to be destroyed. | 151 // argument when the VideoFrame is to be destroyed. |
143 static scoped_refptr<VideoFrame> WrapYUV420NativeTextures( | 152 static scoped_refptr<VideoFrame> WrapYUV420NativeTextures( |
144 const gpu::MailboxHolder& y_mailbox_holder, | 153 const gpu::MailboxHolder& y_mailbox_holder, |
145 const gpu::MailboxHolder& u_mailbox_holder, | 154 const gpu::MailboxHolder& u_mailbox_holder, |
146 const gpu::MailboxHolder& v_mailbox_holder, | 155 const gpu::MailboxHolder& v_mailbox_holder, |
147 const ReleaseMailboxCB& mailbox_holders_release_cb, | 156 const ReleaseMailboxCB& mailbox_holders_release_cb, |
148 const gfx::Size& coded_size, | 157 const gfx::Size& coded_size, |
149 const gfx::Rect& visible_rect, | 158 const gfx::Rect& visible_rect, |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
563 gpu::SyncToken release_sync_token_; | 572 gpu::SyncToken release_sync_token_; |
564 | 573 |
565 VideoFrameMetadata metadata_; | 574 VideoFrameMetadata metadata_; |
566 | 575 |
567 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); | 576 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); |
568 }; | 577 }; |
569 | 578 |
570 } // namespace media | 579 } // namespace media |
571 | 580 |
572 #endif // MEDIA_BASE_VIDEO_FRAME_H_ | 581 #endif // MEDIA_BASE_VIDEO_FRAME_H_ |
OLD | NEW |