QML VideoOutput
OpenNVR
https://gitee.com/open-nvr/opennvr
展开
-
Qt 生成QR code
Qt 生成QR codeQImage qt_qrencode(QString text, QPixmap logo, int width, int height){ if (width == 0) { width = 300; } if (height == 0) { height = 300; } QImage image(QSize(width, height), QImage::Format_RGB32); QR_LEVEL level = LEVEL_Q; QR_M原创 2021-04-01 18:47:40 · 267 阅读 · 0 评论 -
ffmpeg解码 QML VideoOutput 显示,AVFrame 转 QVideoFrame
AVFrame 转QVideoFrameQVideoFrame::PixelFormat ffmpegPixFmtQtFmt(int pix_fmt){ switch (pix_fmt) { case AV_PIX_FMT_YUV420P: case AV_PIX_FMT_YUVJ420P: { return QVideoFrame::Format_YUV420P; } case AV_PIX_FMT_NV12: { return QVideoFrame::Format_N.原创 2020-12-25 17:42:07 · 1577 阅读 · 0 评论