- 博客(363)
- 资源 (119)
- 收藏
- 关注
原创 鸟哥私房菜学习笔记
2.1.3 各硬件设备在Linux中的文件名设备 设备在Linux内的文件名SCSI/SATA/USB硬盘机----------->/dev/sd[a-p]USB闪存盘 ------------>/dev/sd[a-p] (与SATA相同)VirtI/O界面--------->/dev/vd[a-p] (用于虚拟机内)软盘机--------->/dev/fd[0-7]打印机--------->/dev/lp[0-2]
2022-01-08 19:16:39 5270 1
原创 c++ primer 书代码学习
#include <iostream>#include <string>using namespace std;class Sales_item{ friend std::istream& operator>>(std::istream&, Sales_item& ); friend std::ostream& operator<<(std::ostream&, const Sales_item&.
2022-01-06 17:45:54 1390
原创 ubuntu下stm32f407环境(正点原子)
1.交叉编译sudo apt install binutils-arm-none-eabisudo apt install gcc-arm-none-eabisudo apt install gdb-arm-none-eabi如果没有gdb-arm-none-eabi 请看https://zhuanlan.zhihu.com/p/1340316932.安装stlink1.安装libusbsudo apt-get install libusb-devgit clone https://
2022-01-02 20:26:09 1823
原创 数据结构算法与应用-C++语言描述 stack的应用
main.cpp#include <string>#include <iostream>#include <sstream>#include <algorithm>#include <iterator>using namespace std;//数据结构算法与应用-C++语言描述 stack的应用//线性表一数组//抽象数据类型template<class T>class linearList{pub
2021-12-13 22:34:24 1575
原创 数据结构算法与应用-C++语言描述 stack链表的实现
//数据结构算法与应用-C++语言描述 stack链表的实现//链表描述main.cpp#include <iostream>#include <sstream>#include <iterator>using namespace std;//数据结构算法与应用-C++语言描述 chain 单链表//一个线性表的抽象类template <class T>class linearList {public: virtual ~lin
2021-12-12 18:25:14 389
原创 数据结构算法与应用-C++语言描述 stack数组的实现
#include <iostream>#include <sstream>#include <algorithm>#include <iterator>//数据结构算法与应用-C++语言描述 stack数组的实现using namespace std;//线性表一数组//抽象数据类型template<class T>class linearList{public: virtual ~linearList() {}
2021-12-12 14:26:09 398
原创 数据结构算法与应用-C++语言描述 矩阵
数据结构算法与应用-C++语言描述 chain 矩阵定义和操作一个m x n的矩阵 (matrix ) 是一个m行、n列的表 ,m和n是矩阵的维数 ( dimension )。/*列1 列2 列3 列4行1 7 2 0 9行2 0 1 0 5行3 6 4 2 0行4 8 2 7 3行5 1 4 9 6*///类 matrix//一个rows x cols 的整型矩阵 M 可用如下的二维整数数组来描述//int x[ro
2021-12-11 11:25:25 2374
原创 数据结构算法与应用-C++语言描述 chain 单链表2
chain.cpp#include <iostream>#include <sstream>#include <iterator>using namespace std;//数据结构算法与应用-C++语言描述 chain 单链表//一个线性表的抽象类template <class T>class linearList {public: virtual ~linearList(){} //返回true,当且仅当线性表为空 virtu
2021-12-10 10:03:53 654
原创 数据结构算法与应用-C++语言描述 chain 单链表 带头节点
chain.cpp//循环链表和头节点//1 ) 把线性表描述成一个单向//循环链表 ( singly linked circular list ) ( 简称循环链表 ),而不是单向链表 ; //2 ) 在链表的前面增加一个节点,称为头节点(header node )。只要将单向链表的尾节点与头节点链接起来,单向//链表就成为循环链表,#include <iostream>#include <sstream>#include <iterator>#inc
2021-12-07 20:09:24 1011
原创 数据结构算法与应用-C++语言描述 chain 单链表
chain.cpp#include <iostream>#include <sstream>#include <iterator>using namespace std;//数据结构算法与应用-C++语言描述 chain 单链表//一个线性表的抽象类template <class T>class linearList {public: virtual ~linearList(){} //返回true,当且仅当线性表为空 virtu
2021-12-05 22:34:50 1731
原创 数据结构算法与应用-C++语言描述 vectorList
vectorList.cpp#include <exception>#include <iostream>#include <sstream>#include <iterator>#include <algorithm>#include <vector>using namespace std;//一个线性表的抽象类template <class T>class linearList {public
2021-12-04 23:32:38 202
原创 数据结构算法与应用-C++语言描述 circularArrayList (待解决)
circularArrayList.cpp#include <iostream>#include <sstream>#include <algorithm>#include <iterator>//数据结构算法与应用-C++语言描述 circularArrayList//ex31. 假设用公式 ( 5-3 ) 来表示线性表。分别用变量 first 和 last 表示线性表首元素和尾元素的// 位置。// 1 ) 开发一个
2021-12-04 23:05:12 925
原创 数据结构算法与应用-C++语言描述 - arrayList
arrayList#include <iostream>#include <sstream>using namespace std;//数据结构算法与应用-C++语言描述 arrayList//一个线性表的抽象类template <class T>class linearList {public: virtual ~linearList(){} virtual bool empty() const = 0;//返回true,当且仅当线性表为空 v
2021-12-04 14:35:54 1424
原创 c++ 算法学习
1.2 函数与参数CMakeLists.txtcmake_minimum_required(VERSION 3.1)project(test)add_executable(test main.cpp)#include <iostream>using namespace std;int abc(int a,int b,int c){ return a + b * c;}int main(){ int a = 1,b = 2,c = 3; std::cout&l
2021-12-02 00:16:28 2690
原创 Qt6 ffmpeg 音频和视频(同步)推流到nginx-rtmp3
main.cpp#include <QApplication>#include "Controller.h"using namespace std;int main(int argc, char *argv[]){ QApplication a(argc, argv); qDebug() << "main thread:" << QThread::currentThreadId(); Controller *controller
2021-11-22 17:36:09 3143
原创 Qt6 ffmpeg 音频和视频(非同步)推流到nginx-rtmp 2
main.cpp#include <QApplication>#include "Controller.h"using namespace std;int main(int argc, char *argv[]){ QApplication a(argc, argv); qDebug() << "main thread:" << QThread::currentThreadId(); Controller *controller =
2021-11-20 18:07:44 3314
原创 Qt6 ffmpeg 音频和视频(非同步)推流到nginx-rtmp
main.cpp#include <QApplication>#include "Controller.h"using namespace std;int main(int argc,char *argv[]){ QApplication a(argc,argv); qDebug() << "main thread:" << QThread::currentThreadId(); Controller* controller =
2021-11-19 15:53:27 3649
原创 moveToThread 的样例
main.cpp#include <QCoreApplication>#include "Controller.h"using namespace std;int main(int argc,char *argv[]){ QCoreApplication a(argc,argv); qDebug() << "main thread:" << QThread::currentThreadId(); Controller* contro
2021-11-18 13:59:41 314
原创 Qt6 屏幕录相(包括音频视频)
widget.h#ifndef WIDGET_H#define WIDGET_H#include <QWidget>#include <QTimerEvent>QT_BEGIN_NAMESPACEnamespace Ui { class Widget; }QT_END_NAMESPACEclass Widget : public QWidget{ Q_OBJECTpublic: Widget(QWidget *parent = nullpt
2021-11-18 01:17:10 2412 3
原创 Qt6 QAudioSource录 pcm 音频
widget.h#ifndef WIDGET_H#define WIDGET_H#include <QWidget>#include <QAudioSource>#include <QFile>#include <QMediaFormat>#include <QMediaRecorder>#include <QUrl>#include <QMediaCaptureSession>#include <
2021-11-16 20:39:40 1554 1
原创 opencv ffmpeg推流
基于opencv采集推流1.opencv采集rtsp解码 //可以基于usb 摄像机(调用系统驱动)和rtsp(调用ffmpeg 接口 转yuv加解码) 摄像机2.ffmpeg缩放转换像素格式3.ffmpeg编码H264 4.ffmpeg推流rtmpsws_getCachedContext (像素格式转换 会清理之前的数据)1.struct SwsContext *context,2.int srcW,int srcH,enum AVPixelFormat srcFormat,3.int
2021-11-16 00:31:40 4494 4
原创 opencv打开摄像头ffmpeg推流到nginx-rtmp
基于opencv采集推流1.opencv采集rtsp解码 //可以基于usb 摄像机(调用系统驱动)和rtsp(调用ffmpeg 接口 转yuv加解码) 摄像机2.ffmpeg缩放转换像素格式3.ffmpeg编码H264 4.ffmpeg推流rtmpsws_getCachedContext (像素格式转换 会清理之前的数据)1.struct SwsContext *context,2.int srcW,int srcH,enum AVPixelFormat srcFormat,3.int
2021-11-15 18:58:07 3177
原创 opencv 打开摄像头 mat
CMakeLists.txtcmake_minimum_required(VERSION 3.1)project(opencv_example_project)find_package(OpenCV REQUIRED)message(STATUS "OpenCV library status:")message(STATUS " config: ${OpenCV_DIR}")message(STATUS " version: ${OpenCV_VERSION}")message
2021-11-15 18:52:09 966
原创 rtsp推流
main.cppextern "C"{#include <libavformat/avformat.h>#include <libavutil/time.h>}#include <iostream>using namespace std;int XError(int errNum){ char buf[1024] = {0}; av_strerror(errNum,buf,sizeof(buf)); cout<<buf<<
2021-11-15 14:51:01 411
原创 ffmpeg 推流 flv
//打开格式进行解封装1.avformat_open_input(AVFormatContext **ps, //打开文件的上下文const char *url,//文件的路径AVInputFormat *fmt,AVDictionary **options)AVFormatContext封装格式的上下文AVIOContext *pb; IO上下文AVStream x**streams; //视频音频字幕流int nb_streams; AVStreamAVRati
2021-11-15 14:18:33 2742
原创 nginx rtmp
下载nginxwget http://nginx.org/download/nginx-1.21.4.tar.gzgit clone https://github.com/arut/nginx-rtmp-module.git安装 libpcre3-devsudo apt install libpcre3-dev./configure --add-module=/home/xz/study/csdn/rtmp/nginx/nginx-rtmp-modulexz@xiaqiu:~/st
2021-11-15 10:35:08 1141
原创 ffmpeg 推流到 crtmpserver 测试
直播rtmp 分发退流------>直播服务器CDN------>各个客户端(rtmp,http-flv,hls)推流RGB RGBrtsp h264 1.图像采集----->美颜,水印—>转YUV H264编码rtsp aac 2.音频采集----->去噪,变音—>音频重采样aac编码PCMh264----|---->FLV封装–>FLV—>推流---->RTMP–>直播服务CD
2021-11-15 01:09:10 959
原创 Qt6 tesseract-ocr 截图识字
ScreenCapturer.h#ifndef SCREENCAPTURER_H#define SCREENCAPTURER_H#include "mainwindow.h"// 它是QWidget的子类class ScreenCapturer : public QWidget{ //并且在类主体的开头具有Q_OBJECT宏 Q_OBJECTpublic: explicit ScreenCapturer(MainWindow *w); ~ScreenCapt
2021-11-14 16:15:05 2242 1
原创 Qt6 录音
widget.h#ifndef WIDGET_H#define WIDGET_H#include <QWidget>#include <QAudioSource>#include <QFile>#include <QMediaFormat>#include <QMediaRecorder>#include <QUrl>#include <QMediaCaptureSession>#include <
2021-11-13 18:21:21 658
原创 Qt6 截屏
widget.h#ifndef WIDGET_H#define WIDGET_H#include <QWidget>QT_BEGIN_NAMESPACEnamespace Ui { class Widget; }QT_END_NAMESPACEclass Widget : public QWidget{ Q_OBJECTpublic: Widget(QWidget *parent = nullptr); void paintEvent(QPain
2021-11-12 12:50:28 387
原创 c++ call_once 单例
#include <iostream>#include <mutex>#include <pthread.h>constexpr auto times = 50;class MySingleton{public: static MySingleton &getInstance() { std::call_once(initInstanceFlag, &MySingleton::initSingleton);
2021-11-12 12:01:52 2474
原创 rgb pcm 转 mp4
视频编码1.读取RGB文件转换为yuv2.压缩为h2643.封装为MP4YUV1.“Y"表示明亮度,也就是灰度值2.而"U” 和 “V” 则表示色度CMakeLists.txtcmake_minimum_required(VERSION 3.4.1)project(ffmpeg_pro VERSION 0.1.0 LANGUAGES CXX C)##配置 预编译库 如ffmpeg库 路径 # find_library(AVCODEC_LIBRARY avcodec)# find_l
2021-11-11 19:04:25 2437
原创 音频采样率 wav->aac
音频采样率1.采样率sample_rate 44100(CD)2.通道channels (左右声道)3.样本大小(格式) sample_size-AV_SAMPLE_FMT_S16-AV_SAMPLE_FMT_FLTPwav_to_aac.cppextern "C"{ #include <libavformat/avformat.h> #include <libswscale/swscale.h> #include <libswresample/swres
2021-11-10 18:52:20 887
OpenCV 3 Blueprints.pdf
2018-06-17
OpenCV 2 Computer Vision Application Programming Cookbook
2018-06-17
Learning Image Processing with OpenCV.pdf
2018-06-17
A Practical Introduction to Computer Vision with OpenCV.pdf
2018-06-17
OpenCV Computer Vision with Python.pdf
2018-06-17
Arduino Computer Vision Programming.pdf
2018-06-17
OpenGL Programming Guide, 8th Edition
2018-06-17
OpenGL ES 3dot0 Cookbook
2018-06-17
OpenGL Data Visualization Cookbook
2018-06-17
OpenGL 4 Shading Language Cookbook, Second Edition
2018-06-17
Real-Time C++, 2nd Edition.pdf
2018-06-17
Procedural Content Generation for C++ Game Development.pdf
2018-06-17
Learning Boost C++ Libraries.pdf
2018-06-17
Functional Programming with C++
2018-06-17
Data Structures & Algorithm Analysis in C++, 4th Edition.pdf
2018-06-17
Data Clustering in C++.pdf
2018-06-17
C++ for Engineers and Scientists, 4th Edition.pdf
2018-06-17
Boost.Asio C++ Network Programming Cookbook
2018-06-17
OGLPG-9th-Edition.zip OpenGL编程指南代码(包括资源文件)
2019-10-23
OpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.core
2019-10-22
OGRE 3D 1.7 Application Development Cookbook.pdf
2019-04-20
UNIX网络编程卷1:套接字联网API(第3版) (1).pdf
2019-04-14
Multicore and GPU Programming An Integrated Approach.pdf
2019-03-21
Game Programming Using QT.pdf
2018-06-17
Practical Algorithms for 3D Computer Graphics, Second Edition.pdf
2018-06-17
OpenCV Computer Vision Application Programming Cookbook Second Edition.pdf
2018-06-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人