summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBPreviewGenerator.h')
-rw-r--r--macosx/HBPreviewGenerator.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/macosx/HBPreviewGenerator.h b/macosx/HBPreviewGenerator.h
index 88999b6a7..dcf5f6953 100644
--- a/macosx/HBPreviewGenerator.h
+++ b/macosx/HBPreviewGenerator.h
@@ -29,15 +29,29 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithCore:(HBCore *)core job:(HBJob *)job NS_DESIGNATED_INITIALIZER;
-/* Still image generator */
+#pragma mark - Still image generator
+
+/**
+ * Returns the picture preview at the specified index
+ *
+ * @param index picture index in title.
+ */
- (nullable CGImageRef) copyImageAtIndex: (NSUInteger) index shouldCache: (BOOL) cache CF_RETURNS_RETAINED;
+
+/**
+ * Returns a small picture preview at the specified index asynchronously
+ *
+ * @param index picture index in title.
+ */
+- (void) copySmallImageAtIndex: (NSUInteger) index completionHandler:(void (^)(__nullable CGImageRef result))handler;
+
@property (nonatomic, readonly) NSUInteger imagesCount;
@property (nonatomic, readonly) CGSize imageSize;
- (void) purgeImageCache;
@property (nonatomic, readonly, copy) NSString *info;
-/* Video generator */
+#pragma mark - Video generator
- (BOOL) createMovieAsyncWithImageAtIndex: (NSUInteger) index duration: (NSUInteger) seconds;
- (void) cancel;