mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 18556|reply: 131
打印 prevThread nextThread

mpu二次开发问题

[copyURL]

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
jumpTo
owner
poston 2018-5-30 16:52 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
VideoPreviewActivity里的代码如何移植到fragmenrt里?
reply

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
recommend
 Owner| poston 2018-6-13 17:51 | authorOnly
xuwei post on2018-6-13 17:43
uvc_get_gain
你用的是get方法,当然设置没效果了,要用set方法。。。。。。。。

xuwei 2018-6-13 10:28 | authorOnly

machong post on2018-6-13 10:20
我这边能自己去设置增益度吗?  如果可以的话 我是直接赋值还是?

int gainvalue = 3;
int bc = 4;         
  int ret= mpu.getmConnection().UVCControl(
                    BVPU_ExtCamControlParam.uvc_set_gain, gainvalue );
           ret = mpu.getmConnection().UVCControl(
                    BVPU_ExtCamControlParam.uvc_set_backlight_compensation, bc );
if(ret>=0){
//success
}

如果这个代码无效  麻烦提供下新的设置增益度的代码

reply agree 0 Against 1

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
sofa
poston 2018-5-30 16:57 | authorOnly
VideoPreviewActivity处理了很多业务交互逻辑,需要在理解代码功能的基础上,整合你需要的功能
reply agree Against

使用道具 report

60

主题

1413

帖子

5805

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5805
bench
poston 2018-5-30 17:22 | authorOnly
哈哈,是的,不能偷懒,消化别人的代码需要时间的。
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
ground
 Owner| poston 2018-5-31 16:50 | authorOnly
xuwei post on2018-5-30 16:57
VideoPreviewActivity处理了很多业务交互逻辑,需要在理解代码功能的基础上,整合你需要的功能

java.lang.UnsatisfiedLinkError: No implementation found for int com.smarteye.coresdk.BVPU.InputVideoData(byte[], int, long, int, int) (tried Java_com_smarteye_coresdk_BVPU_InputVideoData and Java_com_smarteye_coresdk_BVPU_InputVideoData___3BIJII)
请问这个错误是不是包名的问题?  demo没有问题 但是放到自己的项目里就不行了

public static native int InputVideoData(byte[] var0, int var1, long var2, int var4, int var5);
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
5#
poston 2018-5-31 16:54 | authorOnly
machong post on2018-5-31 16:50
java.lang.UnsatisfiedLinkError: No implementation found for int com.smarteye.coresdk.BVPU.InputVid ...

把库bvpu.jar和所有的native c库文件都拷贝到对应的工程中去
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
6#
 Owner| poston 2018-5-31 16:55 | authorOnly
xuwei post on2018-5-31 16:54
把库bvpu.jar和所有的native c库文件都拷贝到对应的工程中去

so和jar我都是从demo里复制过去的  缺少东西的可能性不大
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
7#
poston 2018-5-31 17:17 | authorOnly
machong post on2018-5-31 16:55
so和jar我都是从demo里复制过去的  缺少东西的可能性不大

有没有调用BVPU的初始化函数
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
8#
 Owner| poston 2018-5-31 17:28 | authorOnly
xuwei post on2018-5-31 16:54
把库bvpu.jar和所有的native c库文件都拷贝到对应的工程中去

请问MPUService中oncrete方法里的execTerm = new ExecTerm(); 有何作用?    还有Exec类   
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
9#
poston 2018-5-31 17:57 | authorOnly
machong post on2018-5-31 17:28
请问MPUService中oncrete方法里的execTerm = new ExecTerm(); 有何作用?    还有Exec类   

执行shell命令
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
10#
 Owner| poston 2018-6-1 11:54 | authorOnly

AuthEntity返回401认证失败 , 服务器ip和端口号都配置好了 手机之前也认证过
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-4 17:51 , Processed in 0.069324 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList