VLCMediaThumbnailer.h
/*****************************************************************************
* VLCKit: VLCMediaThumbnailer
*****************************************************************************
* Copyright (C) 2010-2012 Pierre d'Herbemont and VideoLAN
*
* Authors: Pierre d'Herbemont
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
# import <CoreGraphics/CoreGraphics.h>
#endif
@class VLCMedia;
@class VLCLibrary;
@protocol VLCMediaThumbnailerDelegate;
@interface VLCMediaThumbnailer : NSObject
+ (VLCMediaThumbnailer *)thumbnailerWithMedia:(VLCMedia *)media andDelegate:(id<VLCMediaThumbnailerDelegate>)delegate;
+ (VLCMediaThumbnailer *)thumbnailerWithMedia:(VLCMedia *)media delegate:(id<VLCMediaThumbnailerDelegate>)delegate andVLCLibrary:(VLCLibrary *)library;
- (void)fetchThumbnail;
@property (readwrite, weak, nonatomic) id<VLCMediaThumbnailerDelegate> delegate;
@property (readwrite, nonatomic) VLCMedia *media;
@property (readwrite, assign, nonatomic) CGImageRef thumbnail;
@property (readwrite) void * libVLCinstance;
@property (readwrite, assign, nonatomic) CGFloat thumbnailHeight;
@property (readwrite, assign, nonatomic) CGFloat thumbnailWidth;
@property (readwrite, assign, nonatomic) float snapshotPosition;
@end
@protocol VLCMediaThumbnailerDelegate
@required
- (void)mediaThumbnailerDidTimeOut:(VLCMediaThumbnailer *)mediaThumbnailer;
- (void)mediaThumbnailer:(VLCMediaThumbnailer *)mediaThumbnailer didFinishThumbnail:(CGImageRef)thumbnail;
@end
VLCMediaThumbnailer
Definition: VLCMediaThumbnailer.h:35
VLCMediaThumbnailer::thumbnailHeight
CGFloat thumbnailHeight
Definition: VLCMediaThumbnailer.h:83
VLCMediaThumbnailer::delegate
id< VLCMediaThumbnailerDelegate > delegate
Definition: VLCMediaThumbnailer.h:62
-[VLCMediaThumbnailer fetchThumbnail]
void fetchThumbnail()
VLCMediaThumbnailer::thumbnailWidth
CGFloat thumbnailWidth
Definition: VLCMediaThumbnailer.h:91
VLCMediaThumbnailer::media
VLCMedia * media
Definition: VLCMediaThumbnailer.h:66
VLCLibrary
Definition: VLCLibrary.h:41
VLCMediaThumbnailer::snapshotPosition
float snapshotPosition
Definition: VLCMediaThumbnailer.h:99
VLCMedia
Definition: VLCMedia.h:112
VLCMediaThumbnailer::thumbnail
CGImageRef thumbnail
Definition: VLCMediaThumbnailer.h:70
VLCMediaThumbnailerDelegate-p
Definition: VLCMediaThumbnailer.h:105
VLCMediaThumbnailer::libVLCinstance
void * libVLCinstance
Definition: VLCMediaThumbnailer.h:75