Hello there

Thanks for the information

Downloaded the code, looked at the code,  found imageProviders for both .bmp
and .ppm (and  pnm formats)  and more.
The image providers for .bmp and .pnm do not seem to depend on imlib2 or
anything "extra".

Kind regards
Aman


On Fri, Feb 13, 2009 at 11:00 PM, Niels Roest <[email protected]> wrote:

> Good question.
> I just found out that Imlib2 is actually supported by an 'extra' package of
> DirectFB.
> You can download DirectFB-extra via the homepage, or simply use this link:
> http://www.directfb.org/index.php?path=Main%2FDownloads&page=1
>
> You need to make sure that the DirectFB-imlib library is installed
> alongside the jpeg and gif libraries, but the configure process should take
> care of that. And make sure you have imlib2 installed of course.
>
> Greets
> Niels
>
> aman aggarwal wrote:
>
>> 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] <mailto:
>> [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] <mailto:[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
>>
>>
>
>
> --
>
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"
>



-- 
wah wah
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to