]> git.sesse.net Git - mlt/commitdiff
aspect ratio and test card woes
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 7 Apr 2004 15:05:04 +0000 (15:05 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 7 Apr 2004 15:05:04 +0000 (15:05 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@270 d19143bc-622f-0410-bfdd-b5b2a6649095

src/framework/mlt_consumer.c
src/framework/mlt_frame.c
src/framework/mlt_properties.c

index dc7dfa17e40665b36a2a58c62f1b783bb40467ec..b03f078cda34102e596912228c7b49e7bb539cd4 100644 (file)
@@ -144,8 +144,7 @@ int mlt_consumer_start( mlt_consumer this )
                if ( mlt_properties_get_data( properties, "test_card_producer", NULL ) == NULL )
                {
                        // Create a test card producer
-                       // TODO: do we want to use fezzik here?
-                       mlt_producer producer = mlt_factory_producer( "fezzik", test_card );
+                       mlt_producer producer = mlt_factory_producer( NULL, test_card );
 
                        // Do we have a producer
                        if ( producer != NULL )
@@ -341,7 +340,6 @@ static void consumer_read_ahead_start( mlt_consumer this )
        
        // Create the read ahead 
        pthread_create( &this->ahead_thread, &thread_attributes, consumer_read_ahead_thread, this );
-
 }
 
 static void consumer_read_ahead_stop( mlt_consumer this )
index 1b147a6926ed111b2b12a59e94ba36f42534895d..dd89049689f3640520d5860890d00a3edfdf536a 100644 (file)
@@ -219,13 +219,17 @@ int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *for
                if ( test_frame != NULL )
                {
                        mlt_properties test_properties = mlt_frame_properties( test_frame );
-                       mlt_properties_pass( properties, test_properties, "" );
+                       //mlt_properties_pass( test_properties, properties, "" );
+                       mlt_properties_set( test_properties, "rescale.interp", "nearest" );
+                       //mlt_properties_set( test_properties, "aspect_ratio", "1" );
+                       //mlt_properties_set( test_properties, "consumer_aspect_ratio", "1" );
                        mlt_frame_get_image( test_frame, buffer, format, width, height, writable );
                        mlt_properties_set_data( properties, "test_card_frame", test_frame, 0, ( mlt_destructor )mlt_frame_close, NULL );
                        mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, NULL, NULL );
                        mlt_properties_set_int( properties, "width", *width );
                        mlt_properties_set_int( properties, "height", *height );
-                       mlt_properties_set( properties, "rescale.interps", "none" );
+                       //mlt_properties_pass( properties, test_properties, "" );
+                       mlt_properties_set( properties, "rescale.interp", "none" );
                        mlt_properties_set( properties, "scale", "off" );
                }
                else
index fa624d48a15ffd7b725cd4e91a654f1fabb4a9ab..4b0f76bb91e68027ebd1716256b1dd9f1089c740 100644 (file)
@@ -537,7 +537,8 @@ void mlt_properties_dump( mlt_properties this, FILE *output )
        property_list *list = this->private;
        int i = 0;
        for ( i = 0; i < list->count; i ++ )
-               fprintf( output, "%s=%s\n", list->name[ i ], mlt_properties_get( this, list->name[ i ] ) );
+               if ( mlt_properties_get( this, list->name[ i ] ) != NULL )
+                       fprintf( output, "%s=%s\n", list->name[ i ], mlt_properties_get( this, list->name[ i ] ) );
 }
 
 /** Close the list.