aboutsummaryrefslogtreecommitdiff
path: root/turbojpeg.c
diff options
context:
space:
mode:
authordcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2012-01-28 06:49:56 +0000
committerdcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2012-01-28 06:49:56 +0000
commitea9f79782d6c7eecad9e6f92ae82cd9efda9b3a6 (patch)
tree8a584e184d8e90157bee8090b6160ee3f9e67673 /turbojpeg.c
parentad75aa4970d606d4560079f7e919cd628235b951 (diff)
Expose new scaling factors in TurboJPEG API
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@757 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'turbojpeg.c')
-rw-r--r--turbojpeg.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/turbojpeg.c b/turbojpeg.c
index 2d5959a..2f7cbf9 100644
--- a/turbojpeg.c
+++ b/turbojpeg.c
@@ -92,10 +92,22 @@ static const JXFORM_CODE xformtypes[TJ_NUMXOP]=
JXFORM_TRANSVERSE, JXFORM_ROT_90, JXFORM_ROT_180, JXFORM_ROT_270
};
-#define NUMSF 4
+#define NUMSF 16
static const tjscalingfactor sf[NUMSF]={
+ {2, 1},
+ {15, 8},
+ {7, 4},
+ {13, 8},
+ {3, 2},
+ {11, 8},
+ {5, 4},
+ {9, 8},
{1, 1},
+ {7, 8},
+ {3, 4},
+ {5, 8},
{1, 2},
+ {3, 8},
{1, 4},
{1, 8}
};