imageeditorengine/inc/MJpegSave.h
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     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 #ifndef __MJPEGSAVE_H__
       
    21 #define __MJPEGSAVE_H__
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 class MJpegSave
       
    26 	{
       
    27 	public:
       
    28 		virtual ~MJpegSave() {}
       
    29 
       
    30 		/// Starts jpeg save
       
    31 		/// @param aSize size of jpeg file
       
    32 		/// @param aExif descriptor containing exif data
       
    33 		/// @param aSaveBufferSize save buffer size in bytes
       
    34 		/// @param aQuality quality factor 0..100
       
    35 		virtual void StartSaveL( const TSize& aSize, TPtr8 aExif, TInt aSaveBufferSize, TInt aQuality ) = 0;
       
    36 
       
    37 		/// Saves one macroblock
       
    38 		/// at the moment macroblocks are 8x8 pixels 
       
    39 		/// @param aBitmap 8x8 pixels RGB bitmap 32bits per pixel ( 0RGB )
       
    40 		virtual void SaveBlock( const TBitmapHandle& aBitmap ) = 0;
       
    41 
       
    42 		/// Finalizes the save to file
       
    43 		virtual void FinalizeSave() = 0;
       
    44 
       
    45 		/// Finalizes the save to buffer
       
    46 		/// @return TPtrC8 save buffer descriptor
       
    47 		virtual TPtrC8 Finalize() = 0;
       
    48 	};
       
    49 #endif