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

Side by Side Diff: content/common/gpu/media/generic_v4l2_video_device.cc

Issue 880643004: Use GSC0 instead of GSC1 for video encoding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.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 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 5
6 #include <fcntl.h> 6 #include <fcntl.h>
7 #include <libdrm/drm_fourcc.h> 7 #include <libdrm/drm_fourcc.h>
8 #include <linux/videodev2.h> 8 #include <linux/videodev2.h>
9 #include <poll.h> 9 #include <poll.h>
10 #include <sys/eventfd.h> 10 #include <sys/eventfd.h>
(...skipping 21 matching lines...) Expand all
32 #else 32 #else
33 #define v4l2_close close 33 #define v4l2_close close
34 #define v4l2_ioctl ioctl 34 #define v4l2_ioctl ioctl
35 #endif 35 #endif
36 36
37 namespace content { 37 namespace content {
38 38
39 namespace { 39 namespace {
40 const char kDecoderDevice[] = "/dev/video-dec"; 40 const char kDecoderDevice[] = "/dev/video-dec";
41 const char kEncoderDevice[] = "/dev/video-enc"; 41 const char kEncoderDevice[] = "/dev/video-enc";
42 const char kImageProcessorDevice[] = "/dev/gsc1"; 42 const char kImageProcessorDevice[] = "/dev/gsc0";
43 } 43 }
44 44
45 GenericV4L2Device::GenericV4L2Device(Type type) 45 GenericV4L2Device::GenericV4L2Device(Type type)
46 : type_(type), 46 : type_(type),
47 device_fd_(-1), 47 device_fd_(-1),
48 device_poll_interrupt_fd_(-1) {} 48 device_poll_interrupt_fd_(-1) {}
49 49
50 GenericV4L2Device::~GenericV4L2Device() { 50 GenericV4L2Device::~GenericV4L2Device() {
51 if (device_poll_interrupt_fd_ != -1) { 51 if (device_poll_interrupt_fd_ != -1) {
52 close(device_poll_interrupt_fd_); 52 close(device_poll_interrupt_fd_);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 StubPathMap paths; 289 StubPathMap paths;
290 paths[kModuleV4l2].push_back(kV4l2Lib); 290 paths[kModuleV4l2].push_back(kV4l2Lib);
291 291
292 return InitializeStubs(paths); 292 return InitializeStubs(paths);
293 #else 293 #else
294 return true; 294 return true;
295 #endif 295 #endif
296 } 296 }
297 297
298 } // namespace content 298 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698