diff options
author | ritsuka <[email protected]> | 2015-01-26 08:30:23 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-26 08:30:23 +0000 |
commit | de6e8f85686ad3f63be7fba7b4bf10aa1912a09a (patch) | |
tree | aa4a061b01b810e38a6d3af245a2380aceb58839 /macosx/HBPreviewGenerator.h | |
parent | 9545f5c9b6c3160b0e6cba9344232cb9e1493aaf (diff) |
MacGui: add a method to return a CGImageRef for a preview in HBCore, and skip the alpha to use less memory. Use a dispatch_source as a timer in HBCore so we will be able to run the update loop on its own thread. Remove the pointer to hb_handle_t, no class outside HBCore uses it.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6816 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewGenerator.h')
-rw-r--r-- | macosx/HBPreviewGenerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBPreviewGenerator.h b/macosx/HBPreviewGenerator.h index 577fe2d6e..42cf013a0 100644 --- a/macosx/HBPreviewGenerator.h +++ b/macosx/HBPreviewGenerator.h @@ -4,7 +4,7 @@ Homepage: <http://handbrake.fr/>. It may be used under the terms of the GNU General Public License. */ -#import <Cocoa/Cocoa.h> +#import <Foundation/Foundation.h> @class HBCore; @class HBJob; @@ -25,7 +25,7 @@ - (instancetype)initWithCore:(HBCore *)core job:(HBJob *)job; /* Still image generator */ -- (NSImage *) imageAtIndex: (NSUInteger) index shouldCache: (BOOL) cache; +- (CGImageRef) imageAtIndex: (NSUInteger) index shouldCache: (BOOL) cache; - (NSUInteger) imagesCount; - (void) purgeImageCache; |