diff edl.h @ 13168:ce046ef860da

EDL enhancement/fixes: *Some edl's code moved from mplayer.c to edl.c (mencoder will use the same functions) * slighty faster * removed MAX_EDL_ENTRIES limit (just reserve the memory we really need) * really treat edl_records as a linked list (coz it is) * edl now 'remembers' pending operations after a manual _seek_ * better way of handling Mute/Umute eliminates some nasty bugs when manual seeking (scrwed up mute/unmute order, no audio after seek, etc) * seeking while on -edl mode now _WORKS_ Patch by Reynaldo H. Verdejo Pinochet (reynaldo at opendot dot cl)
author rtognimp
date Sat, 28 Aug 2004 00:46:05 +0000
parents 41a21058e658
children 567875b88aab
line wrap: on
line diff
--- a/edl.h	Fri Aug 27 21:20:16 2004 +0000
+++ b/edl.h	Sat Aug 28 00:46:05 2004 +0000
@@ -1,12 +1,13 @@
-// EDL version 0.5
+// EDL version 0.6
 
 #ifndef EDLH
 #define EDLH
 
 #define EDL_SKIP 0
 #define EDL_MUTE 1
-
-#define MAX_EDL_ENTRIES 1000
+#define EDL_ERROR -1
+#define EDL_MUTE_START 1
+#define EDL_MUTE_END 0
 
 struct edl_record {
   float start_sec;
@@ -16,9 +17,17 @@
   float length_sec;
   long length_frame;
   short action;
+  short mute_state;
   struct edl_record* next;
 };
 
 typedef struct edl_record* edl_record_ptr;
 
+char *edl_filename; // file to extract edl entries from (-edl)
+char *edl_output_filename; // file to put edl entries in (-edlout)
+
+int edl_check_mode(void); // we cannot do -edl and -edlout at the same time
+int edl_count_entries(void); // returns total No of entries needed
+int edl_parse_file(edl_record_ptr edl_records); // fills edl stack
+
 #endif