Android Dev Intro - Binary File Read Write
来源:互联网 发布:24小时淘宝店铺套花呗 编辑:程序博客网 时间:2024/05/21 21:35
File fl = new File("/sdcard/420p.yuv");
try {
mInputStream = new FileInputStream(fl);
} catch(Exception ex) {}
try {
ret = mInputStream.read(mDecodeBuffer);
if(ret != mDecodeBuffer.length) {
try {
mInputStream.close();
File fl = new File("/sdcard/420p.yuv");
mInputStream = new FileInputStream(fl);
ret = mInputStream.read(mDecodeBuffer);
} catch(Exception ex) {}
}
}
catch(Exception ex) {}
File fl = new File("/sdcard/t1.h264");
try {
fos = new FileOutputStream(fl);
}catch (Exception ex) {
}
try {
fos.write(videoConfigBuf, 0, videoConfigBuf.length);
}catch(Exception ex) {}
try {
fos.write(mvf.mBuffer, mvf.mInfo.offset, mvf.mInfo.size);
}catch(Exception ex) {}
try {
fos.flush();
}catch (Exception ex) {}
try {
fos.close();
} catch (Exception ex) {}
- Android Dev Intro - Binary File Read Write
- Android Dev Intro - ANativeWindow
- read-write ordinary file
- Read/Write ini file
- file read and write
- oc write read file
- File Read Write
- read/write file
- python read write file
- C++ file read write
- read/write file
- read file write
- Android Dev Intro - Android Thread Intro
- Android Dev Intro - Android SurfaceTexture
- Android Dev Intro - Android Looper
- Android Dev Intro - GLSurfaceView.RequestRender
- Android Dev Intro - Introducing GLSurfaceView
- Android Dev Intro - Some Concepts
- 15分钟弄懂 const 和 #define
- C#工程师面试题
- 在大规模并行处理器编程实战中遇到第四章的课后习题blocksize的问题
- 安卓日记——下拉刷新
- LeetCode 328: Odd Even Linked List
- Android Dev Intro - Binary File Read Write
- java.lang.OutOfMemoryError处理错误
- 在Windows安装activemq
- js之三类(冒泡,插值,二分)排序算法
- JavaScript高级程序设计(第3版)学习笔记——apply()和call()
- 面经一
- 页面滚动条翻页
- 采用dlopen,dlsym,dlclose 加载动态链接库
- 机器学习该怎么入门?