摘要: 一、FFmpeg解码流程: 1、注册所有容器格式和CODEC:avcodec_register_all(); 2、查找对应的解码器:avcodec_find_decoder(AV_CODEC_ID_MJPEG); 3、分配编解码器参数数据结构avcodec_alloc_context3(AVCode 阅读全文
posted @ 2022-08-03 20:32 相对维度 阅读(1752) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 typedef struct AVCodec { /** * 编解码器实现的名称。 * 该名称是全局唯一的(但编码器和解码器可以共享名称)。 * 这是从用户角度查找编解码器的主要方式。 */ const char *name; /** * 编解码器的描述性名称,比前面的名称更具可读性。 阅读全文
posted @ 2022-08-03 20:31 相对维度 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 AVDictionary *_dic = nullptr; av_dict_set (&_dic, "vcodec", "mjpeg", 0); int _ret = avformat_open_input (&_fmt_ctx, "video=xxxcamera", _ipt_fmt 阅读全文
posted @ 2022-08-03 20:25 相对维度 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/tla001/p/7061758.html 摄像头输出是mjpeg格式的,需要实现在线预览功能,然后实现拍照功能 1.可以设置采集图像的分辨率,预览分辨率为640*480,可以自定义 2.ctrl+\ 拍照,ctrl+c 退出 点击查看代码 阅读全文
posted @ 2022-08-03 20:24 相对维度 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://blog.csdn.net/leixiaohua1020/article/details/44084557 阅读全文
posted @ 2022-08-03 20:21 相对维度 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://blog.csdn.net/tugouxp/article/details/118516385 源码:ls /dev/ 查看摄像头是video编号比如:video0 video1 点击查看代码 #include <stdio.h> #include <sys/types.h 阅读全文
posted @ 2022-08-03 20:17 相对维度 阅读(755) 评论(0) 推荐(0) 编辑
摘要: FFmpeg采集摄像头数据 前言 一、查看Linux系统下的摄像头设备 二、代码 1.在main函数中,所需要用到的参数的声明 2.解码摄像头原始参数设置 3.输出H264文件部分 4.编解码开始部分 5.收尾部分 6.源码 7.Cmake 1.在main函数中,所需要用到的参数的声明 点击查看代码 阅读全文
posted @ 2022-08-03 20:10 相对维度 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 1.参考文档 网 址:http://en.wikipedia.org/wiki/Conventional_PCI ; 网 址:http://en.wikipedia.org/wiki/PCI_configuration_space ; 2.配置与初始化 在系统启动时,在 x86 上,BIOS 负责配 阅读全文
posted @ 2022-07-24 11:44 相对维度 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 转自: https://blog.csdn.net/u010872301/article/details/78519371 实现基本的PCIE驱动程序,实现以下模块:初始化设备、设备打开、数据读写和控制、中断处理、设备释放、设备卸载。本程序适合PCIE驱动开发通用调试的基本框架,对于具体PCIE设备 阅读全文
posted @ 2022-07-19 16:26 相对维度 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 设备驱动程序和实时驱动程序模型 • RTDM: unified interface for users and developers of RT drivers • Adopted as the Xenomai driver programming interface • Also used by 阅读全文
posted @ 2022-07-19 10:30 相对维度 阅读(905) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示