dfg
来源:互联网 发布:java汉字转拼音首字母 编辑:程序博客网 时间:2024/06/17 00:53
AVFrame *pFrame,*pFrameYUV; pFrame = avcodec_alloc_frame(); pFrameYUV = avcodec_alloc_frame(); uint8_t *out_buffer; out_buffer = new uint8_t[avpicture_get_size(PIX_FMT_YUV420P, pCodecCtx->width, pCodecCtx->height)]; avpicture_fill((AVPicture *)pFrameYUV, out_buffer, PIX_FMT_YUV420P, pCodecCtx->width, pCodecCtx->height);//------------SDL---------------- if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { printf( "Could not initialize SDL - %s\n", SDL_GetError()); return -1; } SDL_Surface *screen; screen = SDL_SetVideoMode(pCodecCtx->width, pCodecCtx->height, 0, 0); if(!screen) { printf("SDL: could not set video mode - exiting\n"); return -1; } SDL_Overlay *bmp; bmp = SDL_CreateYUVOverlay(pCodecCtx->width, pCodecCtx->height,SDL_YV12_OVERLAY, screen); SDL_Rect rect;//--------------- int ret, got_picture; int y_size = pCodecCtx->width * pCodecCtx->height; AVPacket *packet=(AVPacket *)av_malloc(sizeof(AVPacket));> 引用块内容
0 0
- dfg
- dfg
- dfg
- dfg
- dfg
- dfg
- fdg dfg
- 3465DFG
- s dfg dfg fgds 撒第三方士大夫随到
- http://www.dfg.cn/gb/
- vdax ,.a'dfg\ ./cax\.v;.,dcapklvl;]sdtgsdg;l
- python编写定时器执行脚本
- Linux内核:container_of宏分析
- C++(7)动态数组
- 安卓客户端与服务器间文件的下载与上传
- android ui 积累
- dfg
- UICollectionView
- C++(8)表达式
- Android生成验证码
- curl
- JProfiler 8 注册码
- Android 从网络获取图片保存到SD卡中
- iOS 返回一张可以随意拉伸不变形的图片
- sdfdsf