swscale: cleanup unused code

Removed previous swscale code under '#ifndef NEW_FILTER'
and removed unused fields of SwsContext
This commit is contained in:
Pedro Arthur
2016-03-28 13:25:18 -03:00
parent 3b905b9fe6
commit 6de58b4903
10 changed files with 65 additions and 463 deletions

View File

@ -279,7 +279,7 @@ int ff_init_filters(SwsContext * c)
if (need_lum_conv) {
res = ff_init_desc_fmt_convert(&c->desc[index], &c->slice[srcIdx], &c->slice[dstIdx], pal);
if (res < 0) goto cleanup;
c->desc[index].alpha = c->alpPixBuf != 0;
c->desc[index].alpha = c->needAlpha;
++index;
srcIdx = dstIdx;
}
@ -288,7 +288,7 @@ int ff_init_filters(SwsContext * c)
dstIdx = FFMAX(num_ydesc, num_cdesc);
res = ff_init_desc_hscale(&c->desc[index], &c->slice[srcIdx], &c->slice[dstIdx], c->hLumFilter, c->hLumFilterPos, c->hLumFilterSize, c->lumXInc);
if (res < 0) goto cleanup;
c->desc[index].alpha = c->alpPixBuf != 0;
c->desc[index].alpha = c->needAlpha;
++index;