Re: [GD-DEVEL] [proposal] Attach DIB section buffer to gdImage
| From: | Mateusz Loskot | Date: | Tue, 22 Jan 2008 14:28:25 +0000 |
| Subject: | Re: [GD-DEVEL] [proposal] Attach DIB section buffer to gdImage | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-329@lists.php.net to get a copy of this message | ||
Pierre wrote:
On Jan 22, 2008 3:12 PM, Mateusz Loskot <mateusz@loskot.net> wrote: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.Pierre wrote:Not right now besides testing it on CE :)On Jan 22, 2008 3:01 PM, Mateusz Loskot <mateusz@loskot.net> wrote: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?Pierre wrote:Fixed already :) The stride calculation was wrong. I updated the example and added a mixed usage of GD and GDI functions.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.
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