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

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

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bot failures, cl feedback. Created 5 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 (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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 // |max_resolution| and |min_resolution| are inclusive. 27 // |max_resolution| and |min_resolution| are inclusive.
28 struct MEDIA_EXPORT SupportedProfile { 28 struct MEDIA_EXPORT SupportedProfile {
29 SupportedProfile(); 29 SupportedProfile();
30 ~SupportedProfile(); 30 ~SupportedProfile();
31 VideoCodecProfile profile; 31 VideoCodecProfile profile;
32 gfx::Size max_resolution; 32 gfx::Size max_resolution;
33 gfx::Size min_resolution; 33 gfx::Size min_resolution;
34 }; 34 };
35 using SupportedProfiles = std::vector<SupportedProfile>; 35 using SupportedProfiles = std::vector<SupportedProfile>;
36 36
37 struct MEDIA_EXPORT Capabilities {
38 Capabilities();
39 ~Capabilities();
40 // Flags that can be associated with a VDA.
41 enum Flags {
42 kNoFlags = 0,
sandersd (OOO until July 31) 2015/12/04 19:10:24 And now here we've ended up with two different enu
liberato (no reviews please) 2015/12/07 19:04:39 true. changed to NO_FLAGS to be consistent. chang
43
44 // If set, then the VDA makes no guarantees that it won't stall before
45 // sending all the picture buffers to the client via PictureReady.
46 kCanStallAnytime = 1 << 0,
47 };
48
49 SupportedProfiles supported_profiles;
50 Flags flags;
51 };
52
37 // Enumeration of potential errors generated by the API. 53 // Enumeration of potential errors generated by the API.
38 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not 54 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not
39 // rearrange, reuse or remove values as they are used for gathering UMA 55 // rearrange, reuse or remove values as they are used for gathering UMA
40 // statistics. 56 // statistics.
41 enum Error { 57 enum Error {
42 // An operation was attempted during an incompatible decoder state. 58 // An operation was attempted during an incompatible decoder state.
43 ILLEGAL_STATE = 1, 59 ILLEGAL_STATE = 1,
44 // Invalid argument was passed to an API method. 60 // Invalid argument was passed to an API method.
45 INVALID_ARGUMENT, 61 INVALID_ARGUMENT,
46 // Encoded input is unreadable. 62 // Encoded input is unreadable.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> 212 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator>
197 // uses "Destroy()" instead of trying to use the destructor. 213 // uses "Destroy()" instead of trying to use the destructor.
198 template <> 214 template <>
199 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 215 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
200 void operator()(media::VideoDecodeAccelerator* vda) const; 216 void operator()(media::VideoDecodeAccelerator* vda) const;
201 }; 217 };
202 218
203 } // namespace std 219 } // namespace std
204 220
205 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 221 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/renderers/mock_gpu_video_accelerator_factories.h ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698