summaryrefslogtreecommitdiff
path: root/trunk/turbojpegl.c
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2009-04-05 21:53:20 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2009-04-05 21:53:20 +0000
commit7989071ab70fc7d58b2ea5bb3d0b8f102b3f772c (patch)
tree30276cc949eab7749150629327a1efb2172a2724 /trunk/turbojpegl.c
parent2a138e112da689d8901dd2ff0f064a7bc35a0a3a (diff)
Test fast upsampling
"4:1:1 = 4:2:0" git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@43 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/turbojpegl.c')
-rw-r--r--trunk/turbojpegl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/trunk/turbojpegl.c b/trunk/turbojpegl.c
index 3f03aed..82acf23 100644
--- a/trunk/turbojpegl.c
+++ b/trunk/turbojpegl.c
@@ -1,5 +1,6 @@
/* Copyright (C)2004 Landmark Graphics Corporation
* Copyright (C)2005 Sun Microsystems, Inc.
+ * Copyright (C)2009 D. R. Commander
*
* This library is free software and may be redistributed and/or modified under
* the terms of the wxWindows Library License, Version 3.1 or (at your option)
@@ -320,6 +321,7 @@ DLLEXPORT int DLLCALL tjDecompress(tjhandle h,
#else
#error "TurboJPEG requires JPEG colorspace extensions"
#endif
+ if(flags&TJ_FASTUPSAMPLE) j->dinfo.do_fancy_upsampling=FALSE;
jpeg_start_decompress(&j->dinfo);
while(j->dinfo.output_scanline<j->dinfo.output_height)