自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(363)
  • 资源 (119)
  • 收藏
  • 关注

原创 vscode 主题的颜色定制

vscode 颜色修改

2022-12-31 21:06:08 9555 1

原创 c++ 学习记录

c++ 学习记录

2022-11-05 23:29:41 391

原创 算法学习笔记

算法学习

2022-10-06 16:45:44 395 3

原创 leetcode笔记

leetcode

2022-10-06 16:40:54 208

原创 vscode

vscode

2022-10-03 23:19:58 3228

原创 C++ lambda 学习笔记

c++ lambda

2022-10-01 19:02:11 1878

原创 C++ 移动语义学习

c++ 学习

2022-09-03 21:55:25 1568

原创 鸟哥私房菜学习笔记

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 &lt

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 &lt

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

pictures.zip

图片picture1

2020-08-20

OpenCV By Example.pdf

OpenCV By Example.pdfOpenCV By Example.pdfOpenCV By Example.pdf

2018-06-17

OpenCV 3 Blueprints.pdf

OpenCV 3 Blueprints.pdf OpenCV 3 Blueprints.pdfOpenCV 3 Blueprints.pdf

2018-06-17

OpenCV 2 Computer Vision Application Programming Cookbook

OpenCV 2 Computer Vision Application Programming Cookbook

2018-06-17

Learning Image Processing with OpenCV.pdf

Learning Image Processing with OpenCV.pdfLearning Image Processing with OpenCV.pdf

2018-06-17

A Practical Introduction to Computer Vision with OpenCV.pdf

A Practical Introduction to Computer Vision with OpenCV.pdf

2018-06-17

OpenCV Computer Vision with Python.pdf

OpenCV Computer Vision with Python.pdf OpenCV Computer Vision with Python.pdf

2018-06-17

Arduino Computer Vision Programming.pdf

Arduino Computer Vision Programming.pdf Arduino Computer Vision Programming.pdf

2018-06-17

OpenGL Programming Guide, 8th Edition

OpenGL Programming Guide, 8th Edition OpenGL Programming Guide, 8th Edition

2018-06-17

OpenGL ES 3dot0 Cookbook

First and foremost, I would like to thank my wife, Gurpreet, for her love, encouragement, and extreme patience during the book writing process, which mostly occurred on vacations, weekends, and overnights. I dedicate this book to my parents and brother; without their support, this book wouldn't have been possible. I wish to extend my special thanks to Amit Dubey for his guidance and directions, which always proved helpful. I would like to express my gratitude to Vijay Sharma. I learned ways to handle complex problems with a simple approach from him. I am highly grateful to Saurav Bhattacharya, Mohit Sindwani, and Tarun Nigam for being highly supportive during the course of this book. I am also very thankful to Dr. Ulrich Kabatek for providing me flexible timings, which helped me fnalize this title.

2018-06-17

OpenGL Data Visualization Cookbook

OpenGL is an ideal multiplatform, cross-language, and hardware-accelerated graphics rendering interface that is well suited to visualize large 2D and 3D datasets in many felds. In fact, OpenGL has become the industry standard to create stunning graphics, most notably in gaming applications and numerous professional tools for 3D modeling. As we collect more and more data in felds ranging from biomedical imaging to wearable computing (especially with the evolution of Big Data), a high-performance platform for data visualization is becoming an essential component of many future applications. Indeed, the visualization of massive datasets is becoming an increasingly challenging problem for developers, scientists, and engineers in many felds. Therefore, OpenGL can provide a unifed solution for the creation of impressive, stunning visuals in many real-time applications.

2018-06-17

OpenGL 4 Shading Language Cookbook, Second Edition

OpenGL 4 Shading Language Cookbook, Second Edition

2018-06-17

Real-Time C++, 2nd Edition.pdf

C++ programs combine class types that encapsulate objects with procedural subroutines in order to embody the functionality of the application. This chapter presents these main language elements of C++ using a short, intuitive program that toggles an LED on a microcontroller output port pin. In addition, other language features are introduced including the syntax of C++, namespaces, the C++ standard library and optimization with compile time constants. This chapter uses our target system with the 8-bit microcontroller.

2018-06-17

Procedural Content Generation for C++ Game Development.pdf

Computer games are a vast medium with dozens of genres that have developed over the past three to four decades. Games are bigger and more immersive than ever, and gamers' expectations have never been higher. While linear games, ones that have a set story and fxed progression, are still commonplace, more and more dynamic and open-ended games are being developed. Advances in computer hardware and video game technologies are giving a much more literal meaning to the phrase "game world". Game maps are constantly increasing in size and flexibility, and it's thanks to technologies such as procedural generation that it's possible. Two gamers who buy the same game may have very different experiences as content is generated on the fly

2018-06-17

Learning Boost C++ Libraries.pdf

Boost is not just a collection of useful, portable, generic C++ libraries. It is an important incubator for ideas and concepts that make their way to the ISO C++ Standard itself. If you are involved in the development of software written in C++, then learning to use the Boost libraries would save you from reinventing the whee improve the quality of your software, and very likely push up your productivity.

2018-06-17

Functional Programming with C++

Functional programming is experiencing a resurgence with languages like Python, Haskell, and Scala. C++ and Java have also added functional features, such as lambdas and futures. Writing C++ in a functional style using const variables, functions without side effects, recursive functions, and function objects results in code that is often simpler and easier to maintain and understand, especially when poorly documented. This book explores functional techniques in C++ code and their advantages and disadvantages.

2018-06-17

Data Structures & Algorithm Analysis in C++, 4th Edition.pdf

Data Structures & Algorithm Analysis in C++, 4th Edition.pdf

2018-06-17

Data Clustering in C++.pdf

Data clustering is a highly interdisciplinary field whose goal is to divide a set of objects into homogeneous groups such that objects in the same group are similar and objects in different groups are quite distinct. Thousands of papers and a number of books on data clustering have been published over the past 50 years. However, almost all papers and books focus on the theory of data clustering. There are few books that teach people how to implement data clustering algorithms.

2018-06-17

C++ for Engineers and Scientists, 4th Edition.pdf

The C++ programming language, which includes C as a proper subset, has become the preeminent programming language in the engineering and scientific fields. For most engineers and scientists, however, using the full potential of C++, which is a hybrid language containing both structured and object-oriented features, involves a gradual refinement of programming skills from a procedural approach to an object-oriented one. One reason for this is that many engineering and scientific problems can be solved efficiently and conveniently by using only C++’s procedural elements. The refinement approach, from procedural to object-oriented programming, is the one C++ for Engineering and Scientists, Fourth Edition, takes. Therefore, like the previous three editions, this new edition begins by providing a strong foundation in procedural programming. This foundation is then expanded to a complete object orientation in a pedagogically sound and achievable progression. Additionally, to keep it current with the latest ANSI/ISO C++ standard, this edition has several important changes and added features, including the following:

2018-06-17

Boost.Asio C++ Network Programming Cookbook

Boost.Asio C++ Network Programming Cookbook source pdf

2018-06-17

OGLPG-9th-Edition.zip OpenGL编程指南代码(包括资源文件)

OGLPG-9th-Edition.zip OpenGL编程指南(红皮书)包括资源文件OGLPG-9th-Edition.zip OpenGL编程指南(红皮书)包括资源文件OGLPG-9th-Edition.zip OpenGL编程指南(红皮书)包括资源文件OGLPG-9th-Edition.zip OpenGL编程指南(红皮书)包括资源文件OGLPG-9th-Edition.zip OpenGL编程指南(红皮书)包括资源文件OGLPG-9th-Edition.zip OpenGL编程指南(红皮书)包括资源文件

2019-10-23

OpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.core

OpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.coreOpenGL 4.5 Reference Pages API + GLSLangSpec.4.60 + glspec46.core

2019-10-22

Learning Windows 8 Game Development.pdf

Learning Windows 8 Game Development.pdf

2019-04-20

OGRE 3D 1.7 Application Development Cookbook.pdf

OGRE 3D 1.7 Application Development Cookbook.pdf

2019-04-20

网络多人游戏架构与编程.pdf

网络多人游戏架构与编程.pdf网络多人游戏架构与编程.pdf网络多人游戏架构与编程.pdf

2019-04-20

ZeroMQ 云时代极速消息通信库.pdf

ZeroMQ 云时代极速消息通信库.pdf

2019-04-20

C++黑客编程揭秘与防范 第2版.pdf

C++黑客编程揭秘与防范 第2版.pdf

2019-04-20

2016-09 C++11_14高级编程 Boost程序库探秘, 3rd.pdf

2016-09 C++11_14高级编程 Boost程序库探秘, 3rd.pdf

2019-04-20

C++数据结构与算法 第4版.pdf

C++数据结构与算法 第4版.pdfC++数据结构与算法 第4版.pdf

2019-04-14

Effective C++ 第三版.pdf

Effective C++ 第三版(中文带书签PDF).pdf

2019-04-14

UNIX网络编程卷1:套接字联网API(第3版) (1).pdf

UNIX网络编程卷1:套接字联网API(第3版) (1).pdfUNIX网络编程卷1:套接字联网API(第3版) (1).pdf

2019-04-14

C++ API设计.pdf

C++ API设计.pdf

2019-04-13

More Effective C++中文版

More Effective C++中文版

2019-04-13

Effective C++ 第三版(中文带书签PDF).pdf

Effective C++ 第三版(中文带书签PDF).pdf

2019-04-13

Multicore and GPU Programming An Integrated Approach.pdf

Multicore and GPU Programming An Integrated Approach.pdf

2019-03-21

Game Programming Using QT.pdf

Game Programming Using QT.pdf Game Programming Using QT.pdf

2018-06-17

Linux Sound Programming.pdf

Linux Sound Programming.pdf Linux Sound Programming.pdf

2018-06-17

The Linux Programming Interface

The Linux Programming Interface

2018-06-17

Practical Algorithms for 3D Computer Graphics, Second Edition.pdf

Practical Algorithms for 3D Computer Graphics, Second Edition.pdf

2018-06-17

OpenCV Computer Vision Application Programming Cookbook Second Edition.pdf

OpenCV Computer Vision Application Programming Cookbook Second Edition.pdf

2018-06-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除