add MltProfile and update examples
[melted] / mlt++ / src / MltProfile.h
diff --git a/mlt++/src/MltProfile.h b/mlt++/src/MltProfile.h
new file mode 100644 (file)
index 0000000..2a1f891
--- /dev/null
@@ -0,0 +1,63 @@
+/**
+ * MltProfile.h - MLT Wrapper
+ * Copyright (C) 2008 Dan Dennedy <dan@dennedy.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _MLTPP_PROFILE_H_
+#define _MLTPP_PROFILE_H_
+
+#include "config.h"
+
+#ifdef SWIG
+#define MLTPP_DECLSPEC
+#endif
+
+#include <framework/mlt.h>
+
+namespace Mlt
+{
+       class Properties;
+
+       class MLTPP_DECLSPEC Profile
+       {
+               private:
+                       mlt_profile instance;
+               public:
+                       Profile( );
+                       Profile( const char* name );
+                       Profile( Properties& properties );
+                       Profile( mlt_profile profile );
+                       ~Profile();
+
+                       mlt_profile get_profile( ) const;
+                       char* description() const;
+                       int frame_rate_num() const;
+                       int frame_rate_den() const;
+                       double fps() const;
+                       int width() const;
+                       int height() const;
+                       bool progressive() const;
+                       int sample_aspect_num() const;
+                       int sample_aspect_den() const;
+                       double sar() const;
+                       int display_aspect_num() const;
+                       int display_aspect_den() const;
+                       double dar() const;
+       };
+}
+
+#endif