summaryrefslogtreecommitdiffstats
path: root/macosx/HBUtilities.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-07-11 18:22:43 +0000
committerritsuka <[email protected]>2014-07-11 18:22:43 +0000
commit70f4a8751ea04c69095025394adecff6a2c8edea (patch)
tree58531bf3ae09e2d508b0f85494b8e6fca9b0ed3f /macosx/HBUtilities.h
parent2412d4a92123b2f20b43987a65a4fbd645be1443 (diff)
MacGUI: Expanded the auto name feature to make it as powerful as the WinGUI counterpart.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6228 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBUtilities.h')
-rw-r--r--macosx/HBUtilities.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/macosx/HBUtilities.h b/macosx/HBUtilities.h
new file mode 100644
index 000000000..d1fc9888d
--- /dev/null
+++ b/macosx/HBUtilities.h
@@ -0,0 +1,31 @@
+/* HBUtilities.h $
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr/>.
+ It may be used under the terms of the GNU General Public License. */
+
+#import <Foundation/Foundation.h>
+
+@interface HBUtilities : NSObject
+
+/**
+ * Genetares a file name automatically based on the inputs,
+ * it can be configured with NSUserDefaults.
+ *
+ * @param sourceName the name of the source file
+ * @param title the title number
+ * @param chaptersRange the selected chapters range
+ * @param quality the video encoder quality
+ * @param bitrate the video encoder bitrate
+ * @param videoCodec the video encoder type
+ *
+ * @return a NSString containing the required info
+ */
++ (NSString *)automaticNameForSource:(NSString *)sourceName
+ title:(NSUInteger)title
+ chapters:(NSRange)chaptersRange
+ quality:(NSString *)quality
+ bitrate:(NSString *)bitrate
+ videoCodec:(uint32_t *)codec;
+
+@end