1 /* HBPreviewGenerator.h $
3 This file is part of the HandBrake source code.
4 Homepage: <http://handbrake.fr/>.
5 It may be used under the terms of the GNU General Public License. */
7 #import <Foundation/Foundation.h>
9 NS_ASSUME_NONNULL_BEGIN
14 @protocol HBPreviewGeneratorDelegate
<NSObject
>
16 - (void) reloadPreviews
;
18 - (void) didCreateMovieAtURL
: (NSURL
*) fileURL
;
19 - (void) didCancelMovieCreation
;
21 - (void) updateProgress
: (double) progress info
: (NSString
*) progressInfo
;
25 @interface HBPreviewGenerator
: NSObject
27 @
property (nonatomic
, assign
, nullable
) id
<HBPreviewGeneratorDelegate
> delegate
;
29 - (instancetype
)init NS_UNAVAILABLE
;
30 - (instancetype
)initWithCore
:(HBCore
*)core job
:(HBJob
*)job NS_DESIGNATED_INITIALIZER
;
32 /* Still image generator */
33 - (nullable CGImageRef
) copyImageAtIndex
: (NSUInteger
) index shouldCache
: (BOOL
) cache CF_RETURNS_RETAINED
;
34 @
property (nonatomic
, readonly
) NSUInteger imagesCount
;
35 @
property (nonatomic
, readonly
) CGSize imageSize
;
36 - (void) purgeImageCache
;
38 @
property (nonatomic
, readonly
, copy
) NSString
*info
;
41 - (BOOL
) createMovieAsyncWithImageAtIndex
: (NSUInteger
) index duration
: (NSUInteger
) seconds
;