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