fix bokeh fx artifacts
This commit is contained in:
parent
51b067b19b
commit
2e99a39aad
3 changed files with 9 additions and 5 deletions
|
@ -232,11 +232,12 @@ void Iwa_BokehAdvancedFx::doCompute(TTile& tile, double frame,
|
||||||
|
|
||||||
// compute the input tiles
|
// compute the input tiles
|
||||||
QMap<int, TTile*> sourceTiles;
|
QMap<int, TTile*> sourceTiles;
|
||||||
|
TRenderSettings infoOnInput(settings);
|
||||||
|
infoOnInput.m_bpp = 64;
|
||||||
for (auto index : sourceIndices) {
|
for (auto index : sourceIndices) {
|
||||||
TTile* layerTile = new TTile();
|
TTile* layerTile = new TTile();
|
||||||
m_layerParams[index].m_source->allocateAndCompute(
|
m_layerParams[index].m_source->allocateAndCompute(
|
||||||
*layerTile, _rectOut.getP00(), dimOut, tile.getRaster(), frame,
|
*layerTile, _rectOut.getP00(), dimOut, 0, frame, infoOnInput);
|
||||||
settings);
|
|
||||||
sourceTiles[index] = layerTile;
|
sourceTiles[index] = layerTile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -136,11 +136,12 @@ void Iwa_BokehFx::doCompute(TTile& tile, double frame,
|
||||||
//----------------------------
|
//----------------------------
|
||||||
// Compute the input tiles first
|
// Compute the input tiles first
|
||||||
QMap<int, TTile*> sourceTiles;
|
QMap<int, TTile*> sourceTiles;
|
||||||
|
TRenderSettings infoOnInput(settings);
|
||||||
|
infoOnInput.m_bpp = 64;
|
||||||
for (auto index : sourceIndices) {
|
for (auto index : sourceIndices) {
|
||||||
TTile* layerTile = new TTile();
|
TTile* layerTile = new TTile();
|
||||||
m_layerParams[index].m_source->allocateAndCompute(
|
m_layerParams[index].m_source->allocateAndCompute(
|
||||||
*layerTile, _rectOut.getP00(), dimOut, tile.getRaster(), frame,
|
*layerTile, _rectOut.getP00(), dimOut, 0, frame, infoOnInput);
|
||||||
settings);
|
|
||||||
sourceTiles[index] = layerTile;
|
sourceTiles[index] = layerTile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -146,11 +146,13 @@ void Iwa_BokehRefFx::doCompute(TTile& tile, double frame,
|
||||||
// rasterList.append(allocateRasterAndLock<double4>(&source_buff, dimOut));
|
// rasterList.append(allocateRasterAndLock<double4>(&source_buff, dimOut));
|
||||||
|
|
||||||
LayerValue layerValue;
|
LayerValue layerValue;
|
||||||
|
TRenderSettings infoOnInput(settings);
|
||||||
|
infoOnInput.m_bpp = 64;
|
||||||
// source tile is used only in this focus.
|
// source tile is used only in this focus.
|
||||||
// normalized source image data is stored in source_buff.
|
// normalized source image data is stored in source_buff.
|
||||||
layerValue.sourceTile = new TTile();
|
layerValue.sourceTile = new TTile();
|
||||||
m_source->allocateAndCompute(*layerValue.sourceTile, rectOut.getP00(), dimOut,
|
m_source->allocateAndCompute(*layerValue.sourceTile, rectOut.getP00(), dimOut,
|
||||||
tile.getRaster(), frame, settings);
|
0, frame, infoOnInput);
|
||||||
|
|
||||||
// - - - iris image - - -
|
// - - - iris image - - -
|
||||||
// Get the original size of Iris image
|
// Get the original size of Iris image
|
||||||
|
|
Loading…
Reference in a new issue