andelf / andelf/tinygif

[feature request] `from_iter` constructor

Đang mở
#3 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
29
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

I'll probably take a look at this myself, creating an issue first incase you can point out it's impossible or any pitfalls.

What I'm after is a `from_iter`, similar to `from_slice` but it'd get given an iter which returns `u8`s instead of a u8 array.
(I'm reading GIF files off of an SD card & the GIFs can be too large for a full one to fit in memory).

It'd pull the headers etc from the input iter, store them same as what happens with the `from_slice`.
I think it it'd need to return `frames` as an iterator over `frame` & would only be able to do 1 loop (since the input iter will get consumed), but other than that I'm not seeing any major issues

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.