swscale: re-enable gamma

+added gamma conversion to refactored code
This commit is contained in:
Pedro Arthur 2015-09-04 18:11:21 -03:00
parent f67aff3ad7
commit 3059562aa1
7 changed files with 109 additions and 10 deletions

View file

@ -229,7 +229,7 @@ void ff_init_vscale_pfn(SwsContext *c,
{
VScalerContext *lumCtx = NULL;
VScalerContext *chrCtx = NULL;
int idx = c->numDesc - 1;
int idx = c->numDesc - (c->is_internal_gamma ? 2 : 1);
if (isPlanarYUV(c->dstFormat) || (isGray(c->dstFormat) && !isALPHA(c->dstFormat))) {
if (!isGray(c->dstFormat)) {