mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Rename work_buffer_size to workbuf_len
This commit is contained in:
1 parent
ca940b0c56
commit
fbbdc412d1
8 files changed
+95
-104
No files matched your search
@@ -148,8 +148,8 @@ pub func decoder.decode_image_config!??(dst nptr base.image_config, src base.io_
|
||||
pixsub:0,
|
||||
width:this.width,
|
||||
height:this.height,
|
||||
work_buffer_size0:this.width as base.u64,
|
||||
work_buffer_size1:this.width as base.u64,
|
||||
workbuf_len0:this.width as base.u64,
|
||||
workbuf_len1:this.width as base.u64,
|
||||
num_loops:num_loops,
|
||||
first_frame_io_position:this.frame_config_io_position,
|
||||
first_frame_is_opaque:ffio)
|
||||
@@ -166,7 +166,7 @@ pub func decoder.num_decoded_frames() base.u64 {
|
||||
return this.num_decoded_frames_value
|
||||
}
|
||||
|
||||
pub func decoder.work_buffer_size() base.range_ii_u64 {
|
||||
pub func decoder.workbuf_len() base.range_ii_u64 {
|
||||
return this.util.make_range_ii_u64(min_incl:0, max_incl:0)
|
||||
}
|
||||
|
||||
@@ -236,9 +236,9 @@ pri func decoder.skip_frame!??(src base.io_reader) {
|
||||
}
|
||||
|
||||
// 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"
|
||||
pub func decoder.decode_frame!??(dst ptr base.pixel_buffer, src base.io_reader, workbuf slice base.u8, opts nptr base.decode_frame_options) {
|
||||
if args.workbuf.length() != (this.width as base.u64) {
|
||||
return status "?bad workbuf length"
|
||||
}
|
||||
if this.call_sequence != 2 {
|
||||
this.decode_frame_config!??(dst:nullptr, src:args.src)
|
||||
|
||||
Reference in new issue
Block a user