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

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

Issue 1566533003: V4L2(S)VDA: Check if device handles profile for supported fourccs on init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 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 <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bool cleared; 83 bool cleared;
84 }; 84 };
85 85
86 // See http://crbug.com/255116. 86 // See http://crbug.com/255116.
87 // Input bitstream buffer size for up to 1080p streams. 87 // Input bitstream buffer size for up to 1080p streams.
88 const size_t kInputBufferMaxSizeFor1080p = 1024 * 1024; 88 const size_t kInputBufferMaxSizeFor1080p = 1024 * 1024;
89 // Input bitstream buffer size for up to 4k streams. 89 // Input bitstream buffer size for up to 4k streams.
90 const size_t kInputBufferMaxSizeFor4k = 4 * kInputBufferMaxSizeFor1080p; 90 const size_t kInputBufferMaxSizeFor4k = 4 * kInputBufferMaxSizeFor1080p;
91 const size_t kNumInputBuffers = 16; 91 const size_t kNumInputBuffers = 16;
92 92
93 // Input format V4L2 fourccs this class supports.
94 static const uint32_t supported_input_fourccs_[];
95
93 // 96 //
94 // Below methods are used by accelerator implementations. 97 // Below methods are used by accelerator implementations.
95 // 98 //
96 // Append slice data in |data| of size |size| to pending hardware 99 // Append slice data in |data| of size |size| to pending hardware
97 // input buffer with |index|. This buffer will be submitted for decode 100 // input buffer with |index|. This buffer will be submitted for decode
98 // on the next DecodeSurface(). Return true on success. 101 // on the next DecodeSurface(). Return true on success.
99 bool SubmitSlice(int index, const uint8_t* data, size_t size); 102 bool SubmitSlice(int index, const uint8_t* data, size_t size);
100 103
101 // Submit controls in |ext_ctrls| to hardware. Return true on success. 104 // Submit controls in |ext_ctrls| to hardware. Return true on success.
102 bool SubmitExtControls(struct v4l2_ext_controls* ext_ctrls); 105 bool SubmitExtControls(struct v4l2_ext_controls* ext_ctrls);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 393
391 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); 394 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator);
392 }; 395 };
393 396
394 class V4L2H264Picture; 397 class V4L2H264Picture;
395 class V4L2VP8Picture; 398 class V4L2VP8Picture;
396 399
397 } // namespace content 400 } // namespace content
398 401
399 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ 402 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/v4l2_device.cc ('k') | content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698