X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flistimporter.cpp;h=7dcd277d78ec194ec2def2719890f40821493b9b;hb=6063c6a017d00a2572b6691b055ba22b7de2991e;hp=d32fbc84252de09645f90bf8c661813bba89d9f6;hpb=e8a065f2385c219c511b57dac52786120bfa097d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/listimporter.cpp b/synfig-core/trunk/src/synfig/listimporter.cpp index d32fbc8..7dcd277 100644 --- a/synfig-core/trunk/src/synfig/listimporter.cpp +++ b/synfig-core/trunk/src/synfig/listimporter.cpp @@ -2,7 +2,7 @@ /*! \file listimporter.cpp ** \brief Template File ** -** $Id: listimporter.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -98,18 +98,18 @@ ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb) // DEBUGPOINT(); int frame=static_cast(time*fps); // DEBUGPOINT(); - + if(!filename_list.size()) { if(cb)cb->error(_("No images in list")); else synfig::error(_("No images in list")); return false; } - + // DEBUGPOINT(); if(frame<0)frame=0; if(frame>=(signed)filename_list.size())frame=filename_list.size()-1; - + // DEBUGPOINT(); // See if that frame is cached std::list >::iterator iter; @@ -122,9 +122,9 @@ ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb) return static_cast(surface); } } - + Importer::Handle importer(Importer::open(filename_list[frame])); - + // DEBUGPOINT(); if(!importer) @@ -133,7 +133,7 @@ ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb) else synfig::error(_("Unable to open ")+filename_list[frame]); return false; } - + // DEBUGPOINT(); if(!importer->get_frame(surface,0,cb)) @@ -142,7 +142,7 @@ ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb) else synfig::error(_("Unable to get frame from ")+filename_list[frame]); return false; } - + // DEBUGPOINT(); if(frame_cache.size()>=LIST_IMPORTER_CACHE_SIZE) @@ -150,7 +150,7 @@ ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb) // DEBUGPOINT(); - frame_cache.push_back(std::pair(frame,surface)); + frame_cache.push_back(std::pair(frame,surface)); // DEBUGPOINT();