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

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: 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 13 matching lines...) Expand all
24 class MEDIA_EXPORT VideoDecodeAccelerator { 24 class MEDIA_EXPORT VideoDecodeAccelerator {
25 public: 25 public:
26 // Specification of a decoding profile supported by an decoder. 26 // Specification of a decoding profile supported by an decoder.
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
35 // Flags that can be passed when providing picture buffers.
Pawel Osciak 2015/12/04 11:09:45 Should this be changed?
liberato (no reviews please) 2015/12/04 18:28:58 Done.
36 enum ProfileFlags {
37 kNoFlags = 0,
38
39 // If set, then the VDA makes no guarantees that it won't stall before
40 // sending all the picture buffers to the client via PictureReady.
41 kCanStallAnytime = 1 << 0,
42 };
43
44 ProfileFlags flags;
34 }; 45 };
35 using SupportedProfiles = std::vector<SupportedProfile>; 46 using SupportedProfiles = std::vector<SupportedProfile>;
36 47
37 // Enumeration of potential errors generated by the API. 48 // Enumeration of potential errors generated by the API.
38 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not 49 // 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 50 // rearrange, reuse or remove values as they are used for gathering UMA
40 // statistics. 51 // statistics.
41 enum Error { 52 enum Error {
42 // An operation was attempted during an incompatible decoder state. 53 // An operation was attempted during an incompatible decoder state.
43 ILLEGAL_STATE = 1, 54 ILLEGAL_STATE = 1,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> 207 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator>
197 // uses "Destroy()" instead of trying to use the destructor. 208 // uses "Destroy()" instead of trying to use the destructor.
198 template <> 209 template <>
199 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 210 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
200 void operator()(media::VideoDecodeAccelerator* vda) const; 211 void operator()(media::VideoDecodeAccelerator* vda) const;
201 }; 212 };
202 213
203 } // namespace std 214 } // namespace std
204 215
205 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 216 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698