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; |
64 | 65 |
65 static media::VideoDecodeAccelerator::SupportedProfiles | 66 static media::VideoDecodeAccelerator::SupportedProfiles |
66 GetSupportedProfiles(); | 67 GetSupportedProfiles(); |
67 | 68 |
68 private: | 69 private: |
69 class V4L2H264Accelerator; | 70 class V4L2H264Accelerator; |
70 class V4L2VP8Accelerator; | 71 class V4L2VP8Accelerator; |
71 | 72 |
72 // Record for input buffers. | 73 // Record for input buffers. |
73 struct InputRecord { | 74 struct InputRecord { |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 463 |
463 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); | 464 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); |
464 }; | 465 }; |
465 | 466 |
466 class V4L2H264Picture; | 467 class V4L2H264Picture; |
467 class V4L2VP8Picture; | 468 class V4L2VP8Picture; |
468 | 469 |
469 } // namespace media | 470 } // namespace media |
470 | 471 |
471 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 472 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |