Advertisement
Guest User

Untitled

a guest
Oct 11th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1.             struct SwsContext *imgConvertCtx = sws_getContext(c->width, c->height, AV_PIX_FMT_YUV420P, c->width, c->height, AV_PIX_FMT_ARGB, 4, NULL, NULL, NULL);
  2.             sws_scale(imgConvertCtx, picture->data, picture->linesize, 0, picture->height, resultPicture->data, resultPicture->linesize);
  3.             sws_freeContext(imgConvertCtx);
  4.             for (int i=0; i<c->height*c->width*4; i++){
  5.                 result[i] = (uint)resultPicture->data[i];
  6.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement