Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图像缩放 #6

Closed
q461935514 opened this issue Jul 26, 2022 · 7 comments
Closed

图像缩放 #6

q461935514 opened this issue Jul 26, 2022 · 7 comments

Comments

@q461935514
Copy link

试了下demo图像的放大缩小好像不起作用

@shiyinghan
Copy link
Owner

demo应用里面应该没有图片的放大缩小功能,你说的是设置摄像头预览的分辨率吗

@q461935514
Copy link
Author

在UVCControl里面的这个方法
/**
* Sets the ZOOM_ABSOLUTE control.
* this may not work well with some combination of camera and device
*
* @param zoom
*/
public synchronized void setZoomAbsolute(final int zoom) {
nativeSetZoomAbsolute(mNativePtr, zoom);
}

@shiyinghan
Copy link
Owner

image
image

@shiyinghan
Copy link
Owner

图像的放大缩小(Zoom Absolute)这个功能需要硬件支持,wObjectiveFocalLengthMin和wObjectiveFocalLengthMax这两个字段如果为0就是不支持放大缩小。我加了点日志,打了一个包,你安装一下,抓一下日志,看一下上面两个字段的值是多少。

@shiyinghan
Copy link
Owner

@q461935514
Copy link
Author

好的。谢谢!我现在试下

@q461935514
Copy link
Author

试了下是不支持,只能自己在TextureView上自己处理给他放大算了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants