上一页 1 ··· 12 13 14 15 16
摘要: 原文出自:https://mp.weixin.qq.com/s/z1LXwRVPlDqxn_p3DIFOag #include <iostream> #include <stdio.h> #include <Windows.h> using namespace std; extern "C" { # 阅读全文
posted @ 2021-12-01 09:59 泽良_小涛 阅读(308) 评论(0) 推荐(0)
摘要: 1.用的是VS2013,下载了opencv3.0. 2.使用64位的。 3.加入相应的库和头文件。 4.代码 #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; voi 阅读全文
posted @ 2021-11-30 12:21 泽良_小涛 阅读(125) 评论(0) 推荐(0)
摘要: int writeJPEG(AVFrame* frame, int width, int height){ const char* out_file = "hello_world.jpg"; //新建一个输出的AVFormatContext 并分配内存 AVFormatContext* output 阅读全文
posted @ 2021-11-29 11:36 泽良_小涛 阅读(287) 评论(0) 推荐(0)
摘要: 直接调用ffmpeg ,没用到ffmpeg 编程知识。 (1)所需的头文件 #include <Windows.h> #include <ShellAPI.h> #include <QTextCodec> #include <string> using namespace std; (2)所需的库  阅读全文
posted @ 2021-11-27 15:21 泽良_小涛 阅读(227) 评论(0) 推荐(0)
摘要: 1.从视频中截取图片 ffmpeg -i D:/Demo/FFmpegDemo/Win32/Debug/1.mp4 -y -framerate 10 -start_number 100 -r 1 -ss 00:02:00 -t 00:01:07 D:/Demo/FFmpegDemo/Win32/De 阅读全文
posted @ 2021-11-27 15:16 泽良_小涛 阅读(133) 评论(0) 推荐(0)
摘要: 1.将相关的库及头文件添加 2.在代码中加头文件 extern "C"{ #include <libavcodec/avcodec.h> #include <libavformat/avformat.h>}; 注意加extern "C" 3.代码 AVFormatContext *pFormatCt 阅读全文
posted @ 2021-11-27 10:42 泽良_小涛 阅读(60) 评论(0) 推荐(0)
摘要: 工具:vs自带的developer command for VS2015命令 dumpbin /EXPORTS aaa.dll // 查看内部函数 dumpbin /DEPENDENTS aaa.dll // 查看相关依赖 阅读全文
posted @ 2021-11-26 15:33 泽良_小涛 阅读(265) 评论(0) 推荐(0)
摘要: 在做DLL库的时候经常会通过printf打印一些调试信息,但是MFC项目引用后printf信息是无法输出到调试窗口的,网上一些说通过AllocConsole();打开命令窗口在VS2017中竟然不好用,最终经过网络寻找到可用方法: 1、在vs中打开你的解决方案。 2、鼠标移动到你的项目名称上,点击鼠 阅读全文
posted @ 2021-11-26 15:05 泽良_小涛 阅读(1403) 评论(0) 推荐(0)
摘要: char* text; FILE *pf = fopen("d:\\1.dat", "rb"); if (pf) { fseek(pf, 0, SEEK_END); long lSize = ftell(pf); // 用完后需要将内存free掉 text = (char*)malloc(lSize 阅读全文
posted @ 2021-09-02 13:09 泽良_小涛 阅读(46) 评论(0) 推荐(0)
摘要: std::string outresult; FILE *fp = NULL;fp = fopen("d:\\1.dat", "wb");if (fp == NULL){ return 0;}fwrite(outresult.c_str(), outresult.size(), 1, fp);fcl 阅读全文
posted @ 2021-08-31 16:19 泽良_小涛 阅读(95) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16