dcv icon indicating copy to clipboard operation
dcv copied to clipboard

imwrite should accept lazy slice

Open 9il opened this issue 9 years ago • 0 comments

  • lazy image / image with sride!1 != 1 -> buffering (4 KB buffer) -> writer stream
  • image with srride!1 == 1 -> writer stream
  • image with ideal strides -> writer stream (single call).

For example void write_png(Writer stream, long w, long h, in ubyte[] data, long tgt_chans = 0) from image formats can be used.

9il avatar Oct 02 '16 14:10 9il