2 // VLCMediaThumbnailer.h
5 // Created by Pierre d'Herbemont on 7/10/10.
6 // Copyright 2010 __MyCompanyName__. All rights reserved.
9 #import <Foundation/Foundation.h>
11 # import <CoreGraphics/CoreGraphics.h>
15 @protocol VLCMediaThumbnailerDelegate;
17 @interface VLCMediaThumbnailer : NSObject {
18 id<VLCMediaThumbnailerDelegate> _delegate;
21 CGImageRef _thumbnail;
23 NSTimer *_parsingTimeoutTimer;
25 CGFloat _thumbnailHeight,_thumbnailWidth;
26 CGFloat _effectiveThumbnailHeight,_effectiveThumbnailWidth;
29 + (VLCMediaThumbnailer *)thumbnailerWithMedia:(VLCMedia *)media andDelegate:(id<VLCMediaThumbnailerDelegate>)delegate;
30 - (void)fetchThumbnail;
32 @property (readwrite, assign) id<VLCMediaThumbnailerDelegate> delegate;
33 @property (readwrite, retain) VLCMedia *media;
34 @property (readwrite, assign) CGImageRef thumbnail;
38 * You shouldn't change this after -fetchThumbnail
40 * @return thumbnail height. Default value 240.
42 @property (readwrite, assign) CGFloat thumbnailHeight;
46 * You shouldn't change this after -fetchThumbnail
48 * @return thumbnail height. Default value 320
50 @property (readwrite, assign) CGFloat thumbnailWidth;
53 @protocol VLCMediaThumbnailerDelegate
55 - (void)mediaThumbnailer:(VLCMediaThumbnailer *)mediaThumbnailer didFinishThumbnail:(CGImageRef)thumbnail;