Results 1 to 2 of 2

Thread: No image format 24 bit RGB?

  1. #1
    Junior Member
    Join Date
    Sep 2008

    No image format 24 bit RGB?


    is it possible to have an OpenVG image in format VG_lRGB_888? The spec doesn't mention this format. EGL offers a configuration with 24 bit EGL_BUFFER_SIZE and without alpha channel. How can I use it with OpenVG?


  2. #2
    Senior Member
    Join Date
    Feb 2006

    Re: No image format 24 bit RGB?

    There is no enumeration in the spec for a 24-bit format type in OpenVG (only 1,8,16, and 32 bit formats). It's inconvenient, but that's how it is (though 24 bit formats are evil as they are an alignment nightmare). Use a lRGBx format (32 bit) if possible for the image format - that should work reasonably well (expect of course you'll have to do the format conversion manually for the vgImageSubData upload).

    Surfaces are separate from VGImages, and hence it is possible to request a 24-bit back buffer with EGL if one is available via the EGLConfig attributes (or other weird formats like rgb332, etc).

Similar Threads

  1. RGB image in RGBA format
    By wscrosswy in forum OpenCL
    Replies: 3
    Last Post: 06-08-2011, 08:58 AM
  2. 16bits per channel RGB Image
    By sapym in forum OpenCL
    Replies: 3
    Last Post: 07-08-2010, 04:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean