videoeditorengine/vedengine/GenManip/inc/DCDithering.h
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 //----IMAAMI----
       
    21 //*************************************************************************
       
    22 //DCDithering.h
       
    23 //
       
    24 //Version 1.00
       
    25 //
       
    26 //Contains:
       
    27 //	CDCDithering 
       
    28 //		Dithering by H263 algorithm developed in /.
       
    29 //			
       
    30 //History:
       
    31 //	19.08.2003 version 1.00 created using existing algorithms	
       
    32 //*************************************************************************
       
    33 
       
    34 
       
    35 
       
    36 /*
       
    37 -----------------------------------------------------------------------------
       
    38 
       
    39     DESCRIPTION
       
    40 
       
    41     Defines the dithering class.
       
    42 
       
    43 -----------------------------------------------------------------------------
       
    44 */
       
    45 
       
    46 #ifndef  __DCDithering_H__
       
    47 #define  __DCDithering_H__
       
    48 
       
    49 
       
    50 
       
    51 //  INCLUDES
       
    52 #ifndef   __E32STD_H__
       
    53 #include  <e32std.h>   // for Fundamental Types
       
    54 #endif // __E32STD_H__
       
    55 #ifndef   __E32BASE_H__
       
    56 #include  <e32base.h>  // for CBase
       
    57 #endif // __E32BASE_H__
       
    58 
       
    59 
       
    60 
       
    61 //Class definition
       
    62 class CDCDithering : public CBase
       
    63 {
       
    64 public:
       
    65 
       
    66 	CDCDithering();					// Constructor
       
    67 	static CDCDithering* NewL();	// Factory function
       
    68 	static CDCDithering* NewLC();	// Factory function
       
    69 	~CDCDithering();				// Destructor
       
    70 	void ConstructL();				// Second Phase contructor (may leave)
       
    71 	
       
    72 	// Process and store image referenced by aBPtr
       
    73 	void ProcessL(CFbsBitmap& aBPtr);
       
    74 	
       
    75 private:
       
    76 
       
    77 	// Limit integer value to byte [0,255]
       
    78 	static inline TUint8 Limit255(TInt i) {return (TUint8)(i<0?0:(i>255?255:i));}
       
    79 
       
    80 	// Scan line buffer
       
    81 	HBufC8*  iScanLineBuffer;
       
    82 };
       
    83 
       
    84 #endif // __DCDithering_H__
       
    85 // End of File
       
    86 //----IMAAMI----