JeffyCN / FFmpeg

FFmpeg with rkmpp hwdec - (deprecated due to license issue, check gstreamer instead or https://github.com/nyanmisaka/ffmpeg-rockchip)
https://ffmpeg.org
Other
60 stars 18 forks source link

sws_scale using librga #2

Closed avafinger closed 2 years ago

avafinger commented 2 years ago

Hi @JeffyCN ,

I have the following:

img_convert_ctx = sws_getContext(pCodecCtx->width, pCodecCtx->height, pCodecCtx->pix_fmt, pCodecCtx->width, pCodecCtx->height, AV_PIX_FMT_YUV420P, SWS_BICUBIC, NULL, NULL, NULL);
sws_scale(img_convert_ctx, (const unsigned char *const *) pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameYUV->data, pFrameYUV->linesize);

But it is slow. I know sws_scale using the librga was on your list, have you implemented it? Would you share this? BR

JeffyCN commented 2 years ago

no, that is not on my list...i mainly focus on gstreamer things...

maybe you can try to use librga directly. there are many examples about that