Skip to content

Commit 014d5e7

Browse files
author
mfe
committed
CTL : Remove useless intermediate variables
1 parent 30ec889 commit 014d5e7

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

plugins/image/process/color/CTL/src/CTLProcess.tcc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ template<class View>
172172
void CTLProcess<View>::multiThreadProcessImages( const OfxRectI& procWindowRoW )
173173
{
174174
using namespace boost::gil;
175-
const OfxRectI procWindowOutput = this->translateRoWToOutputClipCoordinates( procWindowRoW );
176-
const OfxRectI procWindowSrc = translateRegion( procWindowRoW, this->_srcPixelRod );
177-
175+
178176
Ctl::FunctionCallPtr call = _interpreter.newFunctionCall( "main" );
179177

180178
const OfxPointI procWindowSize = {
@@ -187,12 +185,12 @@ void CTLProcess<View>::multiThreadProcessImages( const OfxRectI& procWindowRoW )
187185
rgba32f_planar_image_t dstWorkLine( procWindowSize.x, 1, alignment );
188186
rgba32f_planar_view_t dstWorkLineV = view( dstWorkLine );
189187

190-
for( int y = procWindowOutput.y1;
191-
y < procWindowOutput.y2;
188+
for( int y = procWindowRoW.y1;
189+
y < procWindowRoW.y2;
192190
++y )
193191
{
194-
View srcLineV = subimage_view( this->_srcView, procWindowSrc.x1, y, procWindowSize.x, 1 );
195-
View dstLineV = subimage_view( this->_dstView, procWindowOutput.x1, y, procWindowSize.x, 1 );
192+
View srcLineV = subimage_view( this->_srcView, procWindowRoW.x1, y, procWindowSize.x, 1 );
193+
View dstLineV = subimage_view( this->_dstView, procWindowRoW.x1, y, procWindowSize.x, 1 );
196194

197195
copy_pixels( srcLineV, srcWorkLineV );
198196

0 commit comments

Comments
 (0)