From f2d52d61f92c8af46ddbdd3e540dfeafc1f29ae9 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 8 Sep 2009 16:18:51 -0700 Subject: [PATCH] QSD8K supports 8x scaling --- libcopybit/copybit.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index bd548a1..24b5199 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -38,6 +38,16 @@ /******************************************************************************/ +#if defined(COPYBIT_MSM7K) +#define MAX_SCALE_FACTOR (4) +#else if defined(COPYBIT_QSD8K) +#define MAX_SCALE_FACTOR (8) +#else +#error "Unsupported MDP version" +#endif + +/******************************************************************************/ + /** State information for each device instance */ struct copybit_context_t { struct copybit_device_t device; @@ -273,10 +283,10 @@ static int get(struct copybit_device_t *dev, int name) if (ctx) { switch(name) { case COPYBIT_MINIFICATION_LIMIT: - value = 4; + value = MAX_SCALE_FACTOR; break; case COPYBIT_MAGNIFICATION_LIMIT: - value = 4; + value = MAX_SCALE_FACTOR; break; case COPYBIT_SCALING_FRAC_BITS: value = 32;