-
Notifications
You must be signed in to change notification settings - Fork 13
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
在mac book pro上视频的实际显示大小是width/height的2分之1 #8
Comments
// 我在这里*2 绘制尺寸才正常
设备像素比(devicePixelRatio): 设备像素比 = 设备像素 / 设备独立像素。(在Retina屏的iphone上,DPR为2,1个css像素相当于2个物理像素) 我是试图调用 qDebug() << painter->device()->devicePixelRatioF(); 不过打印是1 很奇怪按理说视网膜屏应该是2,我的就是retina屏。 https://doc.qt.io/qt-5/qpaintdevice.html#devicePixelRatioF 我发现
但是通过AVideoWidget的paint
AVideoWidget继承了QQuickPaintedItem看来QQuickPaintedItem出现了什么问题。 最终的解决方法是
avideowidget.h
|
您用的native sdk版本是? |
macOS v3.1.2 |
@JavinYang ioquake/ioq3#422 |
在我的mac book pro上全屏显示相当烫手 小窗口还行 |
@JavinYang 您可以试试我们的非Qt版本是否有类似的情况,或者这边可以简单做个profiling看下性能消耗在哪块吗? |
在mac book pro上视频的实际显示大小是width/height的2分之1。为什么?和分辨的PPI有关吗?怎么解决?
The text was updated successfully, but these errors were encountered: