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

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

Issue 882123004: Renamed v4l2_video_device.*->v4l2_device.* and generic_v4l2_video_device.*->generic_v4l2_device.* a… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the include to updated file name. Created 5 years, 9 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 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 <dlfcn.h> 5 #include <dlfcn.h>
6 #include <fcntl.h> 6 #include <fcntl.h>
7 #include <linux/videodev2.h> 7 #include <linux/videodev2.h>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/posix/eintr_wrapper.h" 10 #include "base/posix/eintr_wrapper.h"
11 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
12 #include "content/common/gpu/media/tegra_v4l2_video_device.h" 12 #include "content/common/gpu/media/tegra_v4l2_device.h"
13 #include "ui/gl/gl_bindings.h" 13 #include "ui/gl/gl_bindings.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 namespace { 17 namespace {
18 const char kDecoderDevice[] = "/dev/tegra_avpchannel"; 18 const char kDecoderDevice[] = "/dev/tegra_avpchannel";
19 const char kEncoderDevice[] = "/dev/nvhost-msenc"; 19 const char kEncoderDevice[] = "/dev/nvhost-msenc";
20 } 20 }
21 21
22 typedef int32 (*TegraV4L2Open)(const char* name, int32 flags); 22 typedef int32 (*TegraV4L2Open)(const char* name, int32 flags);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 GLenum TegraV4L2Device::GetTextureTarget() { return GL_TEXTURE_2D; } 214 GLenum TegraV4L2Device::GetTextureTarget() { return GL_TEXTURE_2D; }
215 215
216 uint32 TegraV4L2Device::PreferredInputFormat() { 216 uint32 TegraV4L2Device::PreferredInputFormat() {
217 // TODO(posciak): We should support "dontcare" returns here once we 217 // TODO(posciak): We should support "dontcare" returns here once we
218 // implement proper handling (fallback, negotiation) for this in users. 218 // implement proper handling (fallback, negotiation) for this in users.
219 CHECK_EQ(type_, kEncoder); 219 CHECK_EQ(type_, kEncoder);
220 return V4L2_PIX_FMT_YUV420M; 220 return V4L2_PIX_FMT_YUV420M;
221 } 221 }
222 222
223 } // namespace content 223 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/tegra_v4l2_device.h ('k') | content/common/gpu/media/tegra_v4l2_video_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698