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

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

Issue 2693653003: Merge M57: "Make setOutputSurface, encrypted capabilities. Blacklist hi6210sft." (Closed)
Patch Set: Created 3 years, 10 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/gpu/android_video_decode_accelerator.cc ('k') | no next file » | 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1, 73 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1,
74 74
75 // If set, the VDA will use deferred initialization if the config 75 // If set, the VDA will use deferred initialization if the config
76 // indicates that the client supports it as well. Refer to 76 // indicates that the client supports it as well. Refer to
77 // NotifyInitializationComplete for more details. 77 // NotifyInitializationComplete for more details.
78 SUPPORTS_DEFERRED_INITIALIZATION = 1 << 2, 78 SUPPORTS_DEFERRED_INITIALIZATION = 1 << 2,
79 79
80 // If set, video frames will have COPY_REQUIRED flag which will cause 80 // If set, video frames will have COPY_REQUIRED flag which will cause
81 // an extra texture copy during composition. 81 // an extra texture copy during composition.
82 REQUIRES_TEXTURE_COPY = 1 << 3, 82 REQUIRES_TEXTURE_COPY = 1 << 3,
83
84 // Whether the VDA supports encrypted streams or not.
85 SUPPORTS_ENCRYPTED_STREAMS = 1 << 4,
86
87 // If set the decoder does not require a restart in order to switch to
88 // using an external output surface.
89 SUPPORTS_SET_EXTERNAL_OUTPUT_SURFACE = 1 << 5,
83 }; 90 };
84 91
85 SupportedProfiles supported_profiles; 92 SupportedProfiles supported_profiles;
86 uint32_t flags; 93 uint32_t flags;
87 }; 94 };
88 95
89 // Enumeration of potential errors generated by the API. 96 // Enumeration of potential errors generated by the API.
90 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not 97 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not
91 // rearrange, reuse or remove values as they are used for gathering UMA 98 // rearrange, reuse or remove values as they are used for gathering UMA
92 // statistics. 99 // statistics.
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to 365 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to
359 // use the destructor. 366 // use the destructor.
360 template <> 367 template <>
361 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 368 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
362 void operator()(media::VideoDecodeAccelerator* vda) const; 369 void operator()(media::VideoDecodeAccelerator* vda) const;
363 }; 370 };
364 371
365 } // namespace std 372 } // namespace std
366 373
367 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 374 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/android_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698