korlibs / korlibs/korge

Update ImageFormat.decode with an optional Bitmap `out` parameter

Open
#803 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

To avoid allocating another Bitmap if we already have one that can be used.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the ImageFormat.decode entry point and its Bitmap handling, then inspect any existing tests for image decoding. Add support for an optional Bitmap out parameter and verify that a suitable supplied Bitmap can be used without an extra allocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
performance
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.