Camera: Feature Not Supported

Login to reply to this topic.
Mon, 2006-08-14 13:54
Joined: 2004-07-12
Forum posts: 123
Hi,

ia m trying to write a simple camera application using the ECam API under symbian v8.0. i ran the code on the emulator and it was working fine, i could see the viewfinder content on screen when using StartViewFinderDirectL().
however, when i built the same app for the device (Nokia 6630) i got an error message: Feature Not Supported. note that i am using here Carbide C++ as my IDE.
the code is the following:

   User::LeaveIfError(CCamera::CamerasAvailable());
   
   iCam = CCamera::NewL( *this, 0 );//connect server
   iCam->Reserve();
   iCam->CameraInfo(iCamInfo);
   iCam->PowerOn(); 
   
   TRect rect(TPoint(0, 0), TPoint(178, 208));
   iCam->StartViewFinderDirectL( aSession, *aDevice, aWin, rect);

regs

Tue, 2006-08-15 09:14
Joined: 2004-05-23
Forum posts: 114
Re: Camera: Feature Not Supported
Who is dropping th error ? CamerasAvailable() ?
Also are you implementing MCameraObserver ?

Tue, 2006-08-15 18:53
Joined: 2004-07-12
Forum posts: 123
Re: Camera: Feature Not Supported
yes it is CamerasAvailable()
and yes i have implemented MCameraObserver as follows:

void CCameraController::ReserveComplete(TInt aError)
{
}

void CCameraController::PowerOnComplete(TInt aError)
{
}

void CCameraController::ViewFinderFrameReady(CFbsBitmap& aFrame)
{

}

void CCameraController::ImageReady(CFbsBitmap* aBitmap,HBufC8* aData,TInt aError)
{
}

void CCameraController::FrameBufferReady(MFrameBuffer* aFrameBuffer,TInt aError)
{
}      
   
Wed, 2006-08-16 05:26
Joined: 2004-05-23
Forum posts: 114
Re: Camera: Feature Not Supported
Hmm, but is your CCameraController inherit from MCameraObserver ? That the only thing I see which could go wrong. Also what happen if you just remove CamerasAvailable() ?

Wed, 2006-08-16 06:02
Joined: 2004-10-18
Forum posts: 40
Re: Camera: Feature Not Supported
Direct screen view finder is not supported in any Nokia products.
Wed, 2006-08-16 12:31
Joined: 2004-07-12
Forum posts: 123
Re: Camera: Feature Not Supported
thnax chaps...
so Janza, what mode should i use inorder to use the camera on my phone? should i use StartViewFinderBitmapsL() instead?
and since DSA is not supported in this case, does that mean that Nokia does not implement the API in all other usage cases??

regs
Thu, 2006-08-17 18:17
Joined: 2004-10-18
Forum posts: 40
Re: Camera: Feature Not Supported
Call StartViewFinderBitmapsL() and you will start receiving view finder frames as bitmap. Blit those on screen as fast as you can and there you have your view finder. DSA is implemented in Nokia devices, but is not supported by CCamera view finder. You can use DSA for displaying the bitmaps returned by CCamera view finder, but ordirany bitblt should be fast enough also.
Fri, 2006-08-18 10:06
Joined: 2004-07-12
Forum posts: 123
Re: Camera: Feature Not Supported
thnax Janza,
i have already started implementing it in that way. it is working on the emulator but did not have the time to check it yet on the device. i will do over the weekend Cheezy
cheers
  • Login to reply to this topic.