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

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

Issue 11826064: Enforce non-negative BitstreamBuffer id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Documented the wrapping at 30 bits. Created 7 years, 11 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 int32 bitstream_buffer_id; 211 int32 bitstream_buffer_id;
212 base::TimeDelta timestamp; 212 base::TimeDelta timestamp;
213 gfx::Rect visible_rect; 213 gfx::Rect visible_rect;
214 gfx::Size natural_size; 214 gfx::Size natural_size;
215 }; 215 };
216 std::list<BufferData> input_buffer_data_; 216 std::list<BufferData> input_buffer_data_;
217 217
218 // picture_buffer_id and the frame wrapping the corresponding Picture, for 218 // picture_buffer_id and the frame wrapping the corresponding Picture, for
219 // frames that have been decoded but haven't been requested by a Read() yet. 219 // frames that have been decoded but haven't been requested by a Read() yet.
220 std::list<scoped_refptr<VideoFrame> > ready_video_frames_; 220 std::list<scoped_refptr<VideoFrame> > ready_video_frames_;
221 int64 next_picture_buffer_id_; 221 int32 next_picture_buffer_id_;
222 int64 next_bitstream_buffer_id_; 222 int32 next_bitstream_buffer_id_;
223 223
224 // Indicates decoding error occurred. 224 // Indicates decoding error occurred.
225 bool error_occured_; 225 bool error_occured_;
226 226
227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
228 }; 228 };
229 229
230 } // namespace media 230 } // namespace media
231 231
232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/video_decode_accelerator_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698