Skip to content

Commit

Permalink
Merge pull request #239 from zeux/nooutput
Browse files Browse the repository at this point in the history
Disable read/wrote output when status output is off
  • Loading branch information
richgel999 authored Jun 15, 2021
2 parents ba1c3e4 + 94d8efb commit 46a441a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions encoder/basisu_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ namespace basisu
return false;
}

printf("Read source image \"%s\", %ux%u\n", pSource_filename, file_image.get_width(), file_image.get_height());
if (m_params.m_status_output)
{
printf("Read source image \"%s\", %ux%u\n", pSource_filename, file_image.get_width(), file_image.get_height());
}

// Optionally load another image and put a grayscale version of it into the alpha channel.
if ((source_file_index < m_params.m_source_alpha_filenames.size()) && (m_params.m_source_alpha_filenames[source_file_index].size()))
Expand Down Expand Up @@ -1427,7 +1430,10 @@ namespace basisu
return false;
}

printf("Wrote output .basis/.ktx2 file \"%s\"\n", output_filename.c_str());
if (m_params.m_status_output)
{
printf("Wrote output .basis/.ktx2 file \"%s\"\n", output_filename.c_str());
}
}

size_t comp_size = 0;
Expand Down

0 comments on commit 46a441a

Please sign in to comment.