摘要: 命令:ffplay -f v4l2 -input_format bayer_bggr16le -video_size 4608x3456 -i /dev/video0;-f 指定格式,摄像头一般使用v4l2,-input_format:设置首选像素格式(对于原始视频)或编解码器名称;-video_s 阅读全文
posted @ 2020-09-22 18:10 angry_gladiator 阅读(2354) 评论(0) 推荐(0) 编辑
摘要: 可使用一下两个函数 : 1. QStringList QStandardPaths::standardLocations(QStandardPaths::StandardLocation type) 2.QString QStandardPaths::writableLocation(QStanda 阅读全文
posted @ 2020-09-22 17:46 angry_gladiator 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 详见各平台简单窗口绘制。 gcc hello-x.c -L/usr/X11R6/lib -lX11 -o hello-x #include <X11/Xlib.h>#include <stdio.h>#include <stdlib.h>#include <string.h> int main(vo 阅读全文
posted @ 2020-09-18 18:24 angry_gladiator 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: 经验证,设置setfixedsize()后可用: setMinimumSize(0,0); setMaximumSize(QSize(QWIDGETSIZE_MAX,QWIDGETSIZE_MAX)); 让窗口可正常resize。resize大小范围可设置setMinimumSize,setMaxi 阅读全文
posted @ 2020-09-18 18:09 angry_gladiator 阅读(1126) 评论(1) 推荐(1) 编辑
摘要: d-feat工具不错,详细使用暂未升入 阅读全文
posted @ 2020-09-18 18:01 angry_gladiator 阅读(77) 评论(0) 推荐(0) 编辑
摘要: QColor bgColor = Dtk::Gui::DGuiApplicationHelper::instance()->applicationPalette().highlight().color(); 阅读全文
posted @ 2020-09-18 17:59 angry_gladiator 阅读(144) 评论(0) 推荐(0) 编辑
摘要: QPalette *pal = new QPalette(m_videoPre.palette()); pal->setColor(QPalette::Background, Qt::black); //设置背景黑色 m_videoPre.setAutoFillBackground(true); m 阅读全文
posted @ 2020-09-18 17:57 angry_gladiator 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 远程启动目标机器的图形界面:(wayland平台下加上此句WAYLAND_DISPLAY=wayland-0) DISPLAY=:0 apppath ,apppath为绝对路径 阅读全文
posted @ 2020-09-18 17:55 angry_gladiator 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 详见mpv commit id: d62131d3aeda6f3b4c255ca06e70573433a8f16a 使用本地工程验证此commit后,得出vo_x11.c中Display_ImageI()函数的 XFillRectangle(vo->x11->display, vo->x11->wi 阅读全文
posted @ 2020-09-18 17:45 angry_gladiator 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 默认焦点为父窗口的第一个New出的子窗口。 已验证和布局先后顺序无关。 阅读全文
posted @ 2020-09-18 16:17 angry_gladiator 阅读(366) 评论(0) 推荐(0) 编辑