unable to get the bitmap from video captured using FrameL()
| Sun, 2007-01-07 12:25 | |
|
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? ??i want bitmap so that i can play the captured video through CDirectScreenAccess. using bitblt. or can i play the nonbitmap(CCamera::EFormatYUV420Planar) ![]() is there is any api through which i can play the above non bitmap format? ![]() ??please help me out. Thanks in advance!!! |
|






??
Forum posts: 40
Forum posts: 21
Can u please elaborate what u want to say so that
i can try this out.
Thanks!!!!1
Forum posts: 40
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
Forum posts: 21
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?
Thanks in Advance............
Forum posts: 40
Forum posts: 12
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.
Forum posts: 40
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...
Forum posts: 12
Thanks, Janza, I'll try to find a way to deal with it.