How to convert YUV format to bitmap format

Login to reply to this topic.
Mon, 2007-09-17 02:16
Joined: 2007-09-17
Forum posts: 12

Hi,

I want to use StartVideoCapture() on SonyE P990i and EFormatYUV420SemiPlanar is the
supported video format. On FrameBufferReady() callback, I can get a MFrameBuffer and a
TDesC8 pointer for the non-bitmap frame.

So here's my question, is there a way to convert the non-bitmap frame to a bitmap so i can print it out to the
device screen using CFbsBitGc->BitBlt()? Or there's a better way to handle the YUV format data and transfer it to the screen?

Any suggestion is appreciated.


Sun, 2008-03-23 18:00
Joined: 2007-08-25
Forum posts: 8
Re: How to convert YUV format to bitmap format

How do you get any data ?
I get 115200 bytes for the first frame and 0 for the rest.
I am using MCameraObserve2 so i wait in VideoBufferReady.
If you could pot some source code i would appreciate it.

Regarding yout question, if you want to process the video there are some 3'rd party libraries to convert from YUV to a bitmap. If you just want to have a viewfinder , P990 support StartViewFinderDirectL, like in the example : MyP990Camera

Sun, 2008-03-23 21:33
Joined: 2007-08-25
Forum posts: 8
Re: How to convert YUV format to bitmap format

Never Mind Laughing out loud
I found the problme, the documentation and example program was missleading.
I was using aFrameBuffer->DataL(aCameraBuffer.iIndexOfFirstFrameInBuffer) instead of aFrameBuffer->DataL(0)

Sun, 2008-03-23 21:33
Joined: 2007-08-25
Forum posts: 8
Re: How to convert YUV format to bitmap format

Never Mind Laughing out loud
I found the problme, the documentation and example program was missleading.
I was using aFrameBuffer->DataL(aCameraBuffer.iIndexOfFirstFrameInBuffer) instead of aFrameBuffer->DataL(0)

Tue, 2008-03-25 09:33
Joined: 2005-05-06
Forum posts: 5
Re: How to convert YUV format to bitmap format

Did you find any way to convert video frames buffer (MCameraBuffer) to RGB format?? I am looking for a solution and it would be great if you could help me out.

Thanks,
Shivam

Thu, 2008-03-27 15:57
Joined: 2007-08-25
Forum posts: 8
Re: How to convert YUV format to bitmap format
  • Login to reply to this topic.