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

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

Issue 1751323002: Allow multiple texture ids per picture buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/video/picture.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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 public: 119 public:
120 // SetCdm completion callback to indicate whether the CDM is successfully 120 // SetCdm completion callback to indicate whether the CDM is successfully
121 // attached to the decoder. The default implementation is a no-op since most 121 // attached to the decoder. The default implementation is a no-op since most
122 // VDAs don't support encrypted video. 122 // VDAs don't support encrypted video.
123 virtual void NotifyCdmAttached(bool success); 123 virtual void NotifyCdmAttached(bool success);
124 124
125 // Callback to tell client how many and what size of buffers to provide. 125 // Callback to tell client how many and what size of buffers to provide.
126 // Note that the actual count provided through AssignPictureBuffers() can be 126 // Note that the actual count provided through AssignPictureBuffers() can be
127 // larger than the value requested. 127 // larger than the value requested.
128 virtual void ProvidePictureBuffers(uint32_t requested_num_of_buffers, 128 virtual void ProvidePictureBuffers(uint32_t requested_num_of_buffers,
129 uint32_t textures_per_buffer,
129 const gfx::Size& dimensions, 130 const gfx::Size& dimensions,
130 uint32_t texture_target) = 0; 131 uint32_t texture_target) = 0;
131 132
132 // Callback to dismiss picture buffer that was assigned earlier. 133 // Callback to dismiss picture buffer that was assigned earlier.
133 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0; 134 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0;
134 135
135 // Callback to deliver decoded pictures ready to be displayed. 136 // Callback to deliver decoded pictures ready to be displayed.
136 virtual void PictureReady(const Picture& picture) = 0; 137 virtual void PictureReady(const Picture& picture) = 0;
137 138
138 // Callback to notify that decoded has decoded the end of the current 139 // Callback to notify that decoded has decoded the end of the current
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> 253 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator>
253 // uses "Destroy()" instead of trying to use the destructor. 254 // uses "Destroy()" instead of trying to use the destructor.
254 template <> 255 template <>
255 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 256 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
256 void operator()(media::VideoDecodeAccelerator* vda) const; 257 void operator()(media::VideoDecodeAccelerator* vda) const;
257 }; 258 };
258 259
259 } // namespace std 260 } // namespace std
260 261
261 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 262 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/video/picture.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698