ATOM-15086 Image Pipeline Unexpectedly Pre-Multiplying Alpha into Color Channels (#5358)

Applied the discard alpha in the begining of converting.

Also deleted some unused processing settings and steps.

Signed-off-by: Qing Tao <55564570+VickyAtAZ@users.noreply.github.com>
This commit is contained in:
Qing Tao
2021-11-05 10:20:21 -07:00
committed by GitHub
parent 6a21d4f50d
commit f8f9fb96d1
17 changed files with 57 additions and 813 deletions
@@ -108,17 +108,14 @@ namespace ImageProcessingAtom
}
IImageObjectPtr outputImage = m_process->GetOutputImage();
IImageObjectPtr outputImageAlpha = m_process->GetOutputAlphaImage();
m_output->SetOutputImage(outputImage, ImageConvertOutput::Base);
m_output->SetOutputImage(outputImageAlpha, ImageConvertOutput::Alpha);
if (!IsJobCancelled())
{
// For preview, combine image output with alpha if any
m_output->SetProgress(1.0f / static_cast<float>(m_previewProcessStep));
IImageObjectPtr combinedImage = MergeOutputImageForPreview(outputImage, outputImageAlpha);
m_output->SetOutputImage(combinedImage, ImageConvertOutput::Preview);
m_output->SetOutputImage(outputImage, ImageConvertOutput::Preview);
}
m_output->SetReady(true);