vtprotocolplugins/VideoSource/inc/mmultiframeprovider.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Video Source subsystem.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_MULTIFRAMEPROVIDER_H
       
    20 #define M_MULTIFRAMEPROVIDER_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CVtImageBitmap;
       
    27 
       
    28 // ============================ TImageShareDataBuffer ===============================
       
    29 /**
       
    30 *	Share buffer class
       
    31 * @lib videosource.lib
       
    32 */
       
    33 NONSHARABLE_CLASS( TImageShareDataBuffer)
       
    34 	{
       
    35 	public :
       
    36 			CVtImageBitmap* iBitmap;
       
    37 			TBool iIsBitmapFree;		
       
    38 	};
       
    39 
       
    40  // General Settings image type
       
    41  enum TGeneralSettingsImageType
       
    42  			{
       
    43       EGSStillImage,
       
    44       EGSDefaultStillImage
       
    45       };
       
    46 
       
    47 // ============================ MMultiframeprovider ===============================
       
    48 /**
       
    49 *	Multiframe observer API
       
    50 * Interface for receiving data and acknowledgements from multiframe provider.
       
    51 * @lib videosource.lib
       
    52 */
       
    53 class MMultiframeprovider
       
    54 	{
       
    55 	public:
       
    56 	/**
       
    57   * Indicates when initialization of multiframeprovider has finished
       
    58   */
       
    59 	virtual void InitializeReady() = 0;
       
    60 	
       
    61 	/**
       
    62   * Refresh YUV data
       
    63   * @param "aYUVBitMap" reference new YUV data.
       
    64   */
       
    65 	virtual void RefreshYUVData( TImageShareDataBuffer& aYUVBitMap ) = 0;
       
    66 	
       
    67 	/**
       
    68   * Refresh VF data
       
    69   * @param "aVFBitMap" reference new VF data.
       
    70   */
       
    71 	virtual void RefreshViewFinder( TImageShareDataBuffer& aVFBitMap ) = 0;
       
    72 	
       
    73 	/**
       
    74   * Notifies if error occures in multiframeprovider
       
    75   * @param "aError" symbian wide error code.
       
    76   */
       
    77 	virtual void NotifyImageHandlingError( TInt aError ) = 0;
       
    78 		
       
    79 	};
       
    80 #endif //M_MULTIFRAMEPROVIDER_H
       
    81 
       
    82 // End of File