]> git.sesse.net Git - mlt/blobdiff - src/mlt++/MltProfile.cpp
Count uses qtext first and falls back to pango
[mlt] / src / mlt++ / MltProfile.cpp
index 47302b7aa788c3013ef4424d68b1f104927aec1f..f4dce193b97169f3f7069e25278a3d5b176525b3 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "MltProfile.h"
 #include "MltProperties.h"
+#include "MltProducer.h"
+
 using namespace Mlt;
 
 Profile::Profile( ) :
@@ -121,7 +123,59 @@ double Profile::dar() const
        return mlt_profile_dar( instance );
 }
 
+int Profile::is_explicit() const
+{
+       return instance->is_explicit;
+}
+
+int Profile::colorspace() const
+{
+       return instance->colorspace;
+}
+
 Properties* Profile::list()
 {
        return new Properties( mlt_profile_list() );
 }
+
+void Profile::from_producer( Producer &producer )
+{
+       mlt_profile_from_producer( instance, producer.get_producer() );
+}
+
+void Profile::set_width( int width )
+{
+       instance->width = width;
+}
+
+void Profile::set_height( int height )
+{
+       instance->height = height;
+}
+
+void Profile::set_sample_aspect( int numerator, int denominator )
+{
+       instance->sample_aspect_num = numerator;
+       instance->sample_aspect_den = denominator;
+}
+
+void Profile::set_progressive( int progressive )
+{
+       instance->progressive = progressive;
+}
+
+void Profile::set_colorspace( int colorspace )
+{
+       instance->colorspace = colorspace;
+}
+
+void Profile::set_frame_rate( int numerator, int denominator )
+{
+       instance->frame_rate_num = numerator;
+       instance->frame_rate_den = denominator;
+}
+
+void Profile::set_explicit( int boolean )
+{
+       instance->is_explicit = boolean;
+}