Skip to content

Fix up thumbnailer sample programs#24

Merged
Wunkolo merged 5 commits into
Wunkolo:mainfrom
cromachina:main
May 9, 2026
Merged

Fix up thumbnailer sample programs#24
Wunkolo merged 5 commits into
Wunkolo:mainfrom
cromachina:main

Conversation

@cromachina

Copy link
Copy Markdown
Contributor

Addresses #23

Tested on Linux with Sai1 and Sai2 files.

Comment thread samples/Thumbnail-Sai1.cpp Outdated
"\tThumbnail (filename) (output)\n"
"\tWunkolo - Wunkolo@gmail.com";

void bgraToRgba(std::byte* Pixels, std::size_t PixelCount)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use an std::span<std::byte> here as the only argument. Also maybe ConvertBGRA8ToRGBA8 for the function name.

Comment thread samples/Thumbnail-Sai2.cpp Outdated
continue;
}
const std::uintmax_t FileSize = std::filesystem::file_size(FilePath);
std::printf("Input and output paths required.\n");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be std::puts since it's not doing any actual formatting.

@Wunkolo

Wunkolo commented May 9, 2026

Copy link
Copy Markdown
Owner

No need to worry about any build issues on the macos-build -check but do ensure that both the Linux and Windows ones work!

@cromachina

Copy link
Copy Markdown
Contributor Author

Oops, I accidentally committed my local flake file, reverting that.

@Wunkolo

Wunkolo commented May 9, 2026

Copy link
Copy Markdown
Owner

Looks good to me! This closes #23

@Wunkolo
Wunkolo merged commit ecd0762 into Wunkolo:main May 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants