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 CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <linux/videodev2.h> | 8 #include <linux/videodev2.h> |
9 #include <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 VideoDecodeAccelerator::Client* client) override; | 46 VideoDecodeAccelerator::Client* client) override; |
47 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; | 47 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; |
48 void AssignPictureBuffers( | 48 void AssignPictureBuffers( |
49 const std::vector<media::PictureBuffer>& buffers) override; | 49 const std::vector<media::PictureBuffer>& buffers) override; |
50 void ReusePictureBuffer(int32 picture_buffer_id) override; | 50 void ReusePictureBuffer(int32 picture_buffer_id) override; |
51 void Flush() override; | 51 void Flush() override; |
52 void Reset() override; | 52 void Reset() override; |
53 void Destroy() override; | 53 void Destroy() override; |
54 bool CanDecodeOnIOThread() override; | 54 bool CanDecodeOnIOThread() override; |
55 | 55 |
| 56 static std::vector<media::VideoDecodeAccelerator::SupportedProfile> |
| 57 GetSupportedProfiles(); |
| 58 |
56 private: | 59 private: |
57 class V4L2H264Accelerator; | 60 class V4L2H264Accelerator; |
58 class V4L2VP8Accelerator; | 61 class V4L2VP8Accelerator; |
59 | 62 |
60 // Record for input buffers. | 63 // Record for input buffers. |
61 struct InputRecord { | 64 struct InputRecord { |
62 InputRecord(); | 65 InputRecord(); |
63 int32 input_id; | 66 int32 input_id; |
64 void* address; | 67 void* address; |
65 size_t length; | 68 size_t length; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 388 |
386 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); | 389 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); |
387 }; | 390 }; |
388 | 391 |
389 class V4L2H264Picture; | 392 class V4L2H264Picture; |
390 class V4L2VP8Picture; | 393 class V4L2VP8Picture; |
391 | 394 |
392 } // namespace content | 395 } // namespace content |
393 | 396 |
394 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 397 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |