]> git.sesse.net Git - mlt/commitdiff
Minor make/configure mods and mlt_frame_waveform mod
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 31 Aug 2004 08:29:37 +0000 (08:29 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 31 Aug 2004 08:29:37 +0000 (08:29 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@401 d19143bc-622f-0410-bfdd-b5b2a6649095

configure
src/framework/Makefile
src/framework/mlt_frame.c
src/framework/mlt_frame.h
src/modules/westley/consumer_westley.c
src/valerie/Makefile

index c238296e5651f30173500e4f01517e86c6d7fa80..e1985812fc363b90a3c622d7a1f3da0e1eb4b300 100755 (executable)
--- a/configure
+++ b/configure
@@ -55,7 +55,7 @@ function build_config
                echo "LIBDL=-ldl"
 
                echo "OPTIMISATIONS=-O4 -pipe -ffast-math -fomit-frame-pointer"
-               echo "CFLAGS+=-Wall \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE) -pthread"
+               echo "CFLAGS+=-Wall -fPIC -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE) -pthread"
        ) > config.mak
 
        echo "#!/bin/sh" > mlt-config
index 7a60973f8f001b812518483432f9a57d4a4eb377..047e4e8ccd57b0196f95e3d87a040c139b695eab 100644 (file)
@@ -20,6 +20,26 @@ OBJS = mlt_frame.o \
           mlt_pool.o \
           mlt_tokeniser.o
 
+INCS = mlt_consumer.h \
+          mlt_factory.h \
+          mlt_filter.h \
+          mlt.h \
+          mlt_multitrack.h \
+          mlt_pool.h \
+          mlt_properties.h \
+          mlt_repository.h \
+          mlt_tractor.h \
+          mlt_types.h \
+          mlt_deque.h \
+          mlt_field.h \
+          mlt_frame.h \
+          mlt_playlist.h \
+          mlt_producer.h \
+          mlt_property.h \
+          mlt_service.h  \
+          mlt_transition.h \
+          mlt_tokeniser.h
+
 SRCS := $(OBJS:.o=.c)
 
 CFLAGS += -rdynamic -DPREFIX="\"$(prefix)\""
@@ -43,26 +63,7 @@ clean:
 install:
        install -m 755 $(TARGET) $(prefix)/lib/libmlt.so
        install -d "$(prefix)/include/mlt/framework"
-       install -m 644 mlt_consumer.h \
-                       mlt_factory.h \
-                       mlt_filter.h \
-                       mlt.h \
-                       mlt_multitrack.h \
-                       mlt_pool.h \
-                       mlt_properties.h \
-                       mlt_repository.h \
-                       mlt_tractor.h \
-                       mlt_types.h \
-                       mlt_deque.h \
-                       mlt_field.h \
-                       mlt_frame.h \
-                       mlt_playlist.h \
-                       mlt_producer.h \
-                       mlt_property.h \
-                       mlt_service.h  \
-                       mlt_transition.h \
-                       mlt_tokeniser.h \
-            "$(prefix)/include/mlt/framework"
+       install -m 644 $(INCS) "$(prefix)/include/mlt/framework"
 
 ifneq ($(wildcard .depend),)
 include .depend
index 5593c6b93996a4390765e8344b3cc94bc7788319..7674633f725d5c030497b55c51af57c65fcc577c 100644 (file)
@@ -339,13 +339,14 @@ int mlt_frame_get_audio( mlt_frame this, int16_t **buffer, mlt_audio_format *for
        return 0;
 }
 
-unsigned char *mlt_frame_get_waveform( mlt_frame this, double fps, int w, int h )
+unsigned char *mlt_frame_get_waveform( mlt_frame this, int w, int h )
 {
        int16_t *pcm = NULL;
        mlt_properties properties = mlt_frame_properties( this );
        mlt_audio_format format = mlt_audio_pcm;
        int frequency = 32000; // lower frequency available?
        int channels = 2;
+       double fps = mlt_properties_get_double( properties, "fps" );
        int samples = mlt_sample_calculator( fps, frequency, mlt_frame_get_position( this ) );
        
        // Get the pcm data
index 11da681bde77f1dd4da2326a33600d54a527be88..cf86fbac04fc0f9df7c1d4289bb25f68242a20ef 100644 (file)
@@ -51,7 +51,7 @@ extern int mlt_frame_set_position( mlt_frame self, mlt_position value );
 extern int mlt_frame_get_image( mlt_frame self, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable );
 extern uint8_t *mlt_frame_get_alpha_mask( mlt_frame self );
 extern int mlt_frame_get_audio( mlt_frame self, int16_t **buffer, mlt_audio_format *format, int *frequency, int *channels, int *samples );
-extern unsigned char *mlt_frame_get_waveform( mlt_frame self, double fps, int w, int h );
+extern unsigned char *mlt_frame_get_waveform( mlt_frame self, int w, int h );
 extern int mlt_frame_push_get_image( mlt_frame self, mlt_get_image get_image );
 extern mlt_get_image mlt_frame_pop_get_image( mlt_frame self );
 extern int mlt_frame_push_frame( mlt_frame self, mlt_frame that );
index c90d584d81ee1fd7cbe8e1aa9593da5eda0b1a56..632ee4b9a165822ae3b789aaa162d4a1c87bb968 100644 (file)
@@ -280,6 +280,7 @@ static void serialise_multitrack( serialise_context context, mlt_service service
                        if ( hide )
                                xmlNewProp( track, "hide", hide == 1 ? "video" : ( hide == 2 ? "audio" : "both" ) );
                }
+               serialise_producer_filters( context, service, child );
        }
 }
 
@@ -349,6 +350,8 @@ static void serialise_playlist( serialise_context context, mlt_service service,
                                }
                        }
                }
+
+               serialise_producer_filters( context, service, child );
        }
        else if ( strcmp( (const char*) node->name, "tractor" ) != 0 )
        {
@@ -383,6 +386,7 @@ static void serialise_tractor( serialise_context context, mlt_service service, x
 
                // Recurse on connected producer
                serialise_service( context, mlt_service_producer( service ), child );
+               serialise_producer_filters( context, service, child );
        }
 }
 
index e0beb115a97c38e11d227be29b9fee565781ba9c..67b6cf7015d4818fa96e7f74e1a0c7118538abab 100644 (file)
@@ -12,6 +12,16 @@ OBJS = valerie.o \
           valerie_remote.o \
           valerie_socket.o
 
+INCS = valerie.h \
+          valerie_notifier.h \
+          valerie_parser.h \
+          valerie_remote.h \
+          valerie_response.h \
+          valerie_socket.h \
+          valerie_status.h \
+          valerie_tokeniser.h \
+          valerie_util.h
+
 SRCS := $(OBJS:.o=.c)
 
 LDFLAGS += -lpthread
@@ -33,17 +43,7 @@ clean:
 install:       all
        install -m 755 $(TARGET) $(prefix)/lib/libvalerie.so
        mkdir -p "$(prefix)/include/mlt/valerie"
-       install -m 644 \
-                       valerie.h \
-                       valerie_notifier.h \
-                       valerie_parser.h \
-                       valerie_remote.h \
-                       valerie_response.h \
-                       valerie_socket.h \
-                       valerie_status.h \
-                       valerie_tokeniser.h \
-                       valerie_util.h \
-            "$(prefix)/include/mlt/valerie"
+       install -m 644 $(INCS) "$(prefix)/include/mlt/valerie"
 
 ifneq ($(wildcard .depend),)
 include .depend