摘要:
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 阅读全文