mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Clip a frame's bounds to the image bounds
This commit is contained in:
1 parent
ad80d8e7fc
commit
11c8917a4c
5 files changed
+150
-28
No files matched your search
@@ -206,10 +206,10 @@ pub func decoder.decode_frame_config!??(dst nptr base.frame_config, src base.io_
|
||||
|
||||
if args.dst != nullptr {
|
||||
args.dst.update!(bounds:this.util.make_rect_ie_u32(
|
||||
min_incl_x:this.frame_rect_x0,
|
||||
min_incl_y:this.frame_rect_y0,
|
||||
max_excl_x:this.frame_rect_x1,
|
||||
max_excl_y:this.frame_rect_y1),
|
||||
min_incl_x:this.frame_rect_x0.min(x:this.width),
|
||||
min_incl_y:this.frame_rect_y0.min(x:this.height),
|
||||
max_excl_x:this.frame_rect_x1.min(x:this.width),
|
||||
max_excl_y:this.frame_rect_y1.min(x:this.height)),
|
||||
duration:this.gc_duration,
|
||||
index:this.num_decoded_frame_configs_value,
|
||||
io_position:this.frame_config_io_position,
|
||||
|
||||
Reference in new issue
Block a user