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

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, 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 public: 124 public:
125 // SetCdm completion callback to indicate whether the CDM is successfully 125 // SetCdm completion callback to indicate whether the CDM is successfully
126 // attached to the decoder. The default implementation is a no-op since most 126 // attached to the decoder. The default implementation is a no-op since most
127 // VDAs don't support encrypted video. 127 // VDAs don't support encrypted video.
128 virtual void NotifyCdmAttached(bool success); 128 virtual void NotifyCdmAttached(bool success);
129 129
130 // Callback to tell client how many and what size of buffers to provide. 130 // Callback to tell client how many and what size of buffers to provide.
131 // Note that the actual count provided through AssignPictureBuffers() can be 131 // Note that the actual count provided through AssignPictureBuffers() can be
132 // larger than the value requested. 132 // larger than the value requested.
133 virtual void ProvidePictureBuffers(uint32_t requested_num_of_buffers, 133 virtual void ProvidePictureBuffers(uint32_t requested_num_of_buffers,
134 uint32_t textures_per_buffer,
134 const gfx::Size& dimensions, 135 const gfx::Size& dimensions,
135 uint32_t texture_target) = 0; 136 uint32_t texture_target) = 0;
136 137
137 // Callback to dismiss picture buffer that was assigned earlier. 138 // Callback to dismiss picture buffer that was assigned earlier.
138 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0; 139 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0;
139 140
140 // Callback to deliver decoded pictures ready to be displayed. 141 // Callback to deliver decoded pictures ready to be displayed.
141 virtual void PictureReady(const Picture& picture) = 0; 142 virtual void PictureReady(const Picture& picture) = 0;
142 143
143 // Callback to notify that decoded has decoded the end of the current 144 // Callback to notify that decoded has decoded the end of the current
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> 258 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator>
258 // uses "Destroy()" instead of trying to use the destructor. 259 // uses "Destroy()" instead of trying to use the destructor.
259 template <> 260 template <>
260 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 261 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
261 void operator()(media::VideoDecodeAccelerator* vda) const; 262 void operator()(media::VideoDecodeAccelerator* vda) const;
262 }; 263 };
263 264
264 } // namespace std 265 } // namespace std
265 266
266 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 267 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« content/renderer/pepper/video_decoder_shim.cc ('K') | « media/video/picture.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698