"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/filter/pfssize.cpp" between
pfstools-2.1.0.tgz and pfstools-2.2.0.tgz

About: pfstools are a set of command line programs (and one GUI program) for reading, writing, manipulating, and viewing high-dynamic range (HDR) images and video frames (similar as the netpbm package does for low-dynamic range images).

pfssize.cpp  (pfstools-2.1.0.tgz):pfssize.cpp  (pfstools-2.2.0.tgz)
skipping to change at line 327 skipping to change at line 327
pfs::Channel *originalCh = it->getNext(); pfs::Channel *originalCh = it->getNext();
pfs::Channel *newCh = resizedFrame->createChannel( originalCh->getName() ) ; pfs::Channel *newCh = resizedFrame->createChannel( originalCh->getName() ) ;
resampleArray( originalCh, newCh, filter ); resampleArray( originalCh, newCh, filter );
} }
pfs::copyTags( frame, resizedFrame ); pfs::copyTags( frame, resizedFrame );
pfsio.writeFrame( resizedFrame, stdout ); pfsio.writeFrame( resizedFrame, stdout );
pfsio.freeFrame( frame ); pfsio.freeFrame( frame );
pfsio.freeFrame( resizedFrame );
} }
pfsio.freeFrame( resizedFrame );
delete filter; delete filter;
} }
void upsampleArray( const pfs::Array2D *in, pfs::Array2D *out, ResampleFilter *f ilter ) void upsampleArray( const pfs::Array2D *in, pfs::Array2D *out, ResampleFilter *f ilter )
{ {
float dx = (float)in->getCols() / (float)out->getCols(); float dx = (float)in->getCols() / (float)out->getCols();
float dy = (float)in->getRows() / (float)out->getRows(); float dy = (float)in->getRows() / (float)out->getRows();
float pad; float pad;
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)