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

Side by Side Diff: media/video/capture/file_video_capture_device.cc

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 5744a8bbb Nits. Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/video/capture/file_video_capture_device.h" 5 #include "media/video/capture/file_video_capture_device.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 reinterpret_cast<char*>(video_frame_.get()), 279 reinterpret_cast<char*>(video_frame_.get()),
280 frame_size_), 280 frame_size_),
281 frame_size_); 281 frame_size_);
282 } else { 282 } else {
283 current_byte_index_ += frame_size_ + kY4MSimpleFrameDelimiterSize; 283 current_byte_index_ += frame_size_ + kY4MSimpleFrameDelimiterSize;
284 } 284 }
285 285
286 // Give the captured frame to the client. 286 // Give the captured frame to the client.
287 client_->OnIncomingCapturedFrame(video_frame_.get(), 287 client_->OnIncomingCapturedFrame(video_frame_.get(),
288 frame_size_, 288 frame_size_,
289 base::TimeTicks::Now(), 289 capture_format_,
290 0, 290 0,
291 capture_format_); 291 base::TimeTicks::Now());
292 // Reschedule next CaptureTask. 292 // Reschedule next CaptureTask.
293 base::MessageLoop::current()->PostDelayedTask( 293 base::MessageLoop::current()->PostDelayedTask(
294 FROM_HERE, 294 FROM_HERE,
295 base::Bind(&FileVideoCaptureDevice::OnCaptureTask, 295 base::Bind(&FileVideoCaptureDevice::OnCaptureTask,
296 base::Unretained(this)), 296 base::Unretained(this)),
297 base::TimeDelta::FromSeconds(1) / capture_format_.frame_rate); 297 base::TimeDelta::FromSeconds(1) / capture_format_.frame_rate);
298 } 298 }
299 299
300 } // namespace media 300 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698