mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
123
backToList newPost
Owner: besovideo
打印 prevThread nextThread

MPU里面的视频编码分辨率是从设备查询上报来的吗?

[copyURL]

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
21#
poston 2019-11-19 11:26 | authorOnly
janeyre post on2019-11-19 11:21
我运行demo getSupportedPreviewSizes打印的数据和dump出来的数据是一致的。 没有变化呀!
都是——[640x4 ...

MPU打印出来的数据和dump数据也是一样的
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
22#
poston 2019-11-19 11:30 | authorOnly
janeyre post on2019-11-19 11:21
我运行demo getSupportedPreviewSizes打印的数据和dump出来的数据是一致的。 没有变化呀!
都是——[640x4 ...

现在你需要知道的就是MPU使用的是getSupportedPreviewSizes获取分辨率列表,如果你要添加新的分辨率支持,就在这个列表里面支持
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
23#
poston 2019-11-19 11:33 | authorOnly
xuwei post on2019-11-19 11:30
现在你需要知道的就是MPU使用的是getSupportedPreviewSizes获取分辨率列表,如果你要添加新的分辨率支持 ...

不要纠结改不改变的问题,据我们所知,普通应用是没法改getSupportedPreviewSizes的结果,也没有提供这个接口,如果你认为有,你可以把测试好的DEMO代码发出来,我们这边也学习下
reply agree Against

使用道具 report

5

主题

35

帖子

127

积分

member

Rank: 2

积分
127
24#
poston 2019-11-19 13:43 | authorOnly
看来问题的确在我这边,我打印出来的数据正确了:
11-19 13:40:37.186  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1920*1080
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1600*1200
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1440*1080
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1280*960
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1280*768
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1280*720
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1200*1200
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:1024*768
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:800*600
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:864*480
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:800*480
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:720*480
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:640*480
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:640*360
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:480*640
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:480*360
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:480*320
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:352*288
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:320*240
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:240*320
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:176*144
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:160*120
11-19 13:40:37.187  2852  2852 D CameraTest: getSupportedPreviewSizes@initNativeCamera:144*176

我来查如何添加preview的分辨率吧。谢谢!
reply agree Against

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
25#
 Owner| poston 2019-11-19 13:49 | authorOnly
多谢简总。
reply agree Against

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
26#
 Owner| poston 2019-11-19 17:13 | authorOnly
getSupportedPreviewSizes 已经可以枚举到 [1920x1080,1600x1200,1440x1080,1280x960,1280x768,1280x720,1200x1200,1024x768,800x600,864x480,800x480,720x576,720x480,640x480,640x360,480x640,480x360,480x320,352x288,320x240,240x320,176x144,160x120,144x176]tianj 添加新分辨率720*576

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

123
backToList newPost

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-23 00:06 , Processed in 0.058596 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList