Hello Niels,

Thanks a lot  for the information.

I guess the answer remains same for .bmp file.


I read in  an old document  on directfb :

*1.2.6 Image Loading
DirectFB includes image providers, which allow loading of the following
image formats
directly into DirectFB surfaces:
• JPEG (using libjpeg)
• PNG (using libpng2)
• GIF (integrated, no library required)
• various other image formats (using Imlib2)*

Do you have any info about the image formats supported through lmlib2?

tia

Aman


On Wed, Feb 11, 2009 at 7:40 PM, Niels Roest <[email protected]> wrote:

> Hello Aman.
>
> Writing a ppm is always going to be easier than reading ;)
>
> You need to write your own provider.
> I suggest to take an existing one, copy it and adapt it, e.g. gif. So you'd
> extend Makefile.am, copy the idirectfbimageprovider_gif.c to ..._ppm.c for
> instance, and replace the content with your own.
>
> Documentation for IDirectFBImageProvider <
> http://www.directfb.org/docs/DirectFB_Reference_1_3/IDirectFBImageProvider.html>
> is on the website of DirectFB, check
> http://www.directfb.org/docs/DirectFB_Reference_1_3/index.html for
> instance. Note that you will provide a Constructor too, and I think you can
> omit WriteBack without repercussions; but the code should be clear too.
>
> hth
> Niels
>
> aman aggarwal wrote:
>
>> Hi there!!
>>
>> I am trying to display  a .PPM image file using DirectFB, but it fails to
>> create a provider.
>> Any suggestions , how can this be done.
>>
>> Directfb  surface dump function  generates PPM files.
>> So, it does seem it should not be so difficult to write a simple image
>> provider.
>>
>> I am new to directfb, please point to documentation on writing an
>> imageprovider, if any.
>>
>>
>> Kind regards
>>
>> lucky mojo
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> directfb-users mailing list
>> [email protected]
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>>
>>
>
>
> --
>
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"
>



-- 
wah wah


Sent from: Seoul Seoul South Korea.
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to