Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: media/gpu/v4l2_slice_video_decode_accelerator.h

Issue 2398883002: Add support for multiple V4L2 video devices of the same type. (Closed)
Patch Set: Address comments, reorganize V4L2Device::Type. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Output queue state. 396 // Output queue state.
397 bool output_streamon_; 397 bool output_streamon_;
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 output_format_fourcc_; 407 uint32_t output_format_fourcc_;
407 gfx::Size visible_size_; 408 gfx::Size visible_size_;
408 gfx::Size coded_size_; 409 gfx::Size coded_size_;
409 410
410 struct BitstreamBufferRef; 411 struct BitstreamBufferRef;
411 // Input queue of stream buffers coming from the client. 412 // Input queue of stream buffers coming from the client.
412 std::queue<linked_ptr<BitstreamBufferRef>> decoder_input_queue_; 413 std::queue<linked_ptr<BitstreamBufferRef>> decoder_input_queue_;
413 // BitstreamBuffer currently being processed. 414 // BitstreamBuffer currently being processed.
414 std::unique_ptr<BitstreamBufferRef> decoder_current_bitstream_buffer_; 415 std::unique_ptr<BitstreamBufferRef> decoder_current_bitstream_buffer_;
415 416
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); 471 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator);
471 }; 472 };
472 473
473 class V4L2H264Picture; 474 class V4L2H264Picture;
474 class V4L2VP8Picture; 475 class V4L2VP8Picture;
475 class V4L2VP9Picture; 476 class V4L2VP9Picture;
476 477
477 } // namespace media 478 } // namespace media
478 479
479 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ 480 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698