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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dispatch GetSupportedResolution to each vda Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file contains an implementation of VideoDecodeAccelerator 5 // This file contains an implementation of VideoDecodeAccelerator
6 // that utilizes hardware video decoders, which expose Video4Linux 2 API 6 // that utilizes hardware video decoders, which expose Video4Linux 2 API
7 // (http://linuxtv.org/downloads/v4l-dvb-apis/). 7 // (http://linuxtv.org/downloads/v4l-dvb-apis/).
8 8
9 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 9 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 Client* client) override; 90 Client* client) override;
91 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 91 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
92 virtual void AssignPictureBuffers( 92 virtual void AssignPictureBuffers(
93 const std::vector<media::PictureBuffer>& buffers) override; 93 const std::vector<media::PictureBuffer>& buffers) override;
94 virtual void ReusePictureBuffer(int32 picture_buffer_id) override; 94 virtual void ReusePictureBuffer(int32 picture_buffer_id) override;
95 virtual void Flush() override; 95 virtual void Flush() override;
96 virtual void Reset() override; 96 virtual void Reset() override;
97 virtual void Destroy() override; 97 virtual void Destroy() override;
98 virtual bool CanDecodeOnIOThread() override; 98 virtual bool CanDecodeOnIOThread() override;
99 99
100 // Get the minimum and maximum supported decode resolution.
101 static media::VideoDecodeAccelerator::SupportedResolution
102 GetSupportedResolution();
103
100 private: 104 private:
101 // These are rather subjectively tuned. 105 // These are rather subjectively tuned.
102 enum { 106 enum {
103 kInputBufferCount = 8, 107 kInputBufferCount = 8,
104 // TODO(posciak): determine input buffer size based on level limits. 108 // TODO(posciak): determine input buffer size based on level limits.
105 // See http://crbug.com/255116. 109 // See http://crbug.com/255116.
106 // Input bitstream buffer size for up to 1080p streams. 110 // Input bitstream buffer size for up to 1080p streams.
107 kInputBufferMaxSizeFor1080p = 1024 * 1024, 111 kInputBufferMaxSizeFor1080p = 1024 * 1024,
108 // Input bitstream buffer size for up to 4k streams. 112 // Input bitstream buffer size for up to 4k streams.
109 kInputBufferMaxSizeFor4k = 4 * kInputBufferMaxSizeFor1080p, 113 kInputBufferMaxSizeFor4k = 4 * kInputBufferMaxSizeFor1080p,
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 441
438 // The WeakPtrFactory for |weak_this_|. 442 // The WeakPtrFactory for |weak_this_|.
439 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_; 443 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_;
440 444
441 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator); 445 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator);
442 }; 446 };
443 447
444 } // namespace content 448 } // namespace content
445 449
446 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 450 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698