- 博客(3)
- 收藏
- 关注
原创 AVPlayer 问题记录
1,截图问题:用 copyPixelBufferForItemTime 截图失败处理:需要在player 播放前初始化添加好AVPlayerItemVideoOutput截图代码 CMTime itemTime = self.player.currentItem.currentTime; //没有提前初始化加好 AVPlayerItemVideoOutput 这里的Bu...
2019-05-06 17:06:08 671
原创 SDL (四)SDL YUV播放和PCM播放
SDL 中播YUV和PCM数据的步骤比较简单:1,播放YUV数据//1 打开文件video_file = fopen(path, "r");//2 读取数据video_buff_len = fread(video_buf, 1, yuv_frame_len, video_file)//3 更新纹理SDL_UpdateTexture(texture, NULL, video_pos...
2019-05-05 18:08:12 222
原创 SDL (三) 纹理 渲染 bmp图片
//SDL 图片渲染#include <stdio.h>// #include <stdafx.h>#include <SDL2/SDL.h>// #define IMG_PATH "/Users/bigfish/test/SDL_logo.png"#define IMG_PATH "/Users/bigfish/test/AAC05.bmp"#...
2019-05-05 10:12:49 423
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人