mmserv/thumbnailengine/ImaamiInc/DCDefines.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   _Defines_H 
       
    15 *		Defines the parameter values used in the IMAAMI algorithms.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef _Defines_H
       
    23 #define _Defines_H
       
    24 
       
    25 #define EXPO_SHIFT			13			// Accuracy in exponent table
       
    26 #define EXPO_MULTI			(1 << EXPO_SHIFT)	// Multiplier for exponent
       
    27 #define EXPO_SIZE			(3 * EXPO_MULTI)	// Size of exponent table
       
    28 #define EXPO_ACCU			12			// Accuracy of weight value
       
    29 #define EXPO_MULT			(1 << EXPO_ACCU)
       
    30 #define EXPO_DIFF			(2 * SHIFT_PLACE - EXPO_SHIFT)
       
    31 
       
    32 #define SHIFT_COEFF			(16)	// Accuracy of float to integer (coeff)
       
    33 #define SHIFT_PLACE			( 8)	// Accuracy of float to integer (place)
       
    34 #define SHIFT_DIFF			( 8)	// Accuracy reduction		(SHIFT_COEFF - SHIFT_PLACE)
       
    35 
       
    36 #define EXPO_SIZE2			(384)	// Size of exponent table	((3 * (1 << EXPO_SHIFT2)) >> 1)
       
    37 #define EXPO_DIFF2			(  8)	// Reduction of accuracy	(SHIFT_COEFF - EXPO_SHIFT2)
       
    38 
       
    39 
       
    40 #endif // ifndef _Defines_H
       
    41 //----IMAAMI----