]> git.sesse.net Git - mlt/commitdiff
Minor tweaks
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 7 Jun 2004 18:48:47 +0000 (18:48 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 7 Jun 2004 18:48:47 +0000 (18:48 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@321 d19143bc-622f-0410-bfdd-b5b2a6649095

src/framework/mlt_consumer.c
src/modules/core/producer_colour.c
src/modules/core/producer_noise.c
src/modules/fezzik.ini
src/modules/gtk2/producer_pixbuf.c
src/tests/charlie.c

index 2837c4cc11a99798570b84382070c7f05f18a5aa..edea67eaa2f499280666a1e1e5c131efc649cebb 100644 (file)
@@ -327,9 +327,6 @@ static void *consumer_read_ahead_thread( void *arg )
                        if ( !video_off )
                                mlt_frame_get_image( frame, &image, &this->format, &width, &height, 0 );
                        mlt_properties_set_int( mlt_frame_properties( frame ), "rendered", 1 );
-
-                       // Reset the skipped count
-                       skipped = 0;
                }
                else
                {
@@ -338,7 +335,7 @@ static void *consumer_read_ahead_thread( void *arg )
                        skip_next = 0;
 
                        // If we've reached an unacceptable level, reset everything
-                       if ( skipped > 10 )
+                       if ( skipped > 5 )
                        {
                                skipped = 0;
                                time_frame = 0;
index bee525adf81eb9a386c0f8e63abc91fb2792d0ee..ecd9a3ff3b208270f771922cc87660717060f797 100644 (file)
@@ -185,6 +185,9 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
                // Obtain properties of producer
                mlt_properties producer_props = mlt_producer_properties( producer );
 
+               // Determine if we're producing PAL or NTSC
+               int is_pal = mlt_properties_get_double( producer_props, "fps" ) == 25.0;
+
                // Set the producer on the frame properties
                mlt_properties_set_data( properties, "producer_colour", producer, 0, NULL, NULL );
 
@@ -193,10 +196,9 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
 
                // Set producer-specific frame properties
                mlt_properties_set_int( properties, "progressive", 1 );
-               mlt_properties_set_int( properties, "aspect_ratio", 1 );
+               mlt_properties_set_double( properties, "aspect_ratio", is_pal ? 128.0/117.0 : 72.0/79.0 );
 
                // colour is an alias for resource
-               // CY: Do we really need this?
                if ( mlt_properties_get( producer_props, "colour" ) != NULL )
                        mlt_properties_set( producer_props, "resource", mlt_properties_get( producer_props, "colour" ) );
                
index f4c63a4cccada4afb92432a0ccb872f8763f0d86..fe86075bfca7d5b5685f55e7ff8549f9b8584e9c 100644 (file)
@@ -149,8 +149,14 @@ static int producer_get_frame( mlt_producer this, mlt_frame_ptr frame, int index
                // Obtain properties of frame
                mlt_properties properties = mlt_frame_properties( *frame );
 
+               // Obtain properties of producer
+               mlt_properties producer_props = mlt_producer_properties( this );
+
+               // Determine if we're producing PAL or NTSC
+               int is_pal = mlt_properties_get_double( producer_props, "fps" ) == 25.0;
+
                // Aspect ratio is 1?
-               mlt_properties_set_double( properties, "aspect_ratio", 1.0 );
+               mlt_properties_set_double( properties, "aspect_ratio", is_pal ? 128.0/117.0 : 72.0/79.0 );
 
                // Set producer-specific frame properties
                mlt_properties_set_int( properties, "progressive", 1 );
index 554285c4a8b90e5f8e4c29310f1b163d641269cf..51bf74ed35b10d2863d4081106fc9800d6e890b3 100644 (file)
@@ -6,7 +6,7 @@
 # The names of the services on the right dictate the preference used (if unavailable
 # the second and third are applied as applicable).
 
-deinterlace=avdeinterlace
+deinterlace=deinterlace,avdeinterlace
 rescaler=mcrescale,gtkrescale,rescale
 resizer=resize
 resampler=soxresample,avresample,resample
index 2345145251a9bdf46e9b8c667ce4e47cfd2016b6..95cae13ade88d59a3322b3d80a086b4b75a5d378 100644 (file)
@@ -164,7 +164,7 @@ static void refresh_image( mlt_frame frame, int width, int height )
 
                // Note - the original pixbuf is already safe and ready for destruction
                pixbuf = gdk_pixbuf_scale_simple( pixbuf, width, height, interp );
-               
+
                // Store width and height
                this->width = width;
                this->height = height;
index f4086e4c3beab430dae342cf3097c8ed3bc787ba..7130b1d8267b1359a515bd785d43c4beacd5c7a8 100644 (file)
@@ -20,6 +20,8 @@ mlt_producer create_producer( char *file )
                result = mlt_factory_producer( "mcmpeg", file );
        else if ( strstr( file, ".mpeg" ) )
                result = mlt_factory_producer( "mcmpeg", file );
+       else if ( strstr( file, ".dat" ) )
+               result = mlt_factory_producer( "mcmpeg", file );
        else if ( strstr( file, ".dv" ) )
                result = mlt_factory_producer( "mcdv", file );
        else if ( strstr( file, ".dif" ) )