| 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 // Number of output buffers enqueued to the device. | 398 // Number of output buffers enqueued to the device. |
| 399 int output_buffer_queued_count_; | 399 int output_buffer_queued_count_; |
| 400 // Output buffers ready to use. | 400 // Output buffers ready to use. |
| 401 std::list<int> free_output_buffers_; | 401 std::list<int> free_output_buffers_; |
| 402 // Mapping of int index to an output buffer record. | 402 // Mapping of int index to an output buffer record. |
| 403 std::vector<OutputRecord> output_buffer_map_; | 403 std::vector<OutputRecord> output_buffer_map_; |
| 404 | 404 |
| 405 VideoCodecProfile video_profile_; | 405 VideoCodecProfile video_profile_; |
| 406 uint32_t input_format_fourcc_; | 406 uint32_t input_format_fourcc_; |
| 407 uint32_t output_format_fourcc_; | 407 uint32_t output_format_fourcc_; |
| 408 gfx::Size visible_size_; | 408 gfx::Rect visible_rect_; |
| 409 gfx::Size coded_size_; | 409 gfx::Size coded_size_; |
| 410 | 410 |
| 411 struct BitstreamBufferRef; | 411 struct BitstreamBufferRef; |
| 412 // Input queue of stream buffers coming from the client. | 412 // Input queue of stream buffers coming from the client. |
| 413 std::queue<linked_ptr<BitstreamBufferRef>> decoder_input_queue_; | 413 std::queue<linked_ptr<BitstreamBufferRef>> decoder_input_queue_; |
| 414 // BitstreamBuffer currently being processed. | 414 // BitstreamBuffer currently being processed. |
| 415 std::unique_ptr<BitstreamBufferRef> decoder_current_bitstream_buffer_; | 415 std::unique_ptr<BitstreamBufferRef> decoder_current_bitstream_buffer_; |
| 416 | 416 |
| 417 // Queue storing decode surfaces ready to be output as soon as they are | 417 // Queue storing decode surfaces ready to be output as soon as they are |
| 418 // decoded. The surfaces must be output in order they are queued. | 418 // decoded. The surfaces must be output in order they are queued. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 | 467 |
| 468 // The WeakPtrFactory for |weak_this_|. | 468 // The WeakPtrFactory for |weak_this_|. |
| 469 base::WeakPtrFactory<V4L2SliceVideoDecodeAccelerator> weak_this_factory_; | 469 base::WeakPtrFactory<V4L2SliceVideoDecodeAccelerator> weak_this_factory_; |
| 470 | 470 |
| 471 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); | 471 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); |
| 472 }; | 472 }; |
| 473 | 473 |
| 474 } // namespace media | 474 } // namespace media |
| 475 | 475 |
| 476 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ | 476 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |