摘要:
ffmpeg 提取音视频文件中的音频: ffmpeg -i input.flv -vn -acodec aac audio.aac音频转码成pcm(G711A) ffmpeg -i audio.aac -f alaw auido.pcm播放pcm音频文件 ffplay -i audio.pcm -f 阅读全文
摘要:
centosmin安装后没有gclient命令,使用 pip3 install gclient 安装gclient。 输入gclient命令,报错: [root@zhumu mico]# gclientTraceback (most recent call last): File "/usr/loc 阅读全文
摘要:
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * struct TreeNode *left; 6 * struct TreeNode *right; 7 * }; 8 */ 9 1 阅读全文
摘要:
1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * struct ListNode *next; 6 * }; 7 */ 8 9 10 struct ListNode* mergeTw 阅读全文
摘要:
1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * struct ListNode *next; 6 * }; 7 */ 8 9 10 struct ListNode* reverse 阅读全文
摘要:
1 void sort(int *nums, int l, int mid, int r){ 2 int *tmp, i, lsub, rsub, len; 3 4 len = r-l+1; 5 lsub = l; 6 rsub = mid+1; 7 8 tmp = malloc(sizeof(in 阅读全文
摘要:
1 void quickSort(int *nums, int n, int i, int j) { 2 int base, tmp, this_begin, this_end; 3 if (i<0 || j >= n) 4 return; 5 if (i >= j) 6 return ; 7 th 阅读全文
摘要:
给你一个由 '1'(陆地)和 '0'(水)组成的的二维网格,请你计算网格中岛屿的数量。岛屿总是被水包围,并且每座岛屿只能由水平方向或竖直方向上相邻的陆地连接形成。此外,你可以假设该网格的四条边均被水包围。 示例 1:输入:[['1','1','1','1','0'],['1','1','0','1' 阅读全文
摘要:
结论 使用write函数直接输出到输出设备上,是不带缓冲;但是标准IO库是带有缓冲的,printf遇到\n的时候才会冲刷缓冲区,输出到输出设备上。 测试程序 如下: 1 #include "apue.h" 2 3 int globvar = 6; 4 char buf[] = "a write to 阅读全文
摘要:
1 static void insertSort2(int* arr, int n) { 2 int j, temp; 3 for(int i = 1; i < n; i++) { 4 temp = arr[i]; 5 for(j = i - 1; j >= 0; j--) { 6 if(temp 阅读全文