Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update astc_blend_test utility #479

Merged
merged 3 commits into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Utils/astc_blend_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// ----------------------------------------------------------------------------
// Copyright 2021 Arm Limited
// Copyright 2021-2024 Arm Limited
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
Expand Down Expand Up @@ -110,7 +110,7 @@ int main(int argc, char **argv)
}
else if (!strcmp(argv[5], "off"))
{
use_filter == false;
use_filter = false;
}
else
{
Expand All @@ -136,7 +136,7 @@ int main(int argc, char **argv)
exit(1);
}

// For each pixel apply RGBM encoding
// For each pixel blending and filtering
if (!use_filter)
{
for (int y = 0; y < dim_y; y++)
Expand All @@ -161,9 +161,9 @@ int main(int argc, char **argv)
b_src = srgb_to_linear(b_src);
}

float r_dst = 0.8f;
float g_dst = 1.0f;
float b_dst = 0.8f;
float r_dst = 0.53f;
float g_dst = 0.53f;
float b_dst = 0.53f;

float r_out;
float g_out;
Expand Down