mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-22 20:45:48 +01:00
55 lines
1.0 KiB
Objective-C
55 lines
1.0 KiB
Objective-C
//
|
|
// Freej.h
|
|
// freej
|
|
//
|
|
// Created by xant on 2/8/09.
|
|
// Copyright 2009 dyne.org. All rights reserved.
|
|
//
|
|
#ifndef __CFREEJ_H__
|
|
#define __CFREEJ_H__
|
|
|
|
|
|
#include <context.h>
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <CVScreen.h>
|
|
|
|
@class CVideoFileInput;
|
|
class CVLayer;
|
|
|
|
#define CFREEJ_VINPUTS_MAX 8
|
|
@interface CFreej : NSObject {
|
|
Context *freej;
|
|
int stdout_pipe[2];
|
|
int stderr_pipe[2];
|
|
CVScreen *screen;
|
|
NSRecursiveLock *lock;
|
|
IBOutlet NSPopUpButton *layerSelect;
|
|
IBOutlet NSTextField *scriptPath;
|
|
IBOutlet NSTextView *outputPanel;
|
|
IBOutlet CVScreenView *screenView;
|
|
}
|
|
- (id)init;
|
|
//- (void)run;
|
|
- (void)start;
|
|
- (Context *)getContext;
|
|
- (NSRecursiveLock *)getLock;
|
|
- (bool)isVisible:(CVLayer *)layer;
|
|
- (IBAction)openScript:(id)sender;
|
|
- (IBAction)reset:(id)sender;
|
|
|
|
@end
|
|
|
|
/*
|
|
class CVContext : public Context
|
|
{
|
|
public:
|
|
CFreej *_cfreej;
|
|
|
|
CVContext(CFreej *cfreej);
|
|
~CVContext();
|
|
void add_layer(Layer *lay);
|
|
bool init(int wx, int hx, VideoMode videomode, int audiomode);
|
|
};
|
|
*/
|
|
|
|
#endif |