Save YUV to Disk
来源:互联网 发布:男生文具盒淘宝 编辑:程序博客网 时间:2024/04/29 20:37
AVFrame *avFrame;
char *pName = "/Users/mac/myfiles2/test_30.yuv";
FILE *ff = fopen(pName, "wb");//????
int pic;
avcodec_decode_video2(avCodecContext, avFrame, &pic, &avPacket);
NSLog(@"...decode finished<<<");
//width: 352
//height: 288
if (pic != 0) {
for(int i=0; i<288; i++)
fwrite(avFrame->data[0] + i * avFrame->linesize[0], 1, 352, ff);
for(int i=0; i<288/2; i++)
fwrite(avFrame->data[1] + i * avFrame->linesize[1], 1, 352/2, ff);
for(int i=0; i<288/2; i++)
fwrite(avFrame->data[2] + i * avFrame->linesize[2], 1, 352/2, ff);
}
- Save YUV to Disk
- UIImagePickerController Save to Disk then Load to UIImageView
- How to dd a remote disk using SSH on local machine and save to a local disk
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Com
- 解决 MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Com
- MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.
- To Save Or Not To Save?
- sleeping-to-save-cpu
- Save Image to UserDefaults
- xtraReport save to DB
- QPixmap save to png
- sql server 里面的convert函数,当传入参数为null时,返回null
- 关于如何读代码?
- ACM -- 蛇和梯子
- sql 增删改查
- jBPM:从jBPM3到jBPM5以及Activiti5
- Save YUV to Disk
- Socket 错误一览表,Socket Error Code
- FatMouse' Trade
- test
- 出差规定
- handler使用
- 真正直接打印
- Linq lamda表达式Single和First方法
- extern