摘要: AVFrame* YUV2RGB( AVCodecContext * avctx, AVFrame * frame ){ AVFrame* pFrameRGB=NULL; pFrameRGB=avcodec_alloc_frame(); if(pFrameRGB==NULL) return NULL; // Determine required buffer size and allocate buffer int numBytes=avpicture_get_size(PIX_FMT_BGR24, avctx->width,avctx->height); uint8_t * bu 阅读全文
posted @ 2013-11-13 14:56 ahuo 阅读(1771) 评论(0) 推荐(0) 编辑