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

Side by Side Diff: media/capture/video/linux/v4l2_capture_delegate.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/capture/video/linux/v4l2_capture_delegate.h" 5 #include "media/capture/video/linux/v4l2_capture_delegate.h"
6 6
7 #include <poll.h> 7 #include <poll.h>
8 #include <sys/fcntl.h> 8 #include <sys/fcntl.h>
9 #include <sys/ioctl.h> 9 #include <sys/ioctl.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_enumerator.h" 13 #include "base/files/file_enumerator.h"
14 #include "base/posix/eintr_wrapper.h" 14 #include "base/posix/eintr_wrapper.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "build/build_config.h"
16 #include "media/base/bind_to_current_loop.h" 17 #include "media/base/bind_to_current_loop.h"
17 #include "media/capture/video/linux/v4l2_capture_delegate_multi_plane.h" 18 #include "media/capture/video/linux/v4l2_capture_delegate_multi_plane.h"
18 #include "media/capture/video/linux/v4l2_capture_delegate_single_plane.h" 19 #include "media/capture/video/linux/v4l2_capture_delegate_single_plane.h"
19 #include "media/capture/video/linux/video_capture_device_linux.h" 20 #include "media/capture/video/linux/video_capture_device_linux.h"
20 21
21 namespace media { 22 namespace media {
22 23
23 // Desired number of video buffers to allocate. The actual number of allocated 24 // Desired number of video buffers to allocate. The actual number of allocated
24 // buffers by v4l2 driver can be higher or lower than this number. 25 // buffers by v4l2 driver can be higher or lower than this number.
25 // kNumVideoBuffers should not be too small, or Chrome may not return enough 26 // kNumVideoBuffers should not be too small, or Chrome may not return enough
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 420
420 void V4L2CaptureDelegate::SetErrorState( 421 void V4L2CaptureDelegate::SetErrorState(
421 const tracked_objects::Location& from_here, 422 const tracked_objects::Location& from_here,
422 const std::string& reason) { 423 const std::string& reason) {
423 DCHECK(v4l2_task_runner_->BelongsToCurrentThread()); 424 DCHECK(v4l2_task_runner_->BelongsToCurrentThread());
424 is_capturing_ = false; 425 is_capturing_ = false;
425 client_->OnError(from_here, reason); 426 client_->OnError(from_here, reason);
426 } 427 }
427 428
428 } // namespace media 429 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/linux/v4l2_capture_delegate.h ('k') | media/capture/video/linux/v4l2_capture_delegate_multi_plane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698