[FFmpeg-devel] SWSCALE: Colorspace conversion for images

Frank Barchard fbarchard at google.com
Tue Mar 29 22:58:57 CEST 2011


Bump swscaler width limitation from 5120 to 16384.

Advantage: images (ie jpeg) are often larger than 5120 these days.
 5120x2880 is about 15 megapixels

Disadvantage: slightly slower

no scaling
timex ffmpeg -y -i tulip2.mp4 tulip2.yuv
timex 8866.21ms

scaling
C:\ffwork>timex ffmpeg -y -i tulip2.mp4 -s 1272x724 tulip2.yuv
timex 23633.13ms with VOFW 5120
timex 26246.90ms with VOFW 16384

Previously discussed under: "[FFmpeg-devel] SWSCLAE: Colorspace conversion
for small images"

diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index daa6731..fc684f1 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -34,7 +34,7 @@
 #define MAX_FILTER_SIZE 256

 #if ARCH_X86
-#define VOFW 5120
+#define VOFW 16384
 #else
 #define VOFW 2048 // faster on PPC and not tested on others
 #endif
--


More information about the ffmpeg-devel mailing list