cog/Plugins/Quicktime/QuicktimePropertiesReader.m

41 lines
637 B
Matlab
Raw Normal View History

2007-06-10 21:34:20 +00:00
//
// QuicktimePropertiesReader.m
// Quicktime
//
// Created by Vincent Spader on 6/10/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "QuicktimePropertiesReader.h"
#import "QuicktimeDecoder.h"
@implementation QuicktimePropertiesReader
+ (NSDictionary *)propertiesForSource:(id<CogSource>)source
{
NSDictionary *properties;
QuicktimeDecoder *decoder;
decoder = [[QuicktimeDecoder alloc] init];
if (![decoder open:source])
{
return nil;
}
properties = [decoder properties];
[decoder close];
return properties;
}
+ (NSArray *)fileTypes
{
return [QuicktimeDecoder fileTypes];
}
@end