Page MenuHome

Fix T70356: ImBuf upscaling fails if original width or height are 1
AbandonedPublic

Authored by Jesse Yurkovich (deadpin) on Apr 19 2021, 2:36 AM.

Details

Reviewers
None
Summary

Handle the case of incorrectly upscaling images when the original width or height are 1 by calculating the correct pixel offsets as necessary.

The bug will manifest itself as an ASAN failure as per T70356 or an incorrect result like what might be shown in the File Browser's thumbnail view:

[Before]

[After]

Diff Detail

Repository
rB Blender
Branch
fixT70356 (branched from master)
Build Status
Buildable 14094
Build 14094: arc lint + arc unit

Event Timeline

Jesse Yurkovich (deadpin) requested review of this revision.Apr 19 2021, 2:36 AM
Jesse Yurkovich (deadpin) created this revision.
Jesse Yurkovich (deadpin) edited the summary of this revision. (Show Details)

A different fix was committed.