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

Side by Side Diff: media/video/video_decode_accelerator.h

Issue 1820553002: Expose encrypted_only attribute on VDA supported profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 4 years, 9 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
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 15 matching lines...) Expand all
26 class MEDIA_EXPORT VideoDecodeAccelerator { 26 class MEDIA_EXPORT VideoDecodeAccelerator {
27 public: 27 public:
28 // Specification of a decoding profile supported by an decoder. 28 // Specification of a decoding profile supported by an decoder.
29 // |max_resolution| and |min_resolution| are inclusive. 29 // |max_resolution| and |min_resolution| are inclusive.
30 struct MEDIA_EXPORT SupportedProfile { 30 struct MEDIA_EXPORT SupportedProfile {
31 SupportedProfile(); 31 SupportedProfile();
32 ~SupportedProfile(); 32 ~SupportedProfile();
33 VideoCodecProfile profile; 33 VideoCodecProfile profile;
34 gfx::Size max_resolution; 34 gfx::Size max_resolution;
35 gfx::Size min_resolution; 35 gfx::Size min_resolution;
36 bool encrypted_only;
36 }; 37 };
37 using SupportedProfiles = std::vector<SupportedProfile>; 38 using SupportedProfiles = std::vector<SupportedProfile>;
38 39
39 struct MEDIA_EXPORT Capabilities { 40 struct MEDIA_EXPORT Capabilities {
40 Capabilities(); 41 Capabilities();
41 Capabilities(const Capabilities& other); 42 Capabilities(const Capabilities& other);
42 ~Capabilities(); 43 ~Capabilities();
43 44
44 std::string AsHumanReadableString() const; 45 std::string AsHumanReadableString() const;
45 46
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> 252 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator>
252 // uses "Destroy()" instead of trying to use the destructor. 253 // uses "Destroy()" instead of trying to use the destructor.
253 template <> 254 template <>
254 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 255 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
255 void operator()(media::VideoDecodeAccelerator* vda) const; 256 void operator()(media::VideoDecodeAccelerator* vda) const;
256 }; 257 };
257 258
258 } // namespace std 259 } // namespace std
259 260
260 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 261 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698