| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const std::vector<gfx::GpuMemoryBufferHandle>& | 54 const std::vector<gfx::GpuMemoryBufferHandle>& |
| 55 gpu_memory_buffer_handles) override; | 55 gpu_memory_buffer_handles) override; |
| 56 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 56 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 57 void Flush() override; | 57 void Flush() override; |
| 58 void Reset() override; | 58 void Reset() override; |
| 59 void Destroy() override; | 59 void Destroy() override; |
| 60 bool TryToSetupDecodeOnSeparateThread( | 60 bool TryToSetupDecodeOnSeparateThread( |
| 61 const base::WeakPtr<Client>& decode_client, | 61 const base::WeakPtr<Client>& decode_client, |
| 62 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 62 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
| 63 override; | 63 override; |
| 64 media::VideoPixelFormat GetOutputFormat() const override; | |
| 65 | 64 |
| 66 static media::VideoDecodeAccelerator::SupportedProfiles | 65 static media::VideoDecodeAccelerator::SupportedProfiles |
| 67 GetSupportedProfiles(); | 66 GetSupportedProfiles(); |
| 68 | 67 |
| 69 private: | 68 private: |
| 70 class V4L2H264Accelerator; | 69 class V4L2H264Accelerator; |
| 71 class V4L2VP8Accelerator; | 70 class V4L2VP8Accelerator; |
| 72 | 71 |
| 73 // Record for input buffers. | 72 // Record for input buffers. |
| 74 struct InputRecord { | 73 struct InputRecord { |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 462 |
| 464 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); | 463 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); |
| 465 }; | 464 }; |
| 466 | 465 |
| 467 class V4L2H264Picture; | 466 class V4L2H264Picture; |
| 468 class V4L2VP8Picture; | 467 class V4L2VP8Picture; |
| 469 | 468 |
| 470 } // namespace media | 469 } // namespace media |
| 471 | 470 |
| 472 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 471 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |