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

Side by Side Diff: media/gpu/fake_video_decode_accelerator.cc

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: minor bugfix Created 4 years, 2 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 | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | media/gpu/ipc/client/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "media/gpu/fake_video_decode_accelerator.h" 5 #include "media/gpu/fake_video_decode_accelerator.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 flushing_ = false; 163 flushing_ = false;
164 client_->NotifyFlushDone(); 164 client_->NotifyFlushDone();
165 } 165 }
166 while (!free_output_buffers_.empty() && !queued_bitstream_ids_.empty()) { 166 while (!free_output_buffers_.empty() && !queued_bitstream_ids_.empty()) {
167 int bitstream_id = queued_bitstream_ids_.front(); 167 int bitstream_id = queued_bitstream_ids_.front();
168 queued_bitstream_ids_.pop(); 168 queued_bitstream_ids_.pop();
169 int buffer_id = free_output_buffers_.front(); 169 int buffer_id = free_output_buffers_.front();
170 free_output_buffers_.pop(); 170 free_output_buffers_.pop();
171 171
172 const Picture picture = 172 const Picture picture =
173 Picture(buffer_id, bitstream_id, gfx::Rect(frame_buffer_size_), false); 173 Picture(buffer_id, bitstream_id, gfx::Rect(frame_buffer_size_),
174 gfx::ColorSpace(), false);
174 client_->PictureReady(picture); 175 client_->PictureReady(picture);
175 // Bitstream no longer needed. 176 // Bitstream no longer needed.
176 client_->NotifyEndOfBitstreamBuffer(bitstream_id); 177 client_->NotifyEndOfBitstreamBuffer(bitstream_id);
177 if (flushing_ && queued_bitstream_ids_.empty()) { 178 if (flushing_ && queued_bitstream_ids_.empty()) {
178 flushing_ = false; 179 flushing_ = false;
179 client_->NotifyFlushDone(); 180 client_->NotifyFlushDone();
180 } 181 }
181 } 182 }
182 } 183 }
183 184
184 } // namespace media 185 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | media/gpu/ipc/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698