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

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

Issue 2926593002: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client (Closed)
Patch Set: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client Created 3 years, 6 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_;
409 gfx::Size coded_size_; 408 gfx::Size coded_size_;
410 409
411 struct BitstreamBufferRef; 410 struct BitstreamBufferRef;
412 // Input queue of stream buffers coming from the client. 411 // Input queue of stream buffers coming from the client.
413 std::queue<linked_ptr<BitstreamBufferRef>> decoder_input_queue_; 412 std::queue<linked_ptr<BitstreamBufferRef>> decoder_input_queue_;
414 // BitstreamBuffer currently being processed. 413 // BitstreamBuffer currently being processed.
415 std::unique_ptr<BitstreamBufferRef> decoder_current_bitstream_buffer_; 414 std::unique_ptr<BitstreamBufferRef> decoder_current_bitstream_buffer_;
416 415
417 // Queue storing decode surfaces ready to be output as soon as they are 416 // 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. 417 // decoded. The surfaces must be output in order they are queued.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 466
468 // The WeakPtrFactory for |weak_this_|. 467 // The WeakPtrFactory for |weak_this_|.
469 base::WeakPtrFactory<V4L2SliceVideoDecodeAccelerator> weak_this_factory_; 468 base::WeakPtrFactory<V4L2SliceVideoDecodeAccelerator> weak_this_factory_;
470 469
471 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); 470 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator);
472 }; 471 };
473 472
474 } // namespace media 473 } // namespace media
475 474
476 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ 475 #endif // MEDIA_GPU_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698