Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2010

    converting from descriptor to Bitmap

    hi all
    am developing a live video client
    i use the VRex example

    now i convert the frames to descriptor to send it to the RTP session

    void CVideoViewFinder::FrameBufferReady(MFrameBuffer* aFrameBuffer, TInt /*aError*/)
    TDesC8 &aData=aFrameBuffer->DataL(0);

    //error handling

    I want to know how to convert feom descriptor to a bitmap frame...to revrse the operation

    any one can help me in this?


  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: converting from descriptor to Bitmap

    You typically have an YUV frame, the actual format depends on your choice in PrepareVideoCaptureL. For a quick experiment you can use the Y channel as a grayscale image (CFbsBitmap::Create a properly sized image with EGray256 display mode, LockHeap it, copy the contents of your descriptor to its DataAddress, UnlockHeap, and you can display the image).
    For colours you have to do the conversion manually - at least as I know. For example Wikipedia shows an algorithm for converting between YUV and RGB colour spaces (as far as I remember, the Wiki contains conversion for the other direction only).

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Tampere, Finland

    Re: converting from descriptor to Bitmap

    Hi eng.mohamed, I like your thinking
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  2. [split] mbm build error
    By mando222 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2009-03-29, 12:32
  3. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  4. How can I reverse the color in the screen?
    By sanmu163 in forum Symbian User Interface
    Replies: 11
    Last Post: 2006-08-18, 08:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts