Add a decode_frame_options type

This commit is contained in:
Nigel Tao committed 2018-09-02 15:08:00 +10:00
1 parent 8b1e023e6a
commit 555a72d7a9
10 files changed
+90 -43

No files matched your search

+2 -2
View File
@@ -234,8 +234,8 @@ pri func decoder.skip_frame!??(src base.io_reader) {
this.reset_gc!()
}
// TODO: honor pixbuf_origin_x and pixbuf_origin_y args.
pub func decoder.decode_frame!??(dst ptr base.pixel_buffer, pixbuf_origin_x base.u32, pixbuf_origin_y base.u32, src base.io_reader, work_buffer slice base.u8) {
// TODO: honor args.opts.
pub func decoder.decode_frame!??(dst ptr base.pixel_buffer, src base.io_reader, work_buffer slice base.u8, opts nptr base.decode_frame_options) {
if args.work_buffer.length() != (this.width as base.u64) {
return status "?bad work buffer length"
}