| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ |
| 6 #define MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <linux/videodev2.h> | 8 #include <linux/videodev2.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // injecting stream headers if required. Return the size in bytes of the | 212 // injecting stream headers if required. Return the size in bytes of the |
| 213 // resulting stream in the destination buffer. | 213 // resulting stream in the destination buffer. |
| 214 size_t CopyIntoOutputBuffer(const uint8_t* bitstream_data, | 214 size_t CopyIntoOutputBuffer(const uint8_t* bitstream_data, |
| 215 size_t bitstream_size, | 215 size_t bitstream_size, |
| 216 std::unique_ptr<BitstreamBufferRef> buffer_ref); | 216 std::unique_ptr<BitstreamBufferRef> buffer_ref); |
| 217 | 217 |
| 218 // Our original calling task runner for the child thread. | 218 // Our original calling task runner for the child thread. |
| 219 const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_; | 219 const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_; |
| 220 | 220 |
| 221 gfx::Size visible_size_; | 221 gfx::Size visible_size_; |
| 222 gfx::Size input_coded_size_; |
| 222 // Input allocated size required by the device. | 223 // Input allocated size required by the device. |
| 223 gfx::Size input_allocated_size_; | 224 gfx::Size input_allocated_size_; |
| 224 size_t output_buffer_byte_size_; | 225 size_t output_buffer_byte_size_; |
| 225 | 226 |
| 226 // Formats for input frames and the output stream. | 227 // Formats for input frames and the output stream. |
| 227 VideoPixelFormat device_input_format_; | 228 VideoPixelFormat device_input_format_; |
| 228 size_t input_planes_count_; | 229 size_t input_planes_count_; |
| 229 uint32_t output_format_fourcc_; | 230 uint32_t output_format_fourcc_; |
| 230 | 231 |
| 231 // | 232 // |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 // as both threads will not outlive this object. | 311 // as both threads will not outlive this object. |
| 311 base::WeakPtr<V4L2VideoEncodeAccelerator> weak_this_; | 312 base::WeakPtr<V4L2VideoEncodeAccelerator> weak_this_; |
| 312 base::WeakPtrFactory<V4L2VideoEncodeAccelerator> weak_this_ptr_factory_; | 313 base::WeakPtrFactory<V4L2VideoEncodeAccelerator> weak_this_ptr_factory_; |
| 313 | 314 |
| 314 DISALLOW_COPY_AND_ASSIGN(V4L2VideoEncodeAccelerator); | 315 DISALLOW_COPY_AND_ASSIGN(V4L2VideoEncodeAccelerator); |
| 315 }; | 316 }; |
| 316 | 317 |
| 317 } // namespace media | 318 } // namespace media |
| 318 | 319 |
| 319 #endif // MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ | 320 #endif // MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ |
| OLD | NEW |