原创 libzmq Linux 編譯

下載 ZeroMQ:http://download.zeromq.org/ 如需 zmq.hpp 可從這裏下載:https://github.com/zeromq/cppzmq/archive/master.zip 也可以從gi

原创 YUV420P旋轉算法

        本次整理了順時針旋轉90度、逆時針旋轉90度、逆時針旋轉180度、逆時針旋轉180度再水平翻轉、水平翻轉。如有有需要請留言,我會再添加其他旋轉算法。         算法可以直接看下面的代碼,如果需要代碼中的yuv420p

原创 使用FFmpeg4.2.1解碼H264爲YUV420P(C++代碼)

概要 使用的是截止目前最新的ffmpeg-4.2.1版本,接口使用的也都是最新的,廢棄的接口本次不涉及。本次主要記錄讀取H264文件,解碼成YUV420P格式。 PS:整理這篇文章晚了幾天,剛下載該版本時還沒有發佈4.2.2版本,

原创 YUV420P 旋轉--待整理

// 逆時針90 void YUVRotate90(BYTE *des, BYTE *src, int width, int height) { int i = 0, j = 0, n = 0; int hw = width /

原创 sdl

#include "myf4.h" //////////////////////////////// #include "iostream" #include "stdlib.h" #include <strin

原创 rgb24_rotate_90 未驗證待整理

bool rgb24_rotate_90(unsigned char *src_rgb,unsigned int iWidth,unsigned int iHeight,bool direction) { if(!src_rgb)

原创 windows向Linux發送文件的命令行方式

pscp.exe -l root -pw "123" -r file.txt root@ip:/

原创 live555編程之Linux-cpp代碼實現發送x264文件

1、下載live555源代碼 1. 下載地址,從 https://github.com 進行下載,搜索 live555, rgaufman/live555 就是,下載master即可 2、編譯live555 解壓 live555-mast

原创 去掉base64的"\n"

#include <stdio.h> #include <stdlib.h> #include <string.h> void del(char *s) { int i = 0,j = 0; for(i

原创 apt-get install 報錯

如下錯誤 E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the

原创 Poco C++類庫使用說明

概要介紹 POCO C++是一個開源的C++類庫的集合,它主要提供簡單的、快速的網絡和可移植應用程序的C++開發,這個類庫和C++標準庫可以很好的集成並填補C++標準庫的功能空缺。POCO庫的模塊化、高效的設計及實現使得POCO特

原创 字符串操作:截取、awk分段顯示

#!/bin/bash m_d=`date` p4_src=`echo $m_d | awk '{print $4}'` p4_1="${p4_src:0-0:2}" p4_2="${p4_src:0-2:2}" p4_3="${p

原创 odb + mysql 客戶端編譯環境安裝 + 使用示例

1、odb 下載地址 https://www.codesynthesis.com/products/odb/download.xhtml, 選擇 Common Runtime Library -> libodb-2.4.0 ,Databa

原创 Poco http get 操作

#include "Poco/JSON/Parser.h" #include "Poco/JSON/ParseHandler.h" #include "Poco/JSON/JSONException.h" #include "Poco

原创 libcurl http get

#include <dlfcn.h> #include <sys/types.h> #include <unistd.h> #include <pthread.h> #include <stdio.h> #include <iconv.