mobile CCTV,mobile surveillance,police body worn cameras

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

mpu二次开发问题

[copyURL]

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
jumpTo
owner
poston 2018-5-30 16:52 | authorOnly 回帖奖励 |viewing |阅读模式
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
132#
poston 2018-8-30 17:31 | authorOnly
machong post on2018-8-30 17:29
手机打开app之后,过一会会闪退
以下是报错代码以及错误信息

加try catch不能解决?
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
131#
 Owner| poston 2018-8-30 17:29 | authorOnly
xuwei post on2018-8-28 11:05
demo切换也有问题?参考下demo的切换流程

手机打开app之后,过一会会闪退
以下是报错代码以及错误信息
  1.     // mpu通用的功能
  2.             String value = intent
  3.                     .getStringExtra(MPUDefine.MPU_BORAD_CAST_DIALOG_S_KEY);
  4.             
copycode

  1. java.lang.RuntimeException: Parcel android.os.Parcel@82c9ad6: Unmarshalling unknown type code -1602122328 at offset 8
  2.         at android.os.Parcel.readValue(Parcel.java:2425)
  3.         at android.os.Parcel.readArrayMapInternal(Parcel.java:2698)
  4.         at android.os.BaseBundle.unparcel(BaseBundle.java:269)
  5.         at android.os.BaseBundle.getString(BaseBundle.java:996)
  6.         at android.content.Intent.getStringExtra(Intent.java:6302)
  7.         at com.smarteye.mpu.VideoPreviewActivity$55.onReceive(VideoPreviewActivity.java:6321)
  8.         at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1218)
  9.         at android.os.Handler.handleCallback(Handler.java:761)
  10.         at android.os.Handler.dispatchMessage(Handler.java:98)
  11.         at android.os.Looper.loop(Looper.java:156)
  12.         at android.app.ActivityThread.main(ActivityThread.java:6523)
  13.         at java.lang.reflect.Method.invoke(Native Method)
  14.         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
  15.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
copycode




reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
130#
poston 2018-8-28 11:05 | authorOnly
machong post on2018-8-28 10:29
连接上usb眼镜之后,切换分辨率报错

demo切换也有问题?参考下demo的切换流程
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
129#
 Owner| poston 2018-8-28 10:29 | authorOnly
machong post on2018-8-22 14:37
usb摄像头的nv12格式数据 mpu是否有封装方法去转换成Bitmap?  如果没有还请指导下如何转换
连接上usb眼镜之后,切换分辨率报错
  1. 08-28 10:27:17.313 745-1873/? D/libgps: proxy_gnss_sv_status_cb: called. num_svs(1)
  2. 08-28 10:27:17.313 1177-1258/? E/GnssLocationProvider: [LocMgr] Debug: gnssSvStatusCb in
  3. 08-28 10:27:17.313 1177-1258/? D/GnssLocationProvider: [LocMgr] Debug: Sending sv status to IPL
  4. 08-28 10:27:17.313 1177-1258/? D/GnssLocationProvider: has no location last time
  5. 08-28 10:27:17.314 1177-1258/? V/GnssLocationProvider: SV count: 1
  6. 08-28 10:27:17.331 22245-22245/? I/crash_dump32: obtaining output fd from tombstoned
  7. 08-28 10:27:17.334 752-752/? I//system/bin/tombstoned: received crash request for pid 21951
  8. 08-28 10:27:17.336 21951-22231/com.tushikeji.facecar A/libc: failed to wait for crash_dump helper: No child processes
  9. 08-28 10:27:17.336 22245-22245/? I/crash_dump32: performing dump of process 21951 (target tid = 22231)
  10. 08-28 10:27:17.337 22245-22245/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  11.     Build fingerprint: 'HUAWEI/MHA-AL00/HWMHA:8.0.0/HUAWEIMHA-AL00/357(C00):user/release-keys'
  12.     Revision: '0'
  13.     ABI: 'arm'
  14.     pid: 21951, tid: 22231, name: Thread-1317  >>> com.tushikeji.facecar <<<
  15.     signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20
  16.     Cause: null pointer dereference
  17.         r0 00000000  r1 00023f6c  r2 00023f6c  r3 00000000
  18.         r4 e6004060  r5 00023f6c  r6 00000000  r7 00000000
  19.         r8 00000000  r9 00000001  sl d4811f40  fp d265c900
  20.         ip 79027d78  sp 6bcff4d8  lr e8fe1067  pc e8fe0eda  cpsr 200f0030
  21. 08-28 10:27:17.338 22245-22245/? A/DEBUG: backtrace:
  22.         #00 pc 00051eda  /system/lib/libc.so (_Z10__fseeko64P7__sFILExii+15)
  23.         #01 pc 00052063  /system/lib/libc.so (fseeko+16)
  24.         #02 pc 0012a508  /data/app/com.tushikeji.facecar-juaHOqFNZBWFiexR31BawQ==/lib/arm/libbvpu_mediandk.so
  25. 08-28 10:27:17.422 719-22110/? W/AudioFlinger: RecordThread: buffer overflow
  26. 08-28 10:27:18.192 1177-1555/? D/HwArpVerifier: check_wifi_state_mode = 0 mCheckStateToken=3 token3
  27. 08-28 10:27:18.194 1177-1555/? D/wifiserviceimpl: netmask =16777215
  28. 08-28 10:27:18.208 1177-1555/? D/HWMultiGW: setGateWay 192.168.31.1
  29. 08-28 10:27:18.318 752-752/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones//tombstone_00
  30. 08-28 10:27:18.319 1177-22246/? W/ActivityManager:   Force finishing activity com.tushikeji.facecar/com.smarteye.mpu.VideoPreviewActivity
  31. 08-28 10:27:18.322 1177-1240/? I/BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
  32. 08-28 10:27:18.326 751-2586/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
  33. 08-28 10:27:18.327 1177-1233/? W/ActivityManager: Skipping native crash dialog of ProcessRecord{4e76928 21951:com.tushikeji.facecar/u0a194}
  34. 08-28 10:27:18.328 745-1873/? D/libgps: proxy_gnss_sv_status_cb: called. num_svs(1)
  35. 08-28 10:27:18.328 1177-1489/? E/GnssLocationProvider: [LocMgr] Debug: gnssSvStatusCb in
  36. 08-28 10:27:18.328 1177-1489/? D/GnssLocationProvider: [LocMgr] Debug: Sending sv status to IPL
  37. 08-28 10:27:18.328 1177-1489/? D/GnssLocationProvider: has no location last time
  38. 08-28 10:27:18.329 1177-1489/? V/GnssLocationProvider: SV count: 1
  39. 08-28 10:27:18.331 1919-2290/? I/ash: 1177 binder call 1618
  40. 08-28 10:27:18.336 743-824/? E/AwareLog: iawared: change_property_content open /proc/21951/task/22026/static_vip fail errno(2)!
copycode
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
128#
 Owner| poston 2018-8-22 14:37 | authorOnly
xuwei post on2018-7-23 14:45
USB摄像头的格式NV12,机身摄像头的格式是NV21

usb摄像头的nv12格式数据 mpu是否有封装方法去转换成Bitmap?  如果没有还请指导下如何转换
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
127#
poston 2018-7-23 14:45 | authorOnly
machong post on2018-7-23 11:10
请问MpuService里的   public void onPreviewFrame2(byte[] bytes, int i, int i1, Camera camera)  中 b ...

USB摄像头的格式NV12,机身摄像头的格式是NV21
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
126#
 Owner| poston 2018-7-23 11:10 | authorOnly
machong post on2018-7-19 10:45
好的  可以了

请问MpuService里的   public void onPreviewFrame2(byte[] bytes, int i, int i1, Camera camera)  中 bytes数据是nv21格式的吗
reply agree Against

使用道具 report

3

主题

78

帖子

219

积分

midMem

Rank: 3Rank: 3

积分
219
125#
 Owner| poston 2018-7-19 10:45 | authorOnly
besovideo post on2018-7-19 10:35
哦,估计是修改代码冲掉了,再认证一下即可。

好的  可以了
reply agree Against

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
124#
poston 2018-7-19 10:35 | authorOnly
哦,估计是修改代码冲掉了,再认证一下即可。
reply agree Against

使用道具 report

QQ|wireless surveillance

GMT+8, 2024-12-23 05:44 , Processed in 0.060549 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList