ffmpeg 에서 sws_scale 사용시 문제점
ffmpeg를 이용한 Frame 사이즈 변경 시 문제가 생겨서 이렇게 글올립니다.
==================================================================================================
static int sws_flags = SWS_BILINEAR;
img_convert_ctx = sws_getContext(srcInfo.Width,
srcInfo.Height,
srcInfo.pix_fmt,
DesInfo->width,
DesInfo->height,
DesInfo->pix_fmt,
sws_flags, NULL, NULL, NULL);
sws_scale(img_convert_ctx, tmp_picture->data, tmp_picture->linesize, 0, srcInfo.Height,
pad_picture->data, pad_picture->linesize);
==================================================================================================
위와같이 할 경우 각 Frame의 사이즈 변경이 가능하다고 해서 사용해봤습니다.
그런데 Frame의 축소의 경우는 아무런 문제가 없으나, Frame을 확대할 경우 정상적인
화면 확대가 된는것이 아니라 늘어난 부분에는 좌우의 경우는 반대쪽 화면이 늘어난
영역에 다시 그려지게 되더군요..
제가 어떤 부분을 빠트리고 있는것인지 알려주세요..


댓글 달기