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

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

Issue 2881553002: Add |texture_target_| and |pixel_format_| to media::PictureBuffer (Closed)
Patch Set: removed IPC changes 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
« no previous file with comments | « content/renderer/media/gpu/rtc_video_decoder.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | 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_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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/media/gpu/rtc_video_decoder.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698