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

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

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

Powered by Google App Engine
This is Rietveld 408576698