]> git.sesse.net Git - mlt/commitdiff
minor tidy up
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 Dec 2003 22:44:29 +0000 (22:44 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 Dec 2003 22:44:29 +0000 (22:44 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@11 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt/src/modules/Makefile
mlt/src/modules/dv/producer_libdv.c
mlt/src/tests/charlie.c
src/modules/Makefile
src/modules/dv/producer_libdv.c
src/tests/charlie.c

index 9cd51a41c2f7ff2a7465d37882af36e02ab8a07e..7d512493fd4a6098575a0925bd5d586d29b0df81 100644 (file)
@@ -3,15 +3,17 @@ SUBDIRS = core gtk2 dv sdl mainconcept bluefish
 all clean depend install:
        list='$(SUBDIRS)'; \
        for subdir in $$list; do \
-               if [ -d $$subdir ] ; \
-                       then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+               if [ -f $$subdir/Makefile ] ; \
+               then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
                fi \
        done
 
 dist-clean:
-       rm -f consumers.dat filters.dat producers.dat transitions.dat; \
+       rm -f consumers.dat filters.dat producers.dat transitions.dat *.so; \
        list='$(SUBDIRS)'; \
        for subdir in $$list; do \
-               [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+               if [ -f $$subdir/Makefile ] ; \
+               then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+               fi \
        done
 
index 5d2c768e7e926a2da4591ff38308941f60d4c471..2972d8a0de9f4298e3f57d84bad18c34592b2d58 100644 (file)
@@ -146,49 +146,6 @@ static int producer_collect_info( producer_libdv this )
        return valid;
 }
 
-#if 0
-static int mc_producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable )
-{
-       // Get the frames properties
-       mlt_properties properties = mlt_frame_properties( this );
-
-       // Get the dv data
-       uint8_t *dv_data = mlt_properties_get_data( properties, "dv_data", NULL );
-
-       // Determine bytes in frame
-       int bytes_in_frame = dv_data[ 3 ] & 0x80 ? frame_size_625_50 : frame_size_525_60;
-
-       // Assign width and height from properties
-       *width = mlt_properties_get_int( properties, "width" );
-       *height = mlt_properties_get_int( properties, "height" );
-
-       if ( *format == mlt_image_yuv422 )
-       {
-               // Allocate image
-               *buffer = malloc( *width * *height * 2 );
-
-               // Decompress
-               DecompressBuffer_DV( dv_data, bytes_in_frame, *buffer, *width * 2, *width, *height, 0, FOURCC_YUYV, 0, NULL );
-
-               // Set the image on the properties
-               mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, free, NULL );
-       }
-       else
-       {
-               // Allocate image
-               *buffer = malloc( *width * *height * 3 );
-
-               // Decompress
-               DecompressBuffer_DV( dv_data, bytes_in_frame, *buffer, *width * 3, *width, *height, 0, FOURCC_R24C, 0, NULL );
-
-               // Set the image on the properties
-               mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, free, NULL );
-       }
-
-       return 0;
-}
-#endif
-
 static int producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable )
 {
        int pitches[3] = { 0, 0, 0 };
index 12a45b2c61854e32e65365a1d9e01ddec998b7e8..2d427345178134161846671a9a08e641f4dcaaa9 100644 (file)
@@ -1,12 +1,4 @@
-#include <framework/mlt_factory.h>
-
-#include <framework/mlt_producer.h>
-#include <framework/mlt_consumer.h>
-#include <framework/mlt_filter.h>
-#include <framework/mlt_tractor.h>
-#include <framework/mlt_transition.h>
-#include <framework/mlt_multitrack.h>
-
+#include <framework/mlt.h>
 #include <stdio.h>
 
 int main( int argc, char **argv )
index 9cd51a41c2f7ff2a7465d37882af36e02ab8a07e..7d512493fd4a6098575a0925bd5d586d29b0df81 100644 (file)
@@ -3,15 +3,17 @@ SUBDIRS = core gtk2 dv sdl mainconcept bluefish
 all clean depend install:
        list='$(SUBDIRS)'; \
        for subdir in $$list; do \
-               if [ -d $$subdir ] ; \
-                       then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+               if [ -f $$subdir/Makefile ] ; \
+               then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
                fi \
        done
 
 dist-clean:
-       rm -f consumers.dat filters.dat producers.dat transitions.dat; \
+       rm -f consumers.dat filters.dat producers.dat transitions.dat *.so; \
        list='$(SUBDIRS)'; \
        for subdir in $$list; do \
-               [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+               if [ -f $$subdir/Makefile ] ; \
+               then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+               fi \
        done
 
index 5d2c768e7e926a2da4591ff38308941f60d4c471..2972d8a0de9f4298e3f57d84bad18c34592b2d58 100644 (file)
@@ -146,49 +146,6 @@ static int producer_collect_info( producer_libdv this )
        return valid;
 }
 
-#if 0
-static int mc_producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable )
-{
-       // Get the frames properties
-       mlt_properties properties = mlt_frame_properties( this );
-
-       // Get the dv data
-       uint8_t *dv_data = mlt_properties_get_data( properties, "dv_data", NULL );
-
-       // Determine bytes in frame
-       int bytes_in_frame = dv_data[ 3 ] & 0x80 ? frame_size_625_50 : frame_size_525_60;
-
-       // Assign width and height from properties
-       *width = mlt_properties_get_int( properties, "width" );
-       *height = mlt_properties_get_int( properties, "height" );
-
-       if ( *format == mlt_image_yuv422 )
-       {
-               // Allocate image
-               *buffer = malloc( *width * *height * 2 );
-
-               // Decompress
-               DecompressBuffer_DV( dv_data, bytes_in_frame, *buffer, *width * 2, *width, *height, 0, FOURCC_YUYV, 0, NULL );
-
-               // Set the image on the properties
-               mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, free, NULL );
-       }
-       else
-       {
-               // Allocate image
-               *buffer = malloc( *width * *height * 3 );
-
-               // Decompress
-               DecompressBuffer_DV( dv_data, bytes_in_frame, *buffer, *width * 3, *width, *height, 0, FOURCC_R24C, 0, NULL );
-
-               // Set the image on the properties
-               mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, free, NULL );
-       }
-
-       return 0;
-}
-#endif
-
 static int producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable )
 {
        int pitches[3] = { 0, 0, 0 };
index 12a45b2c61854e32e65365a1d9e01ddec998b7e8..2d427345178134161846671a9a08e641f4dcaaa9 100644 (file)
@@ -1,12 +1,4 @@
-#include <framework/mlt_factory.h>
-
-#include <framework/mlt_producer.h>
-#include <framework/mlt_consumer.h>
-#include <framework/mlt_filter.h>
-#include <framework/mlt_tractor.h>
-#include <framework/mlt_transition.h>
-#include <framework/mlt_multitrack.h>
-
+#include <framework/mlt.h>
 #include <stdio.h>
 
 int main( int argc, char **argv )