10 2020 档案
摘要:关于拉伸问题,要使预览不变形,需要使用Matrix: 首先把视频区移动到View区,使两者中心点重合。 matrix.preTranslate((textureViewWidth - viewWidth) / 2, (textureViewHeight - viewHeight) / 2); 其次,
阅读全文
摘要:运行相机demo时在页面退出和相机横竖屏切换(横竖屏切换本身也会重启页面)报错如下: E/CameraDeviceGLThread-0: Received exception on GL render thread: java.lang.IllegalStateException: glDrawAr
阅读全文