aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-06-30 17:35:13 -0700
committerMichael Niedermayer <michaelni@gmx.at>2011-07-11 03:51:10 +0200
commit948ccdadf4b9c4b15e2777d25517ef1343675785 (patch)
tree98bcb64d78938eed5e01f1d11c808e65fb0af68c /libswscale/utils.c
parentf2db5602ba8e51436a0b491c85f8b309fccb59c8 (diff)
downloadffmpeg-948ccdadf4b9c4b15e2777d25517ef1343675785.tar.gz
swscale: for >8bit scaling, read in native bit-depth.
For 9/10bit, it means we don't have to upscale to 16bit before actual scaling or pixel format conversion, and thus a performance gain.
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r--libswscale/utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 18793198fa..15d594c582 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -883,7 +883,6 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
}
}
- // FIXME it's even nicer if bpp isn't 16, but max({src,dst}formatbpp)
c->scalingBpp = FFMAX(av_pix_fmt_descriptors[srcFormat].comp[0].depth_minus1,
av_pix_fmt_descriptors[dstFormat].comp[0].depth_minus1) >= 15 ? 16 : 8;