| OLD | NEW |
| 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/debug/trace_event.h" | |
| 10 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 11 #include "base/posix/eintr_wrapper.h" | 10 #include "base/posix/eintr_wrapper.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_video_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 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |