登录
首页 » Java » UVC

UVC

于 2020-11-07 发布 文件大小:2858KB
0 110
下载积分: 1 下载次数: 65

代码说明:

  在android平台上开发的UVC摄像头的驱动,包括摄像头的拍照和录像功能,以及USB摄像头的自动识别(android system for uvs camera)

文件列表:

.classpath,475,2016-11-16
.project,844,2016-11-16
AndroidManifest.xml,1820,2016-11-16
assets
bin
...\aidl
...\....\android
...\....\.......\hardware
...\....\.......\........\usb
...\....\.......\........\...\UsbDevice.aidl,52,2016-11-16
...\....\.......\view
...\....\.......\....\Surface.aidl,42,2016-11-16
...\....\com
...\....\...\serenegiant
...\....\...\...........\service
...\....\...\...........\.......\IUVCService.aidl,1898,2016-11-16
...\....\...\...........\.......\IUVCServiceCallback.aidl,1081,2016-11-16
...\....\...\...........\.......\IUVCServiceOnFrameAvailable.aidl,1071,2016-11-16
...\....\...\...........\.......\IUVCSlaveService.aidl,1360,2016-11-16
...\AndroidManifest.xml,1820,2016-11-16
...\classes
...\.......\android
...\.......\.......\hardware
...\.......\.......\........\usb
...\.......\.......\........\...\UsbDevice.aidl,52,2016-11-16
...\.......\.......\view
...\.......\.......\....\Surface.aidl,42,2016-11-16
...\.......\com
...\.......\...\serenegiant
...\.......\...\...........\encoder
...\.......\...\...........\.......\MediaAudioEncoder$AudioThread.class,2007,2016-11-16
...\.......\...\...........\.......\MediaAudioEncoder.class,4243,2016-11-16
...\.......\...\...........\.......\MediaEncoder$EncoderHandler.class,1706,2016-11-16
...\.......\...\...........\.......\MediaEncoder$MediaEncoderListener.class,331,2016-11-16
...\.......\...\...........\.......\MediaEncoder.class,8304,2016-11-16
...\.......\...\...........\.......\MediaMuxerWrapper.class,5421,2016-11-16
...\.......\...\...........\.......\MediaSurfaceEncoder.class,6246,2016-11-16
...\.......\...\...........\glutils
...\.......\...\...........\.......\EGLBase$EglSurface.class,2267,2016-11-16
...\.......\...\...........\.......\EGLBase.class,9112,2016-11-16
...\.......\...\...........\.......\GLDrawer2D.class,4869,2016-11-16
...\.......\...\...........\.......\RendererHolder$1.class,1247,2016-11-16
...\.......\...\...........\.......\RendererHolder$2.class,5575,2016-11-16
...\.......\...\...........\.......\RendererHolder$RenderHolderCallback.class,325,2016-11-16
...\.......\...\...........\.......\RendererHolder.class,10378,2016-11-16
...\.......\...\...........\.......\RenderHandler$ContextParams.class,637,2016-11-16
...\.......\...\...........\.......\RenderHandler$RenderThread.class,3600,2016-11-16
...\.......\...\...........\.......\RenderHandler.class,4382,2016-11-16
...\.......\...\...........\service
...\.......\...\...........\.......\CameraServer$CallbackCookie.class,570,2016-11-16
...\.......\...\...........\.......\CameraServer$CameraThread$1.class,1319,2016-11-16
...\.......\...\...........\.......\CameraServer$CameraThread$2.class,3598,2016-11-16
...\.......\...\...........\.......\CameraServer$CameraThread.class,11136,2016-11-16
...\.......\...\...........\.......\CameraServer.class,9787,2016-11-16
...\.......\...\...........\.......\IUVCService$Stub$Proxy.class,6045,2016-11-16
...\.......\...\...........\.......\IUVCService$Stub.class,4985,2016-11-16
...\.......\...\...........\.......\IUVCService.aidl,1898,2016-11-16
...\.......\...\...........\.......\IUVCService.class,900,2016-11-16
...\.......\...\...........\.......\IUVCServiceCallback$Stub$Proxy.class,1613,2016-11-16
...\.......\...\...........\.......\IUVCServiceCallback$Stub.class,1922,2016-11-16
...\.......\...\...........\.......\IUVCServiceCallback.aidl,1081,2016-11-16
...\.......\...\...........\.......\IUVCServiceCallback.class,382,2016-11-16
...\.......\...\...........\.......\IUVCServiceOnFrameAvailable$Stub$Proxy.class,1469,2016-11-16
...\.......\...\...........\.......\IUVCServiceOnFrameAvailable$Stub.class,1878,2016-11-16
...\.......\...\...........\.......\IUVCServiceOnFrameAvailable.aidl,1071,2016-11-16
...\.......\...\...........\.......\IUVCServiceOnFrameAvailable.class,376,2016-11-16
...\.......\...\...........\.......\IUVCSlaveService$Stub$Proxy.class,3085,2016-11-16
...\.......\...\...........\.......\IUVCSlaveService$Stub.class,3353,2016-11-16
...\.......\...\...........\.......\IUVCSlaveService.aidl,1360,2016-11-16
...\.......\...\...........\.......\IUVCSlaveService.class,527,2016-11-16
...\.......\...\...........\.......\UVCService$1.class,2959,2016-11-16
...\.......\...\...........\.......\UVCService$2.class,6427,2016-11-16
...\.......\...\...........\.......\UVCService$3.class,2431,2016-11-16
...\.......\...\...........\.......\UVCService.class,5770,2016-11-16
...\.......\...\...........\serviceclient
...\.......\...\...........\.............\CameraClient$1.class,1967,2016-11-16
...\.......\...\...........\.............\CameraClient$CameraHandler$CameraTask.class,7223,2016-11-16
...\.......\...\...........\.............\CameraClient$CameraHandler.class,3859,2016-11-16
...\.......\...\...........\.............\CameraClient.class,7012,2016-11-16
...\.......\...\...........\.............\ICameraClient.class,563,2016-11-16
...\.......\...\...........\.............\ICameraClientCallback.class,202,2016-11-16
...\.......\...\...........\usb
...\.......\...\...........\...\CameraDialog$1.class,848,2016-11-16
...\.......\...\...........\...\CameraDialog$2.class,1311,2016-11-16
...\.......\...\...........\...\CameraDialog$CameraDialogParent.class,295,2016-11-16
...\.......\...\...........\...\CameraDialog$DeviceListAdapter.class,2540,2016-11-16
...\.......\...\...........\...\CameraDialog.class,6025,2016-11-16
...\.......\...\...........\...\DeviceFilter.class,8843,2016-11-16
...\.......\...\...........\...\IButtonCallback.class,158,2016-11-16
...\.......\...\...........\...\IFrameCallback.class,174,2016-11-16
...\.......\...\...........\...\IStatusCallback.class,181,2016-11-16
...\.......\...\...........\...\ScreenUtils.class,1221,2016-11-16
...\.......\...\...........\...\Size$1.class,1110,2016-11-16
...\.......\...\...........\...\Size.class,2148,2016-11-16
...\.......\...\...........\...\USBMonitor$1.class,2319,2016-11-16
...\.......\...\...........\...\USBMonitor$2.class,1323,2016-11-16
...\.......\...\...........\...\USBMonitor$3.class,1727,2016-11-16
...\.......\...\...........\...\USBMonitor$4.class,896,2016-11-16
...\.......\...\...........\...\USBMonitor$5.class,1003,2016-11-16
...\.......\...\...........\...\USBMonitor$6.class,1005,2016-11-16

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 根据用于指定月份,打印该月份所属的季节。根据用户定义的数值不同。打印对应的星期英文。
    资源描述对初学者了一些练习,会使用判断语句if...else if,zhe 这只是其中一些例子,可以让初学者更好的理解判断语句。
    2023-05-10 02:45:04下载
    积分:1
  • android 仿微信浏览相册图片例子源码下载
    [实例简介] 仿微信浏览相册图片, 相册浏览 [实例截图] [核心代码]import java.io.File;import java.io.FilenameFilter;import java.util.ArrayList;import java.util.Arrays;import java.util.HashSet;import java.util.List;import android.app.Activity;import android.app.ProgressDialog;import android.content.ContentResolver;import android.database.Cursor;import android.net.Uri;import android.os.Bundle;import android.os.Environment;import android.os.Handler;import android.provider.MediaStore;import android.util.DisplayMetrics;import android.util.Log;import android.view.LayoutInflater;import android.view.View;import android.view.View.OnClickListener;import android.view.ViewGroup.LayoutParams;import android.view.WindowManager;import android.widget.GridView;import android.widget.PopupWindow.OnDismissListener;import android.widget.RelativeLayout;import android.widget.TextView;import android.widget.Toast;import com.zhy.bean.ImageFloder;import com.zhy.imageloader.ListImageDirPopupWindow.OnImageDirSelected;public class MainActivity extends Activity implements OnImageDirSelected{ private ProgressDialog mProgressDialog; /** * 存储文件夹中的图片数量 */ private int mPicsSize; /** * 图片数量最多的文件夹 */ private File mImgDir; /** * 所有的图片 */ private List mImgs; private GridView mGirdView; private MyAdapter mAdapter; /** * 临时的辅助类,用于防止同一个文件夹的多次扫描 */ private HashSet mDirPaths = new HashSet(); /** * 扫描拿到所有的图片文件夹 */ private List mImageFloders = new ArrayList(); private RelativeLayout mBottomLy; private TextView mChooseDir; private TextView mImageCount; int totalCount = 0; private int mScreenHeight; private ListImageDirPopupWindow mListImageDirPopupWindow; private Handler mHandler = new Handler() { public void handleMessage(android.os.Message msg) { mProgressDialog.dismiss(); // 为View绑定数据 data2View(); // 初始化展示文件夹的popupWindw initListDirPopupWindw(); } }; /** * 为View绑定数据 */ private void data2View() { if (mImgDir == null) { Toast.makeText(getApplicationContext(), "擦,一张图片没扫描到", Toast.LENGTH_SHORT).show(); return; } mImgs = Arrays.asList(mImgDir.list()); /** * 可以看到文件夹的路径和图片的路径分开保存,极大的减少了内存的消耗; */ mAdapter = new MyAdapter(getApplicationContext(), mImgs, R.layout.grid_item, mImgDir.getAbsolutePath()); mGirdView.setAdapter(mAdapter); mImageCount.setText(totalCount "张"); }; /** * 初始化展示文件夹的popupWindw */ private void initListDirPopupWindw() { mListImageDirPopupWindow = new ListImageDirPopupWindow( LayoutParams.MATCH_PARENT, (int) (mScreenHeight * 0.7), mImageFloders, LayoutInflater.from(getApplicationContext()) .inflate(R.layout.list_dir, null)); mListImageDirPopupWindow.setOnDismissListener(new OnDismissListener() { @Override public void onDismiss() { // 设置背景颜色变暗 WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = 1.0f; getWindow().setAttributes(lp); } }); // 设置选择文件夹的回调 mListImageDirPopupWindow.setOnImageDirSelected(this); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); DisplayMetrics outMetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(outMetrics); mScreenHeight = outMetrics.heightPixels; initView(); getImages(); initEvent(); } /** * 利用ContentProvider扫描手机中的图片,此方法在运行在子线程中 完成图片的扫描,最终获得jpg最多的那个文件夹 */ private void getImages() { if (!Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED)) { Toast.makeText(this, "暂无外部存储", Toast.LENGTH_SHORT).show(); return; } // 显示进度条 mProgressDialog = ProgressDialog.show(this, null, "正在加载..."); new Thread(new Runnable() { @Override public void run() { String firstImage = null; Uri mImageUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; ContentResolver mContentResolver = MainActivity.this .getContentResolver(); // 只查询jpeg和png的图片 Cursor mCursor = mContentResolver.query(mImageUri, null, MediaStore.Images.Media.MIME_TYPE "=? or " MediaStore.Images.Media.MIME_TYPE "=?", new String[] { "image/jpeg", "image/png" }, MediaStore.Images.Media.DATE_MODIFIED); Log.e("TAG", mCursor.getCount() ""); while (mCursor.moveToNext()) { // 获取图片的路径 String path = mCursor.getString(mCursor .getColumnIndex(MediaStore.Images.Media.DATA)); Log.e("TAG", path); // 拿到第一张图片的路径 if (firstImage == null) firstImage = path; // 获取该图片的父路径名 File parentFile = new File(path).getParentFile(); if (parentFile == null) continue; String dirPath = parentFile.getAbsolutePath(); ImageFloder imageFloder = null; // 利用一个HashSet防止多次扫描同一个文件夹(不加这个判断,图片多起来还是相当恐怖的~~) if (mDirPaths.contains(dirPath)) { continue; } else { mDirPaths.add(dirPath); // 初始化imageFloder imageFloder = new ImageFloder(); imageFloder.setDir(dirPath); imageFloder.setFirstImagePath(path); } int picSize = parentFile.list(new FilenameFilter() { @Override public boolean accept(File dir, String filename) { if (filename.endsWith(".jpg") || filename.endsWith(".png") || filename.endsWith(".jpeg")) return true; return false; } }).length; totalCount = picSize; imageFloder.setCount(picSize); mImageFloders.add(imageFloder); if (picSize > mPicsSize) { mPicsSize = picSize; mImgDir = parentFile; } } mCursor.close(); // 扫描完成,辅助的HashSet也就可以释放内存了 mDirPaths = null; // 通知Handler扫描图片完成 mHandler.sendEmptyMessage(0x110); } }).start(); } /** * 初始化View */ private void initView() { mGirdView = (GridView) findViewById(R.id.id_gridView); mChooseDir = (TextView) findViewById(R.id.id_choose_dir); mImageCount = (TextView) findViewById(R.id.id_total_count); mBottomLy = (RelativeLayout) findViewById(R.id.id_bottom_ly); } private void initEvent() { /** * 为底部的布局设置点击事件,弹出popupWindow */ mBottomLy.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { mListImageDirPopupWindow .setAnimationStyle(R.style.anim_popup_dir); mListImageDirPopupWindow.showAsDropDown(mBottomLy, 0, 0); // 设置背景颜色变暗 WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = .3f; getWindow().setAttributes(lp); } }); } @Override public void selected(ImageFloder floder) { mImgDir = new File(floder.getDir()); mImgs = Arrays.asList(mImgDir.list(new FilenameFilter() { @Override public boolean accept(File dir, String filename) { if (filename.endsWith(".jpg") || filename.endsWith(".png") || filename.endsWith(".jpeg")) return true; return false; } })); /** * 可以看到文件夹的路径和图片的路径分开保存,极大的减少了内存的消耗; */ mAdapter = new MyAdapter(getApplicationContext(), mImgs, R.layout.grid_item, mImgDir.getAbsolutePath()); mGirdView.setAdapter(mAdapter); // mAdapter.notifyDataSetChanged(); mImageCount.setText(floder.getCount() "张"); mChooseDir.setText(floder.getName()); mListImageDirPopupWindow.dismiss(); }}
    2015-04-08下载
    积分:1
  • log4j 的使用
    Log4j是Apache的一个开放源代码项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台、文件、GUI组件,甚至是套接口服务器、NT的事件记录器、UNIX Syslog守护进程等;我们也可以控制每一条日志的输出格式;通过定义每一条日志信息的级别,我们能够更加细致地控制日志的生成过程。最令人感兴趣的就是,这些可以通过一个配置文件来灵活地进行配置,而不需要修改应用的代码。 log4j的基本用法
    2023-03-30 09:35:03下载
    积分:1
  • Android-memory-manage-
    非常好,非常棒,非常不错的android内存管理。(android memory manage)
    2013-10-09 07:41:43下载
    积分:1
  • Fragment消息的交互
    package com.fragment.demo3;import android.app.Fragment;import android.os.Bundle;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.TextView;public class Fragment2 extends Fragment {private TextView text;@Overridepublic View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {View view = inflater.inflate(R.layout.fragment2, null);text = (TextView) view.findViewById(R.id.textView1);return view;}public void setText(String setText) {text.setText(setText);}}
    2015-10-25下载
    积分:1
  • 蓝牙 4.0 控灯
    应用背景 蓝牙ble4.0.用的是广州汇承出的蓝牙芯片。X宝20多。是一款比较优惠和使用方便的芯片,操作文档有相对的at 指令集和相应的内部底层驱动指令集。可用于安卓小车测试和智能家居的测试。 关键技术蓝牙4.0的是兼容ble协议在内的芯片。本代码是通过ble连接芯片,让蓝牙4.0发出串口数据给STM32f0303接收。然后用app一个简单的控件就一个滑条,来改变蓝牙发出来的数据,进而改变灯的亮度。发出的数据可以在串口助手上看到。是这个16进制的数据。
    2022-01-27 11:50:16下载
    积分:1
  • 图书管理系统
    这是一个用JSP编写的图书管理系统,该系统包括用户登录,注册,图书列表,用户可对图书进行增加,修改删除等功能。
    2022-08-05 13:21:02下载
    积分:1
  • 调用系统拍照
    调用系统拍照
    2013-12-30下载
    积分:1
  • 蓝牙串口编程
    资源描述蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程蓝牙串口编程
    2023-08-21 18:00:04下载
    积分:1
  • celp 编码解码器
    脚本运行的 CELP 编码解码器: 16 kbps CELP & 9.6 kbps CELPclc,明确 ;在当前文件夹中创建的 WAV 文件。加载 handel . mathfile = "handel。wav" ;wav 写  (y, Fs, hfile)clear y Fs;
    2022-01-27 21:46:08下载
    积分:1
  • 696518资源总数
  • 104271会员总数
  • 57今日下载