Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • If we could create an SV which pointed at memory not managed by perl, we could create one which pointed at Imager's internal image representation, and match against that. But I don't know of a way to do that.

    Another option could be to use the getsamples() method to fetch each scanline of the image. This won't avoid the basic overhead of copying, but it will avoid the overhead of Imager's I/O abstraction.

    A final option could be XS that either used i_gsamp() or the image's internal representation to perform the search, since Imager::Search::Driver::* only seem to use regexps to handle line skipping, there's no handling of partial matches, eg. using 0 in the alpha channel to indicate not checking against that pixel.

    Of course, I suppose could get off my tail and do any of these...