"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "rtengine/ffmanager.cc" between
rawtherapee-5.6.tar.xz and rawtherapee-5.7.tar.xz

About: RawTherapee is a powerful cross-platform raw image processing program.

ffmanager.cc  (rawtherapee-5.6.tar.xz):ffmanager.cc  (rawtherapee-5.7.tar.xz)
skipping to change at line 17 skipping to change at line 17
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* RawTherapee is distributed in the hope that it will be useful, * RawTherapee is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include "ffmanager.h" #include "ffmanager.h"
#include "../rtgui/options.h" #include "../rtgui/options.h"
#include "rawimage.h" #include "rawimage.h"
#include "imagedata.h" #include "imagedata.h"
#include "median.h" #include "median.h"
#include "utils.h" #include "utils.h"
namespace rtengine namespace rtengine
{ {
skipping to change at line 234 skipping to change at line 234
memcpy(ri->data[0], cfatmp, W * H * sizeof(float)); memcpy(ri->data[0], cfatmp, W * H * sizeof(float));
free (cfatmp); free (cfatmp);
} }
} }
// ************************* class FFManager ********************************* // ************************* class FFManager *********************************
void FFManager::init( Glib::ustring pathname ) void FFManager::init(const Glib::ustring& pathname)
{ {
if (pathname.empty()) {
return;
}
std::vector<Glib::ustring> names; std::vector<Glib::ustring> names;
auto dir = Gio::File::create_for_path (pathname); auto dir = Gio::File::create_for_path (pathname);
if (!dir || !dir->query_exists()) { if (!dir || !dir->query_exists()) {
return; return;
} }
try { try {
skipping to change at line 277 skipping to change at line 280
i.pathNames.push_back( i.pathname ); i.pathNames.push_back( i.pathname );
i.pathname.clear(); i.pathname.clear();
} }
if( settings->verbose ) { if( settings->verbose ) {
if( !i.pathname.empty() ) { if( !i.pathname.empty() ) {
printf( "%s: %s\n", i.key().c_str(), i.pathname.c_str()); printf( "%s: %s\n", i.key().c_str(), i.pathname.c_str());
} else { } else {
printf( "%s: MEAN of \n ", i.key().c_str()); printf( "%s: MEAN of \n ", i.key().c_str());
for( std::list<Glib::ustring>::iterator iter = i.pathNames.begin for(std::list<Glib::ustring>::iterator path = i.pathNames.begin(
(); iter != i.pathNames.end(); ++iter ) { ); path != i.pathNames.end(); ++path) {
printf( "%s, ", iter->c_str() ); printf("%s, ", path->c_str());
} }
printf("\n"); printf("\n");
} }
} }
} }
currentPath = pathname; currentPath = pathname;
return; return;
} }
 End of changes. 4 change blocks. 
5 lines changed or deleted 8 lines changed or added

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