OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_ |
| 6 #define CONTENT_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/memory/shared_memory_handle.h" |
| 11 #include "base/time/time.h" |
| 12 #include "content/common/content_export.h" |
| 13 #include "ui/gfx/gpu_memory_buffer.h" |
| 14 |
| 15 namespace content { |
| 16 |
| 17 struct CONTENT_EXPORT VideoEncodeParams { |
| 18 VideoEncodeParams(); |
| 19 ~VideoEncodeParams(); |
| 20 |
| 21 int32_t frame_id; |
| 22 base::TimeDelta timestamp; |
| 23 base::SharedMemoryHandle buffer_handle; |
| 24 uint32_t buffer_offset; |
| 25 uint32_t buffer_size; |
| 26 bool force_keyframe; |
| 27 }; |
| 28 |
| 29 struct CONTENT_EXPORT VideoEncodeParams2 { |
| 30 VideoEncodeParams2(); |
| 31 ~VideoEncodeParams2(); |
| 32 |
| 33 int32_t frame_id; |
| 34 base::TimeDelta timestamp; |
| 35 std::vector<gfx::GpuMemoryBufferHandle> gpu_memory_buffer_handles; |
| 36 gfx::Size size; |
| 37 bool force_keyframe; |
| 38 }; |
| 39 |
| 40 } // namespace content |
| 41 |
| 42 #endif // CONTENT_COMMON_GPU_VIDEO_ENCODE_PARAMS_H_ |
OLD | NEW |