> -----Ursprüngliche Nachricht----- > Von: "DVBCUT questions, discussions and announcements" > <dvbcut-user@lists.sourceforge.net> > Gesendet: 30.10.07 14:15:50 > An: discussions and announcements" <dvbcut-user@lists.sourceforge.net> > Betreff: Re: [DVBCUT-user] time stamps and other stuff... > > The export_flag logic is a little flawed anyway. The lookup table should > contain <start,stop> pairs instead of single frame numbers, and include > the implicit BOF/EOF markers if they're relevant. That is, it should > always reflect the *effective* cut list (as opposed to the GUI's event > list which may be different). Then you could perform a simple binary > search followed by a range comparision to check whether a frame is > exported or not. And in FileExport, you would simply iterate over the > array without having to deal with any special cases again and again. >
Yepp,... VERY GOOD IDEA!!! That's the way it has to be implemented! ONE cleaned list which shows clearly what has to be exported and not scanning the event list again and again at different places in the code... Sven probabely just had the time/frame display in mind when implementing the lookup table, but since the update-routine is anyhow called every time when a start/stop-item is changed or added, it's only logical to use it as central information for the export and NOT the eventlist! That way also this calculation of totalpictures is no more necessary... very nice! ciao Ralph PS: Guess we'll have Revision 100 on Helloween... ;-) -- ======================================================= Ralph Glasstetter phone 0721 359166 Rüppurrer Str. 62 email [EMAIL PROTECTED] 76137 Karlsruhe fax/voice 01212 5 107 16 958 ======================================================= _______________________________________________________________________ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ DVBCUT-user mailing list DVBCUT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-user