登录
首页 » Java » 远程视频监控

远程视频监控

于 2013-12-04 发布
0 78
下载积分: 1 下载次数: 0

代码说明:

【核心代码】 public interface CameraSource {  static final String LOG_TAG = "camera";  /**  * Open the camera source for subsequent use via calls to capture().  *   * @return true if the camera source was successfully opened.  */  boolean open();  /**  * Close the camera source. Calling close on a closed CameraSource is  * permitted but has no effect. The camera source may be reopened after  * being closed.  */  void close();  /**  * The width of the captured image.  *   * @return the width of the capture in pixels  */  int getWidth();  /**  * The height of the captured image.  *   * @return the height of the capture in pixels  */  int getHeight();  /**  * Attempts to render the current camera view onto the supplied canvas.  * The capture will be rendered into the rectangle (0,0,width,height).  * Outstanding transformations on the canvas may alter this.  *   * @param canvas the canvas to which the captured pixel data will be written  * @return true iff a frame was successfully written to the canvas  */  boolean capture(Canvas canvas);  boolean saveImage(String savePath, String fileName); }

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

发表评论

0 个回复

  • 引导页和日历及GridView的拖动、仿qq侧滑菜单
    模仿微信引导页,日历查看,GridView的拖动
    2015-06-12下载
    积分:1
  • android中不错的ExpandableListView实例效果源码
    一、ExpandableListView介绍     一个垂直滚动的显示两个级别(Child,Group)列表项的视图,列表项来自ExpandableListAdapter 。组可以单独展开。   1.重要方法       expandGroup(int groupPos) :在分组列表视图中展开一组,      setSelectedGroup(int groupPosition) :设置选择指定的组。      setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) :设置选择指定的子项。      getPackedPositionGroup(long packedPosition) :返回所选择的组      getPackedPositionForChild(int groupPosition, int childPosition) :返回所选择的子项      getPackedPositionType(long packedPosition) :返回所选择项的类型(Child,Group)      isGroupExpanded(int groupPosition) :判断此组是否展开  2.代码:ExpandableListContextMenuInfo menuInfo=(ExpandableListContextMenuInfo)item.getMenuInfo();String title=((TextView)menuInfo.targetView).getText().toString();int type=ExpandableListView.getPackedPositionType(menuInfo.packedPosition);if (type==ExpandableListView.PACKED_POSITION_TYPE_CHILD) {int groupPos =ExpandableListView.getPackedPositionGroup(menuInfo.packedPosition);int childPos =ExpandableListView.getPackedPositionChild(menuInfo.packedPosition);二、ExpandableListAdapter    一个接口,将基础数据链接到一个ExpandableListView。此接口的实施将提供访问Child的数据(由组分类),并实例化的Child和Group。 getChildId(int groupPosition, int childPosition) 获取与在给定组给予孩子相关的数据。     getChildrenCount(int groupPosition) 返回在指定Group的Child数目。
    2013-03-07下载
    积分:1
  • JAVA 租车系统(包含Mysql数据库)
    【实例简介】    管理员登陆账号:admin 密码:123456 普通用户账号:demo  密码:demo
    2021-05-24 08:46:50下载
    积分:1
  • android 实现map3y音乐播放
    android 实现map3y音乐播放器
    2014-04-06下载
    积分:1
  • android 微信分享到朋友圈/ 微信分享 实例源码下载(可用)
    微信分享流程:1.申请你的AppID,申请地址:https://open.weixin.qq.com2.下载微信终端开发工具包3.搭建开发环境4.实例中需要用到申请到的AppID,等审核通过之后 测试就正常了, 很多人 activity 忘记 implements IWXAPIEventHandler 这是常犯的错误
    2014-05-22下载
    积分:1
  • android sqlite数据库操作 增、删、改、查询 已实现 【附源码】
    实现了基本的 增删改查功能,并包含了基本的sqlite操作类
    2013-03-01下载
    积分:1
  • 图书管理系统JSP+SQL 完整源码下载
    用的的组件: struts1.2jsp2.0 servlet2.4jdk1.5tomcat5.5jstl1.1
    2015-04-25下载
    积分:1
  • Android JSON解析框架fastjson 示例源码下载
    Android JSON解析框架fastjson 示例源码下载
    2014-05-19下载
    积分:1
  • android txt阅读 例子源码
    android txt阅读 例子源码
    2015-04-06下载
    积分:1
  • android 自定义软键盘 例子源码下载
    android 自定义软键盘 例子源码下载
    2015-04-20下载
    积分:1
  • 696524资源总数
  • 103833会员总数
  • 52今日下载