mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-13 16:15:43 +01:00
- Separating view logic from the real layer implementations (so layers can be created programmatically and associated to a view only if/when necessary) - Separating the c++ glue classes from their related cocoa implementations
33 lines
853 B
Objective-C
33 lines
853 B
Objective-C
//
|
|
// CVFileInput.h
|
|
// freej
|
|
//
|
|
// Created by xant on 2/16/09.
|
|
// Copyright 2009 dyne.org. All rights reserved.
|
|
//
|
|
#ifndef __CV_FILEINPUT_H__
|
|
#define __CV_FILEINPUT_H__
|
|
|
|
#include <context.h>
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <QuickTime/QuickTime.h>
|
|
#import <QTKit/QTKit.h>
|
|
#import "CFreej.h";
|
|
#include "CVLayer.h"
|
|
|
|
@interface CVFileInputController : CVLayerController {
|
|
id delegate;
|
|
QTMovie *qtMovie;
|
|
QTTime movieDuration; // cached duration of the movie - just for convenience
|
|
CGLContextObj qtOpenGLContext;
|
|
QTVisualContextRef qtVisualContext; // the context the movie is playing in
|
|
bool isPlaying;
|
|
}
|
|
- (BOOL)setQTMovie:(QTMovie *)movie;
|
|
- (QTTime)movieDuration;
|
|
- (QTTime)currentTime;
|
|
- (void)setTime:(QTTime)inTime;
|
|
@end
|
|
|
|
#endif
|