- 博客(8)
- 收藏
- 关注
原创 winsock设置keepalive
keepalivetime 成员指定在发送第一个保持活动数据包之前没有活动的超时(以毫秒为单位)。keepaliveinterval 成员指定在未收到确认时发送连续保持活动数据包之间的间隔(以毫秒为单位)。如果 onoff 成员设置为非零值,则会启用 TCP 保持活动,并使用结构中的其他成员。
2023-06-08 14:55:01
306
原创 java HttpClient学习笔记
配置Apache HttpClient 5.0fastjson下载并解压范例代码import java.util.ArrayList;import java.util.List;import com.alibaba.fastjson.JSON;import org.apache.hc.client5.http.classic.methods.HttpGet;import org.apache.hc.client5.http.classic.methods.HttpPost;
2020-08-28 18:16:31
261
原创 2020-08-17
MP4录制学习笔记1. 时间戳的含义参见“海思平台的利用mp4v2库合成mp4原理说明”2. 关键代码2.1 创建MP4文件 m_pHandle = MP4Create(strFileName, 0); MP4SetTimeScale(m_pHandle, m_nVideoTimeScale); //m_nVideoTimeScale设置为固定值900002.2 H264->MP42.2.1 SPS-> MP4 if (MP4_INVALID_TRACK_ID == m_e
2020-08-17 18:21:05
275
原创 MP4V2版MP4文件生成 - 内存中的H264帧和AAC帧
从IPC采集H264帧和AAC帧,然后保存为MP4文件,直接上代码:#include <mp4v2/mp4v2.h>#include <assert.h>#include <errno.h>#include <math.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <sys/types.h>#include
2020-08-05 13:59:30
825
原创 NDK r21下编译FDK-AAC
编译脚本注意:要仔细研究“configure --help”的输出#!/bin/bashexport NDK_TOOLCHAIN_DIR=/home/syq/android-toolchain/export INSTALL_DIR=/home/syq/install/fdk-aac-armexport CONFIGURE_FLAGS="--prefix=$INSTALL_DIR --enable-example --with-aix-soname=-arm"export PATH=$PAT
2020-07-29 11:56:27
779
原创 JNI:C++回调JAVA的函数
摘要JNI, 对象全局引用NewGlobalRef(), 线程绑定JAVA虚拟机AttachCurrentThread()测试代码JAVAMainApp//MainApp.javaimport sun.misc.*;public class MainApp { static { System.loadLibrary("animal"); } public static void main(String[] args) { TestSignal ha
2020-07-27 17:34:07
602
原创 NDK r21下编译ffmpeg
@音视频NDK r21下编译ffmpeg下载NDK从NDK官网下载NDK,并上传到服务器任意目录,本文上传到/home/syq目录中。当前最新稳定版为r21b。从NDK导出工具链cd /home/syq/android-ndk-r21b #NDK的安装目录./make-standalone-toolchain.sh --platform=android-24 --install-dir=/home/syq/android-toolchain --force #生成工具链编译脚
2020-07-27 11:27:33
549
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人