fix bokeh fx artifacts

This commit is contained in:
shun-iwasawa 2021-08-19 17:01:16 +09:00 committed by manongjohn
parent 51b067b19b
commit 2e99a39aad
3 changed files with 9 additions and 5 deletions

View file

@ -232,11 +232,12 @@ void Iwa_BokehAdvancedFx::doCompute(TTile& tile, double frame,
// compute the input tiles
QMap<int, TTile*> sourceTiles;
TRenderSettings infoOnInput(settings);
infoOnInput.m_bpp = 64;
for (auto index : sourceIndices) {
TTile* layerTile = new TTile();
m_layerParams[index].m_source->allocateAndCompute(
*layerTile, _rectOut.getP00(), dimOut, tile.getRaster(), frame,
settings);
*layerTile, _rectOut.getP00(), dimOut, 0, frame, infoOnInput);
sourceTiles[index] = layerTile;
}

View file

@ -136,11 +136,12 @@ void Iwa_BokehFx::doCompute(TTile& tile, double frame,
//----------------------------
// Compute the input tiles first
QMap<int, TTile*> sourceTiles;
TRenderSettings infoOnInput(settings);
infoOnInput.m_bpp = 64;
for (auto index : sourceIndices) {
TTile* layerTile = new TTile();
m_layerParams[index].m_source->allocateAndCompute(
*layerTile, _rectOut.getP00(), dimOut, tile.getRaster(), frame,
settings);
*layerTile, _rectOut.getP00(), dimOut, 0, frame, infoOnInput);
sourceTiles[index] = layerTile;
}

View file

@ -146,11 +146,13 @@ void Iwa_BokehRefFx::doCompute(TTile& tile, double frame,
// rasterList.append(allocateRasterAndLock<double4>(&source_buff, dimOut));
LayerValue layerValue;
TRenderSettings infoOnInput(settings);
infoOnInput.m_bpp = 64;
// source tile is used only in this focus.
// normalized source image data is stored in source_buff.
layerValue.sourceTile = new TTile();
m_source->allocateAndCompute(*layerValue.sourceTile, rectOut.getP00(), dimOut,
tile.getRaster(), frame, settings);
0, frame, infoOnInput);
// - - - iris image - - -
// Get the original size of Iris image