| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ | 5 #ifndef CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ |
| 6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ | 6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 DeviceType device_type = DEVICE_DECODER; | 73 DeviceType device_type = DEVICE_DECODER; |
| 74 size_t num_input_buffers = 0; | 74 size_t num_input_buffers = 0; |
| 75 uint32_t input_pixel_format = 0; | 75 uint32_t input_pixel_format = 0; |
| 76 // TODO(owenlin): Add output_pixel_format. For now only the native pixel | 76 // TODO(owenlin): Add output_pixel_format. For now only the native pixel |
| 77 // format of each VDA on Chromium is supported. | 77 // format of each VDA on Chromium is supported. |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 struct DmabufPlane { | 80 struct DmabufPlane { |
| 81 DmabufPlane(int32_t offset, int32_t stride) |
| 82 : offset(offset), stride(stride) {} |
| 81 int32_t offset; // in bytes | 83 int32_t offset; // in bytes |
| 82 int32_t stride; // in bytes | 84 int32_t stride; // in bytes |
| 83 }; | 85 }; |
| 84 | 86 |
| 85 // The callbacks of the ArcVideoAccelerator. The user of this class should | 87 // The callbacks of the ArcVideoAccelerator. The user of this class should |
| 86 // implement this interface. | 88 // implement this interface. |
| 87 class Client { | 89 class Client { |
| 88 public: | 90 public: |
| 89 virtual ~Client() {} | 91 virtual ~Client() {} |
| 90 | 92 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // called. | 159 // called. |
| 158 virtual void Flush() = 0; | 160 virtual void Flush() = 0; |
| 159 | 161 |
| 160 virtual ~ArcVideoAccelerator() {} | 162 virtual ~ArcVideoAccelerator() {} |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 } // namespace arc | 165 } // namespace arc |
| 164 } // namespace chromeos | 166 } // namespace chromeos |
| 165 | 167 |
| 166 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ | 168 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ |
| OLD | NEW |