1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avfilter/vf_spp: support 10bit per sample

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-12-12 16:22:27 +01:00
parent 1307c11ce6
commit 838aa08d75
2 changed files with 79 additions and 23 deletions

View File

@@ -224,9 +224,11 @@ av_cold void ff_spp_init_x86(SPPContext *s)
if (cpu_flags & AV_CPU_FLAG_MMX) {
s->store_slice = store_slice_mmx;
switch (s->mode) {
case 0: s->requantize = hardthresh_mmx; break;
case 1: s->requantize = softthresh_mmx; break;
if (av_get_int(s->dct, "bits_per_sample", NULL) <= 8) {
switch (s->mode) {
case 0: s->requantize = hardthresh_mmx; break;
case 1: s->requantize = softthresh_mmx; break;
}
}
}
#endif