unable to get the bitmap from video captured using FrameL()

Login to reply to this topic.
Sun, 2007-01-07 12:25
Joined: 2006-11-26
Forum posts: 21
Hi All,

i m writing a application where i have use the CCamera api to capture video using StartVideoCaptureL().
I have check the video format supported by device is CCamera::EFormatYUV420Planar which i have passed in PrepareVideoCaptureL() .
This PrepareVideoCaptureL() is callled before StartVideoCaptureL().
The video captured get stored in the MFrameBufer class object through FrameBufferReady function asynchronous call.
Now when i have try to use the FrameL() function of this class to
retrieve the bitmap from the frame it leave because of frame format is not a bitmap.

can anybody can tell me that how can  i convert the captured format in the bitmap?Huh??
i want bitmap so that i can play the captured video through CDirectScreenAccess. using bitblt.

or can i play the nonbitmap(CCamera::EFormatYUV420Planar)Huh
is there is any api through which i can play the above non bitmap format?HuhHuh??

please help me out.


Thanks in advance!!!


Mon, 2007-01-08 08:04
Joined: 2004-10-18
Forum posts: 40
Re: unable to get the bitmap from video captured using FrameL()
If you need bitmap, use view finder instead of video.
Mon, 2007-01-08 10:01
Joined: 2006-11-26
Forum posts: 21
Re: unable to get the bitmap from video captured using FrameL()
Hi Janza,

Can u please elaborate what u want to say so that
i can try this out.

Thanks!!!!1
Tue, 2007-01-09 07:41
Joined: 2004-10-18
Forum posts: 40
Re: unable to get the bitmap from video captured using FrameL()
Instead of calling CCamera::StartVideoCapture() call CCamera::StartViewFinderBitmapsL() and you will receive bitmaps via MCameraObserver::ViewFinderFrameReady() call back.

Please refer to Symbian documentation about the available methods in Camera API:
http://www.symbian.com/Developer/techlib/v70sdocs/doc_source/reference/cpp/OnboardCameraRef/CCameraClass.html
Mon, 2007-01-22 10:59
Joined: 2006-11-26
Forum posts: 21
Re: unable to get the bitmap from video captured using FrameL()
Hi Janza,

Thanks for reply.It  works.
But i m not able to get the behaviour of viewFinderFrameReady.
It is just capturing a single frame at a time What should i do if
i want to do the continous capturing?Huh

Thanks in Advance............
Tue, 2007-01-23 09:42
Joined: 2004-10-18
Forum posts: 40
Re: unable to get the bitmap from video captured using FrameL()
View finder frames are capture continuously. New capture will start immediately when your application returns from ViewFinderFrameReady callback. You need to make sure that you are not blocking the execution in the callback.
Mon, 2007-09-17 02:32
Joined: 2007-09-17
Forum posts: 12
Re: unable to get the bitmap from video captured using FrameL()

Handle each frame and use bitblt to print it out to the screen for each ViewFinderFrameReady callback.

Janza, I have exactly the same question as SymbianPower's original one. The video format supported on my device is EFormatYUV420SemiPlanar and I know I can use MFrameBuffer->DataL() to get the non-bitmap raw data. The device I have supports ViewFinderDirect but not ViewFinderBitmap, and I really want to use VideoCapture to implement my app. So is there a way to transfer the non-bitmap frame to a bitmap one?

Thank you.

Mon, 2007-09-17 07:42
Joined: 2004-10-18
Forum posts: 40
Re: unable to get the bitmap from video captured using FrameL()

You need to convert the video frame to bitmap yourself. There are a lot of examples in the internet on how to do YUV->RGB conversion...

Mon, 2007-09-17 21:47
Joined: 2007-09-17
Forum posts: 12
Re: unable to get the bitmap from video captured using FrameL()

Thanks, Janza, I'll try to find a way to deal with it.

  • Login to reply to this topic.