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

Side by Side Diff: media/video/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: fix nit Created 5 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "media/base/bitstream_buffer.h" 11 #include "media/base/bitstream_buffer.h"
12 #include "media/base/video_decoder_config.h" 12 #include "media/base/video_decoder_config.h"
13 #include "media/video/picture.h" 13 #include "media/video/picture.h"
14 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
15 15
16 typedef unsigned int GLenum; 16 typedef unsigned int GLenum;
17 17
18 namespace media { 18 namespace media {
19 19
20 // Video decoder interface. 20 // Video decoder interface.
21 // This interface is extended by the various components that ultimately 21 // This interface is extended by the various components that ultimately
22 // implement the backend of PPB_VideoDecode_Dev. 22 // implement the backend of PPB_VideoDecode_Dev.
23 class MEDIA_EXPORT VideoDecodeAccelerator { 23 class MEDIA_EXPORT VideoDecodeAccelerator {
24 public: 24 public:
25 // Specification of a decoding profile supported by an decoder.
26 // |max_resolution| and |min_resolution| are inclusive.
27 struct SupportedProfile {
28 VideoCodecProfile profile;
xhwang 2015/03/26 06:15:32 Initialize |profile| in the constructor.
henryhsu_tw 2015/03/26 09:38:34 Done.
29 gfx::Size max_resolution;
30 gfx::Size min_resolution;
31 };
xhwang 2015/03/26 06:15:32 How about: using SupportedProfiles = std::vector<
henryhsu_tw 2015/03/26 09:38:34 Done.
25 // Enumeration of potential errors generated by the API. 32 // Enumeration of potential errors generated by the API.
26 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not 33 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not
27 // rearrange, reuse or remove values as they are used for gathering UMA 34 // rearrange, reuse or remove values as they are used for gathering UMA
28 // statistics. 35 // statistics.
29 enum Error { 36 enum Error {
30 // An operation was attempted during an incompatible decoder state. 37 // An operation was attempted during an incompatible decoder state.
31 ILLEGAL_STATE = 1, 38 ILLEGAL_STATE = 1,
32 // Invalid argument was passed to an API method. 39 // Invalid argument was passed to an API method.
33 INVALID_ARGUMENT, 40 INVALID_ARGUMENT,
34 // Encoded input is unreadable. 41 // Encoded input is unreadable.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // uses "Destroy()" instead of trying to use the destructor. 173 // uses "Destroy()" instead of trying to use the destructor.
167 template <> 174 template <>
168 struct MEDIA_EXPORT DefaultDeleter<media::VideoDecodeAccelerator> { 175 struct MEDIA_EXPORT DefaultDeleter<media::VideoDecodeAccelerator> {
169 public: 176 public:
170 void operator()(void* video_decode_accelerator) const; 177 void operator()(void* video_decode_accelerator) const;
171 }; 178 };
172 179
173 } // namespace base 180 } // namespace base
174 181
175 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 182 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698