Re: [GD-DEVEL] [proposal] Attach DIB section buffer to gdImage
[email protected] (Mateusz Loskot)
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Pierre wrote: > On Jan 22, 2008 3:12 PM, Mateusz Loskot <[email protected]> wrote: >> Pierre wrote: >>> On Jan 22, 2008 3:01 PM, Mateusz Loskot <[email protected]> wrote: >>>> Pierre wrote: >>>>> Hi Matteus! >>>>> >>>>> I added your function as a demo in CVS (libgd/examples). I'm also >>>>> using it to compare results with my current work on the new internal >>>>> formats. I can now give you a date for a commit of this work, end of >>>>> next week (I'm well advanced and will get some free time early next >>>>> week). >>>> Pierre, >>>> >>>> Thanks! >>>> >>>>> One little bug in my code, when you resize the images and go back to a >>>>> smaller size, it crashes. I did not have the time to debug so feel >>>>> free to commit a fix if you like. >>>> OK, I'll try to debug this problem ASAP. >>> Fixed already :) The stride calculation was wrong. I updated the >>> example and added a mixed usage of GD and GDI functions. >> Great news! >> I've not updated my copy of libgd for more than 2 weeks. >> Is there anything you want me to do with this implementation yet? > > Not right now besides testing it on CE :) Right, I'm working on quite complex application based on libgd as rendering engine, so I believe it will help me to cover the library with good tests. > I'm finishing the initial support of the new formats. The two most > important additions for you and other users are the true 8bit per > channel (alpha) and the contiguous buffer instead of per row > allocation. Looks like the new buffer will be similar to DIB pixels buffer, single row. > It will let you use a DIB/BMP (or any compatible buffer) > directly without any extra allocations or loop. Exactly, cool! > It will require a lof > tests and work to get stable enough for 2.1.x :) OK, I'll do my best to test on Windows CE. Cheers -- Mateusz Loskot http://mateusz.loskot.net