mmplugins/cameraplugins/source/webcamera/ecamwebcameraplugin.h
branchRCL_3
changeset 64 92a82bc706f7
parent 9 9ae0fe04e757
equal deleted inserted replaced
9:9ae0fe04e757 64:92a82bc706f7
    37 /**  Max of Camera Digital Zoom Factor */
    37 /**  Max of Camera Digital Zoom Factor */
    38 const TReal32 KMaxTestCameraDigitalZoomFactor = 1.0;
    38 const TReal32 KMaxTestCameraDigitalZoomFactor = 1.0;
    39 /**  Max of Camera Digital Zoom */
    39 /**  Max of Camera Digital Zoom */
    40 const TInt KMaxTestCameraDigitalZoom = 0;
    40 const TInt KMaxTestCameraDigitalZoom = 0;
    41 /**  Size of Viewfinder buffer, Capture buffer */
    41 /**  Size of Viewfinder buffer, Capture buffer */
    42 const TInt KMaxBufSize = 1024 * 100;
    42 
       
    43 const TInt KMaxBufSize = 900 * 1024;
    43 
    44 
    44 
    45 
    45 // Callback Class of WebCameraActive
    46 // Callback Class of WebCameraActive
    46 class MWebCameraActiveCallBack
    47 class MWebCameraActiveCallBack
    47 	{
    48 	{
   802 	*/
   803 	*/
   803 	void StartVideoCapture();
   804 	void StartVideoCapture();
   804 
   805 
   805 	/** 
   806 	/** 
   806 	from CCamera
   807 	from CCamera
   807 
       
   808 	Stops video capture. 
   808 	Stops video capture. 
   809 	*/
   809 	*/
   810 	void StopVideoCapture();
   810 	void StopVideoCapture();
   811 
   811 
   812 	/** 
   812 	/** 
   813 	from CCamera
   813 	from CCamera
   814 
   814 
   815 	Tests whether video capture is active.
   815 	Tests whether video capture is active.
   816 
       
   817 	@return  ETrue if video capture is active. EFalse if video capture is not active 
   816 	@return  ETrue if video capture is active. EFalse if video capture is not active 
   818 	*/
   817 	*/
   819 	TBool VideoCaptureActive() const;
   818 	TBool VideoCaptureActive() const;
   820 
   819 
   821 	/** 
   820 	/** 
   933 
   932 
   934 	@return Custom interface pointer. NULL if the requested interface is not supported.
   933 	@return Custom interface pointer. NULL if the requested interface is not supported.
   935 	*/
   934 	*/
   936 	TAny* CustomInterface(TUid aInterface);
   935 	TAny* CustomInterface(TUid aInterface);
   937 
   936 
       
   937 
   938 private:
   938 private:
   939 	CWebCamera();
   939 	CWebCamera();
   940 	void ConstructL();
   940 	void ConstructL();
   941 
   941 
   942 private: // from MWebCameraActiveCallBack
   942 private: // from MWebCameraActiveCallBack
   991 	CFbsBitmap*				iCaptureBitmap;		///< Bitmap Data for capture.
   991 	CFbsBitmap*				iCaptureBitmap;		///< Bitmap Data for capture.
   992 	HBufC8*					iCaptureBuf;		///< Data buffer for capture.
   992 	HBufC8*					iCaptureBuf;		///< Data buffer for capture.
   993 	TPtr8					iCaptureBufPtr;		///< pointer to Data buffer for capture.
   993 	TPtr8					iCaptureBufPtr;		///< pointer to Data buffer for capture.
   994 
   994 
   995 	RArray<TSize>			iImageSizes;		///< Image size.
   995 	RArray<TSize>			iImageSizes;		///< Image size.
       
   996 	
       
   997 	RChunk 					iChunk;				///< For Chunk process .
       
   998 	RWebcameraDevice::TChunkInfo	iChunkInfo;	///< Chunk Information.
       
   999 	TUint8*					iChuckBase;
       
  1000 	TInt 					iChunkRemSize;			///< Chunk size.
   996 	};
  1001 	};
   997 
  1002 
   998 
  1003 
   999 class CWebCameraInfo : public CCameraInfoPlugin
  1004 class CWebCameraInfo : public CCameraInfoPlugin
  1000 	{
  1005 	{