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

Side by Side Diff: media/filters/gpu_video_decoder.h

Issue 2881553002: Add |texture_target_| and |pixel_format_| to media::PictureBuffer (Closed)
Patch Set: Created 3 years, 7 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_FILTERS_GPU_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 std::map<int32_t, PendingDecoderBuffer> bitstream_buffers_in_decoder_; 206 std::map<int32_t, PendingDecoderBuffer> bitstream_buffers_in_decoder_;
207 PictureBufferMap assigned_picture_buffers_; 207 PictureBufferMap assigned_picture_buffers_;
208 // PictureBuffers given to us by VDA via PictureReady, which we sent forward 208 // PictureBuffers given to us by VDA via PictureReady, which we sent forward
209 // as VideoFrames to be rendered via decode_cb_, and which will be returned 209 // as VideoFrames to be rendered via decode_cb_, and which will be returned
210 // to us via ReusePictureBuffer. 210 // to us via ReusePictureBuffer.
211 typedef std::map<int32_t /* picture_buffer_id */, 211 typedef std::map<int32_t /* picture_buffer_id */,
212 PictureBuffer::TextureIds /* texture_id */> 212 PictureBuffer::TextureIds /* texture_id */>
213 PictureBufferTextureMap; 213 PictureBufferTextureMap;
214 PictureBufferTextureMap picture_buffers_at_display_; 214 PictureBufferTextureMap picture_buffers_at_display_;
215 215
216 // The texture target used for decoded pictures.
217 uint32_t decoder_texture_target_;
218
219 // The pixel format used for decoded pictures.
220 VideoPixelFormat pixel_format_;
221
222 struct BufferData { 216 struct BufferData {
223 BufferData(int32_t bbid, 217 BufferData(int32_t bbid,
224 base::TimeDelta ts, 218 base::TimeDelta ts,
225 const gfx::Rect& visible_rect, 219 const gfx::Rect& visible_rect,
226 const gfx::Size& natural_size); 220 const gfx::Size& natural_size);
227 ~BufferData(); 221 ~BufferData();
228 int32_t bitstream_buffer_id; 222 int32_t bitstream_buffer_id;
229 base::TimeDelta timestamp; 223 base::TimeDelta timestamp;
230 gfx::Rect visible_rect; 224 gfx::Rect visible_rect;
231 gfx::Size natural_size; 225 gfx::Size natural_size;
(...skipping 30 matching lines...) Expand all
262 // Bound to factories_->GetMessageLoop(). 256 // Bound to factories_->GetMessageLoop().
263 // NOTE: Weak pointers must be invalidated before all other member variables. 257 // NOTE: Weak pointers must be invalidated before all other member variables.
264 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 258 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
265 259
266 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 260 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
267 }; 261 };
268 262
269 } // namespace media 263 } // namespace media
270 264
271 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 265 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698