]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_service.h
Use a single AVFormatContext for non-seekable sources.
[mlt] / src / framework / mlt_service.h
index c9216c56ba0bbb75eb02fcb0dccde568f017738a..5141e445bd9c69f6e1bd3eec9516241199b4fc82 100644 (file)
@@ -1,8 +1,9 @@
 /**
  * \file mlt_service.h
  * \brief interface declaration for all service classes
+ * \see mlt_service_s
  *
- * Copyright (C) 2003-2008 Ushodaya Enterprises Limited
+ * Copyright (C) 2003-2009 Ushodaya Enterprises Limited
  * \author Charles Yates <charles.yates@pandora.be>
  *
  * This library is free software; you can redistribute it and/or
@@ -24,7 +25,7 @@
 #define _MLT_SERVICE_H_
 
 #include "mlt_properties.h"
-#include "mlt_profile.h"
+#include "mlt_types.h"
 
 /** \brief Service abstract base class
  *
  * \properties \em disable Set this on a filter to disable it while keeping it in the object model.
  * \properties \em _profile stores the mlt_profile for a service
  * \properties \em _unique_id is a unique identifier
+ * \properties \em _need_previous_next boolean that instructs producers to get
+ * preceding and following frames inside of \p mlt_service_get_frame
  */
 
 struct mlt_service_s
 {
-       struct mlt_properties_s parent; /**< \private */
+       struct mlt_properties_s parent; /**< \private A service extends properties. */
 
        /** Get a frame of data (virtual function).
         *
@@ -93,5 +96,10 @@ extern mlt_filter mlt_service_filter( mlt_service self, int index );
 extern mlt_profile mlt_service_profile( mlt_service self );
 extern void mlt_service_close( mlt_service self );
 
+extern void mlt_service_cache_put( mlt_service self, const char *name, void* data, int size, mlt_destructor destructor );
+extern mlt_cache_item mlt_service_cache_get( mlt_service self, const char *name );
+extern void mlt_service_cache_set_size( mlt_service self, const char *name, int size );
+extern void mlt_service_cache_purge( mlt_service self );
+
 #endif