Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Let me guess… more renames?

  • Loading branch information...
commit 3c10cc9deaf0b0d2af494f82f9acd34d67935845 1 parent f2fe7a6
@ccgus authored
View
96 jstalk.xcodeproj/project.pbxproj
@@ -162,19 +162,19 @@
CC725EB91238026D00EA83BF /* TETextUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = CC725EB71238026D00EA83BF /* TETextUtils.h */; };
CC725EBA1238026D00EA83BF /* TETextUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = CC725EB81238026D00EA83BF /* TETextUtils.m */; };
CC7576B40F6DF3B7003AE279 /* JSTFileWatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = CC7576B30F6DF3B7003AE279 /* JSTFileWatcher.m */; };
- CC8642EA163B287800908427 /* JSTCIImageAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642C4163B287800908427 /* JSTCIImageAdditions.h */; };
- CC8642EB163B287800908427 /* JSTCIImageAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642C5163B287800908427 /* JSTCIImageAdditions.m */; };
- CC8642EC163B287800908427 /* JSTCodeSketcher.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642C6163B287800908427 /* JSTCodeSketcher.h */; };
- CC8642ED163B287800908427 /* JSTCodeSketcher.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642C7163B287800908427 /* JSTCodeSketcher.m */; };
- CC8642EE163B287800908427 /* JSTImageTools.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642C8163B287800908427 /* JSTImageTools.h */; };
- CC8642EF163B287800908427 /* JSTImageTools.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642C9163B287800908427 /* JSTImageTools.m */; };
+ CC8642EA163B287800908427 /* COSCIImageAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642C4163B287800908427 /* COSCIImageAdditions.h */; };
+ CC8642EB163B287800908427 /* COSCIImageAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642C5163B287800908427 /* COSCIImageAdditions.m */; };
+ CC8642EC163B287800908427 /* COSCodeSketcher.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642C6163B287800908427 /* COSCodeSketcher.h */; };
+ CC8642ED163B287800908427 /* COSCodeSketcher.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642C7163B287800908427 /* COSCodeSketcher.m */; };
+ CC8642EE163B287800908427 /* COSImageTools.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642C8163B287800908427 /* COSImageTools.h */; };
+ CC8642EF163B287800908427 /* COSImageTools.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642C9163B287800908427 /* COSImageTools.m */; };
CC8642F0163B287800908427 /* JSTOpenCL_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = CC8642CA163B287800908427 /* JSTOpenCL_Prefix.pch */; };
- CC8642F1163B287800908427 /* JSTOpenCLContext.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642CB163B287800908427 /* JSTOpenCLContext.h */; };
- CC8642F2163B287800908427 /* JSTOpenCLContext.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642CC163B287800908427 /* JSTOpenCLContext.m */; };
- CC8642F3163B287800908427 /* JSTOpenCLProgram.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642CD163B287800908427 /* JSTOpenCLProgram.h */; };
- CC8642F4163B287800908427 /* JSTOpenCLProgram.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642CE163B287800908427 /* JSTOpenCLProgram.m */; };
- CC8642F5163B287800908427 /* JSTQuickCIFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642CF163B287800908427 /* JSTQuickCIFilter.h */; };
- CC8642F6163B287800908427 /* JSTQuickCIFilter.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642D0163B287800908427 /* JSTQuickCIFilter.m */; };
+ CC8642F1163B287800908427 /* COSOpenCLContext.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642CB163B287800908427 /* COSOpenCLContext.h */; };
+ CC8642F2163B287800908427 /* COSOpenCLContext.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642CC163B287800908427 /* COSOpenCLContext.m */; };
+ CC8642F3163B287800908427 /* COSOpenCLProgram.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642CD163B287800908427 /* COSOpenCLProgram.h */; };
+ CC8642F4163B287800908427 /* COSOpenCLProgram.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642CE163B287800908427 /* COSOpenCLProgram.m */; };
+ CC8642F5163B287800908427 /* COSQuickCIFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = CC8642CF163B287800908427 /* COSQuickCIFilter.h */; };
+ CC8642F6163B287800908427 /* COSQuickCIFilter.m in Sources */ = {isa = PBXBuildFile; fileRef = CC8642D0163B287800908427 /* COSQuickCIFilter.m */; };
CC8642F7163B287800908427 /* OpenCL.bridgesupport in Resources */ = {isa = PBXBuildFile; fileRef = CC8642D1163B287800908427 /* OpenCL.bridgesupport */; };
CC8642F8163B287800908427 /* ccgus.jpg in Resources */ = {isa = PBXBuildFile; fileRef = CC8642D3163B287800908427 /* ccgus.jpg */; };
CC8642F9163B287800908427 /* clouds.jpg in Resources */ = {isa = PBXBuildFile; fileRef = CC8642D4163B287800908427 /* clouds.jpg */; };
@@ -420,19 +420,19 @@
CC725EB81238026D00EA83BF /* TETextUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TETextUtils.m; path = src/TETextUtils.m; sourceTree = "<group>"; };
CC7576B20F6DF3B7003AE279 /* JSTFileWatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSTFileWatcher.h; path = src/JSTFileWatcher.h; sourceTree = "<group>"; };
CC7576B30F6DF3B7003AE279 /* JSTFileWatcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = JSTFileWatcher.m; path = src/JSTFileWatcher.m; sourceTree = "<group>"; };
- CC8642C4163B287800908427 /* JSTCIImageAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTCIImageAdditions.h; sourceTree = "<group>"; };
- CC8642C5163B287800908427 /* JSTCIImageAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSTCIImageAdditions.m; sourceTree = "<group>"; };
- CC8642C6163B287800908427 /* JSTCodeSketcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTCodeSketcher.h; sourceTree = "<group>"; };
- CC8642C7163B287800908427 /* JSTCodeSketcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSTCodeSketcher.m; sourceTree = "<group>"; };
- CC8642C8163B287800908427 /* JSTImageTools.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTImageTools.h; sourceTree = "<group>"; };
- CC8642C9163B287800908427 /* JSTImageTools.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSTImageTools.m; sourceTree = "<group>"; };
+ CC8642C4163B287800908427 /* COSCIImageAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = COSCIImageAdditions.h; sourceTree = "<group>"; };
+ CC8642C5163B287800908427 /* COSCIImageAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = COSCIImageAdditions.m; sourceTree = "<group>"; };
+ CC8642C6163B287800908427 /* COSCodeSketcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = COSCodeSketcher.h; sourceTree = "<group>"; };
+ CC8642C7163B287800908427 /* COSCodeSketcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = COSCodeSketcher.m; sourceTree = "<group>"; };
+ CC8642C8163B287800908427 /* COSImageTools.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = COSImageTools.h; sourceTree = "<group>"; };
+ CC8642C9163B287800908427 /* COSImageTools.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = COSImageTools.m; sourceTree = "<group>"; };
CC8642CA163B287800908427 /* JSTOpenCL_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTOpenCL_Prefix.pch; sourceTree = "<group>"; };
- CC8642CB163B287800908427 /* JSTOpenCLContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTOpenCLContext.h; sourceTree = "<group>"; };
- CC8642CC163B287800908427 /* JSTOpenCLContext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSTOpenCLContext.m; sourceTree = "<group>"; };
- CC8642CD163B287800908427 /* JSTOpenCLProgram.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTOpenCLProgram.h; sourceTree = "<group>"; };
- CC8642CE163B287800908427 /* JSTOpenCLProgram.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSTOpenCLProgram.m; sourceTree = "<group>"; };
- CC8642CF163B287800908427 /* JSTQuickCIFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTQuickCIFilter.h; sourceTree = "<group>"; };
- CC8642D0163B287800908427 /* JSTQuickCIFilter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSTQuickCIFilter.m; sourceTree = "<group>"; };
+ CC8642CB163B287800908427 /* COSOpenCLContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = COSOpenCLContext.h; sourceTree = "<group>"; };
+ CC8642CC163B287800908427 /* COSOpenCLContext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = COSOpenCLContext.m; sourceTree = "<group>"; };
+ CC8642CD163B287800908427 /* COSOpenCLProgram.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = COSOpenCLProgram.h; sourceTree = "<group>"; };
+ CC8642CE163B287800908427 /* COSOpenCLProgram.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = COSOpenCLProgram.m; sourceTree = "<group>"; };
+ CC8642CF163B287800908427 /* COSQuickCIFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = COSQuickCIFilter.h; sourceTree = "<group>"; };
+ CC8642D0163B287800908427 /* COSQuickCIFilter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = COSQuickCIFilter.m; sourceTree = "<group>"; };
CC8642D1163B287800908427 /* OpenCL.bridgesupport */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = OpenCL.bridgesupport; sourceTree = "<group>"; };
CC8642D3163B287800908427 /* ccgus.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = ccgus.jpg; sourceTree = "<group>"; };
CC8642D4163B287800908427 /* clouds.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = clouds.jpg; sourceTree = "<group>"; };
@@ -839,19 +839,19 @@
CC8642BD163B287800908427 /* imagetools */ = {
isa = PBXGroup;
children = (
- CC8642C4163B287800908427 /* JSTCIImageAdditions.h */,
- CC8642C5163B287800908427 /* JSTCIImageAdditions.m */,
- CC8642C6163B287800908427 /* JSTCodeSketcher.h */,
- CC8642C7163B287800908427 /* JSTCodeSketcher.m */,
- CC8642C8163B287800908427 /* JSTImageTools.h */,
- CC8642C9163B287800908427 /* JSTImageTools.m */,
+ CC8642C4163B287800908427 /* COSCIImageAdditions.h */,
+ CC8642C5163B287800908427 /* COSCIImageAdditions.m */,
+ CC8642C6163B287800908427 /* COSCodeSketcher.h */,
+ CC8642C7163B287800908427 /* COSCodeSketcher.m */,
+ CC8642C8163B287800908427 /* COSImageTools.h */,
+ CC8642C9163B287800908427 /* COSImageTools.m */,
CC8642CA163B287800908427 /* JSTOpenCL_Prefix.pch */,
- CC8642CB163B287800908427 /* JSTOpenCLContext.h */,
- CC8642CC163B287800908427 /* JSTOpenCLContext.m */,
- CC8642CD163B287800908427 /* JSTOpenCLProgram.h */,
- CC8642CE163B287800908427 /* JSTOpenCLProgram.m */,
- CC8642CF163B287800908427 /* JSTQuickCIFilter.h */,
- CC8642D0163B287800908427 /* JSTQuickCIFilter.m */,
+ CC8642CB163B287800908427 /* COSOpenCLContext.h */,
+ CC8642CC163B287800908427 /* COSOpenCLContext.m */,
+ CC8642CD163B287800908427 /* COSOpenCLProgram.h */,
+ CC8642CE163B287800908427 /* COSOpenCLProgram.m */,
+ CC8642CF163B287800908427 /* COSQuickCIFilter.h */,
+ CC8642D0163B287800908427 /* COSQuickCIFilter.m */,
CC8642D1163B287800908427 /* OpenCL.bridgesupport */,
CC8642D2163B287800908427 /* res */,
);
@@ -1031,13 +1031,13 @@
CC90125B1639DBE00067BB78 /* MOPointerValue.h in Headers */,
CC90125E1639DC2F0067BB78 /* MOPointer_Private.h in Headers */,
CC9012611639DC4A0067BB78 /* MOMapTable.h in Headers */,
- CC8642EA163B287800908427 /* JSTCIImageAdditions.h in Headers */,
- CC8642EC163B287800908427 /* JSTCodeSketcher.h in Headers */,
- CC8642EE163B287800908427 /* JSTImageTools.h in Headers */,
+ CC8642EA163B287800908427 /* COSCIImageAdditions.h in Headers */,
+ CC8642EC163B287800908427 /* COSCodeSketcher.h in Headers */,
+ CC8642EE163B287800908427 /* COSImageTools.h in Headers */,
CC8642F0163B287800908427 /* JSTOpenCL_Prefix.pch in Headers */,
- CC8642F1163B287800908427 /* JSTOpenCLContext.h in Headers */,
- CC8642F3163B287800908427 /* JSTOpenCLProgram.h in Headers */,
- CC8642F5163B287800908427 /* JSTQuickCIFilter.h in Headers */,
+ CC8642F1163B287800908427 /* COSOpenCLContext.h in Headers */,
+ CC8642F3163B287800908427 /* COSOpenCLProgram.h in Headers */,
+ CC8642F5163B287800908427 /* COSQuickCIFilter.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1264,12 +1264,12 @@
CCFF84EE15CC5CDF00CC42F7 /* MOAllocator.m in Sources */,
CC90125C1639DBE00067BB78 /* MOPointerValue.m in Sources */,
CC9012621639DC4A0067BB78 /* MOMapTable.m in Sources */,
- CC8642EB163B287800908427 /* JSTCIImageAdditions.m in Sources */,
- CC8642ED163B287800908427 /* JSTCodeSketcher.m in Sources */,
- CC8642EF163B287800908427 /* JSTImageTools.m in Sources */,
- CC8642F2163B287800908427 /* JSTOpenCLContext.m in Sources */,
- CC8642F4163B287800908427 /* JSTOpenCLProgram.m in Sources */,
- CC8642F6163B287800908427 /* JSTQuickCIFilter.m in Sources */,
+ CC8642EB163B287800908427 /* COSCIImageAdditions.m in Sources */,
+ CC8642ED163B287800908427 /* COSCodeSketcher.m in Sources */,
+ CC8642EF163B287800908427 /* COSImageTools.m in Sources */,
+ CC8642F2163B287800908427 /* COSOpenCLContext.m in Sources */,
+ CC8642F4163B287800908427 /* COSOpenCLProgram.m in Sources */,
+ CC8642F6163B287800908427 /* COSQuickCIFilter.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
2  plugins/imagetools/JSTCIImageAdditions.h → plugins/imagetools/COSCIImageAdditions.h
@@ -9,7 +9,7 @@
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
-@interface CIImage (JSTCIImageAdditions)
+@interface CIImage (COSCIImageAdditions)
+ (id)jstImageNamed:(NSString*)imageName;
View
8 plugins/imagetools/JSTCIImageAdditions.m → plugins/imagetools/COSCIImageAdditions.m
@@ -6,14 +6,14 @@
// Copyright 2011 Flying Meat Inc. All rights reserved.
//
-#import "JSTCIImageAdditions.h"
-#import "JSTImageTools.h"
+#import "COSCIImageAdditions.h"
+#import "COSImageTools.h"
-@implementation CIImage (JSTCIImageAdditions)
+@implementation CIImage (COSCIImageAdditions)
+ (id)jstImageNamed:(NSString*)imageName {
- NSURL *url = [[NSBundle bundleForClass:[JSTImageTools class]] URLForImageResource:imageName];
+ NSURL *url = [[NSBundle bundleForClass:[COSImageTools class]] URLForImageResource:imageName];
if (!url) {
View
2  plugins/imagetools/JSTCodeSketcher.h → plugins/imagetools/COSCodeSketcher.h
@@ -10,7 +10,7 @@
#import <JSTalk/COScript.h>
#import <JSTalk/MOJavaScriptObject.h>
-@interface JSTCodeSketcher : NSView {
+@interface COSCodeSketcher : NSView {
COScript *_jstalk;
View
10 plugins/imagetools/JSTCodeSketcher.m → plugins/imagetools/COSCodeSketcher.m
@@ -6,18 +6,18 @@
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
-#import "JSTCodeSketcher.h"
+#import "COSCodeSketcher.h"
@interface COScript (Private)
@end
-@interface JSTCodeSketcher()
+@interface COSCodeSketcher()
- (void)setupWindow;
- (void)resizeContext;
@end
-@implementation JSTCodeSketcher
+@implementation COSCodeSketcher
@synthesize jstalk = _jstalk;
@synthesize mouseLocation = _mouseLocation;
@@ -45,10 +45,10 @@ + (id)codeSketcherWithName:(NSString*)name {
JSTSketchers = [NSMutableDictionary dictionary];
}
- JSTCodeSketcher *cs = [JSTSketchers objectForKey:name];
+ COSCodeSketcher *cs = [JSTSketchers objectForKey:name];
if (!cs) {
- cs = [[JSTCodeSketcher alloc] initWithFrame:NSMakeRect(0, 0, 10, 10)];
+ cs = [[COSCodeSketcher alloc] initWithFrame:NSMakeRect(0, 0, 10, 10)];
[cs setLookupName:name];
[JSTSketchers setObject:cs forKey:name];
}
View
2  plugins/imagetools/JSTImageTools.h → plugins/imagetools/COSImageTools.h
@@ -9,7 +9,7 @@
#import <Cocoa/Cocoa.h>
#import <JSTalk/COScript.h>
-@interface JSTImageTools : NSObject {
+@interface COSImageTools : NSObject {
}
View
8 plugins/imagetools/JSTImageTools.m → plugins/imagetools/COSImageTools.m
@@ -6,9 +6,9 @@
// Copyright 2009 Flying Meat Inc. All rights reserved.
//
-#import "JSTImageTools.h"
-#import "JSTOpenCLProgram.h"
-#import "JSTCodeSketcher.h"
+#import "COSImageTools.h"
+#import "COSOpenCLProgram.h"
+#import "COSCodeSketcher.h"
#import <QuartzCore/QuartzCore.h>
@implementation NSImage (JSTExtras)
@@ -19,7 +19,7 @@ + (id)imageWithSize:(NSSize)s {
@end
-@implementation JSTImageTools
+@implementation COSImageTools
+ (CGImageRef)createImageRefFromBuffer:(JSTOpenCLImageBuffer*)imgBuffer {
View
6 plugins/imagetools/JSTOpenCLContext.h → plugins/imagetools/COSOpenCLContext.h
@@ -4,10 +4,10 @@
#import <Cocoa/Cocoa.h>
#import <OpenCL/OpenCL.h>
-@class JSTOpenCLProgram;
+@class COSOpenCLProgram;
@class JSTOpenCLBuffer;
-@interface JSTOpenCLContext : NSObject {
+@interface COSOpenCLContext : NSObject {
cl_context computeContext;
cl_command_queue computeCommands;
@@ -25,7 +25,7 @@
@property (readonly) NSUInteger maximum2DImageWidth;
@property (readonly) NSUInteger maximum2DImageHeight;
-- (JSTOpenCLProgram*)programWithSource:(NSString*)sourceCode;
+- (COSOpenCLProgram*)programWithSource:(NSString*)sourceCode;
- (JSTOpenCLBuffer*)bufferWithSize:(size_t)size attributes:(cl_bitfield) attribs;
- (JSTOpenCLBuffer*)bufferWithMemory:(void*)memory size:(size_t)size attributes:(cl_bitfield)attribs;
View
12 plugins/imagetools/JSTOpenCLContext.m → plugins/imagetools/COSOpenCLContext.m
@@ -1,11 +1,11 @@
-#import "JSTOpenCLContext.h"
-#import "JSTOpenCLProgram.h"
+#import "COSOpenCLContext.h"
+#import "COSOpenCLProgram.h"
-@interface JSTOpenCLContext ()
+@interface COSOpenCLContext ()
- (BOOL)setupContext;
@end
-@implementation JSTOpenCLContext
+@implementation COSOpenCLContext
@synthesize computeContext;
@synthesize computeCommands;
@@ -98,8 +98,8 @@ - (BOOL)setupContext {
return YES;
}
-- (JSTOpenCLProgram*)programWithSource:(NSString*) sourceCode; {
- JSTOpenCLProgram *program = [[JSTOpenCLProgram alloc] initWithContext:self];
+- (COSOpenCLProgram*)programWithSource:(NSString*) sourceCode; {
+ COSOpenCLProgram *program = [[COSOpenCLProgram alloc] initWithContext:self];
program.sourceCode = sourceCode;
return program;
}
View
22 plugins/imagetools/JSTOpenCLProgram.h → plugins/imagetools/COSOpenCLProgram.h
@@ -8,21 +8,21 @@
#import <Cocoa/Cocoa.h>
-#import "JSTOpenCLContext.h"
+#import "COSOpenCLContext.h"
@class JSTOpenCLKernel;
-@interface JSTOpenCLProgram : NSObject
+@interface COSOpenCLProgram : NSObject
{
- JSTOpenCLContext *context;
+ COSOpenCLContext *context;
NSString *sourceCode;
cl_program computeProgram;
NSMutableDictionary *computeKernels;
}
-- (id)initWithContext: (JSTOpenCLContext*) theContext;
+- (id)initWithContext: (COSOpenCLContext*) theContext;
-@property (readonly) JSTOpenCLContext *context;
+@property (readonly) COSOpenCLContext *context;
@property (copy) NSString *sourceCode;
- (void)build;
@@ -33,13 +33,13 @@
@interface JSTOpenCLBuffer : NSObject
{
- JSTOpenCLContext *context;
+ COSOpenCLContext *context;
size_t size;
cl_bitfield attributes;
cl_mem computeBuffer;
}
-- (id)initWithContext: (JSTOpenCLContext*) theContext memory: (void*) memory size: (size_t) theSize attributes: (cl_bitfield) theFlags;
+- (id)initWithContext: (COSOpenCLContext*) theContext memory: (void*) memory size: (size_t) theSize attributes: (cl_bitfield) theFlags;
@property (readonly) cl_bitfield attributes;
@property (readonly) cl_mem computeBuffer;
@@ -88,9 +88,9 @@ typedef struct _JSTOCLFloatPixel {
@property (readonly) cl_float4 *bitmapData;
@property (readonly) size_t bytesPerRow;
-- (id)initWithContext:(JSTOpenCLContext*)theContext width:(size_t)w height:(size_t)h;
+- (id)initWithContext:(COSOpenCLContext*)theContext width:(size_t)w height:(size_t)h;
-- (id)initWithContext:(JSTOpenCLContext*)theContext usingImageAtPath:(NSString*)path;
+- (id)initWithContext:(COSOpenCLContext*)theContext usingImageAtPath:(NSString*)path;
@end
@@ -102,12 +102,12 @@ typedef struct _JSTOCLFloatPixel {
@interface JSTOpenCLKernel : NSObject
{
- JSTOpenCLProgram *program;
+ COSOpenCLProgram *program;
cl_kernel computeKernel;
size_t workGroupSize;
}
-- (id)initWithProgram: (JSTOpenCLProgram*) theProgram;
+- (id)initWithProgram: (COSOpenCLProgram*) theProgram;
@property (readonly) cl_kernel computeKernel;
@property (readonly) size_t workGroupSize;
View
18 plugins/imagetools/JSTOpenCLProgram.m → plugins/imagetools/COSOpenCLProgram.m
@@ -6,7 +6,7 @@
// Copyright 2009 Kickingbear. All rights reserved.
//
-#import "JSTOpenCLProgram.h"
+#import "COSOpenCLProgram.h"
@interface NSObject (JSTalkPrintController)
- (id)printController;
@@ -19,10 +19,10 @@ @interface JSTOpenCLKernel ()
@property (readwrite) size_t workGroupSize;
@end
-@implementation JSTOpenCLProgram
+@implementation COSOpenCLProgram
-- (id)initWithContext: (JSTOpenCLContext*) theContext {
+- (id)initWithContext: (COSOpenCLContext*) theContext {
self = [super init];
if ( !self ) return nil;
@@ -125,7 +125,7 @@ @implementation JSTOpenCLBuffer
@synthesize computeBuffer;
@synthesize size;
-- (id)initWithContext: (JSTOpenCLContext*)theContext memory:(void*)memory size:(size_t)theSize attributes:(cl_bitfield)theFlags {
+- (id)initWithContext: (COSOpenCLContext*)theContext memory:(void*)memory size:(size_t)theSize attributes:(cl_bitfield)theFlags {
self = [super init];
if (!self) {
return nil;
@@ -174,11 +174,11 @@ @implementation JSTOpenCLImageBuffer
@synthesize bytesPerRow=_bytesPerRow;
-+ (id)instanceWithContext:(JSTOpenCLContext*)theContext width:(size_t)w height:(size_t)h {
++ (id)instanceWithContext:(COSOpenCLContext*)theContext width:(size_t)w height:(size_t)h {
return [[self alloc] initWithContext:theContext width:w height:h];
}
-- (id)initWithContext:(JSTOpenCLContext*)theContext width:(size_t)w height:(size_t)h {
+- (id)initWithContext:(COSOpenCLContext*)theContext width:(size_t)w height:(size_t)h {
self = [super init];
if (!self) {
@@ -240,11 +240,11 @@ - (id)initWithContext:(JSTOpenCLContext*)theContext width:(size_t)w height:(size
return self;
}
-+ (id)instanceWithContext:(JSTOpenCLContext*)theContext usingImageAtPath:(NSString*)path {
++ (id)instanceWithContext:(COSOpenCLContext*)theContext usingImageAtPath:(NSString*)path {
return [[self alloc] initWithContext:theContext usingImageAtPath:path];
}
-- (id)initWithContext:(JSTOpenCLContext*)theContext usingImageAtPath:(NSString*)path {
+- (id)initWithContext:(COSOpenCLContext*)theContext usingImageAtPath:(NSString*)path {
CGImageSourceRef imageSourceRef = CGImageSourceCreateWithURL((__bridge CFURLRef)[NSURL fileURLWithPath:path], nil);
@@ -309,7 +309,7 @@ - (void)dealloc {
@implementation JSTOpenCLKernel
-- (id)initWithProgram:(JSTOpenCLProgram*) theProgram {
+- (id)initWithProgram:(COSOpenCLProgram*) theProgram {
self = [super init];
if (!self) {
return nil;
View
2  plugins/imagetools/JSTQuickCIFilter.h → plugins/imagetools/COSQuickCIFilter.h
@@ -11,7 +11,7 @@
#import <JSTalk/COScript.h>
#import <JSTalk/MOJavaScriptObject.h>
-@interface JSTQuickCIFilter : CIFilter {
+@interface COSQuickCIFilter : CIFilter {
CIKernel *_theKernel;
NSMutableArray *_kernelArgs;
}
View
6 plugins/imagetools/JSTQuickCIFilter.m → plugins/imagetools/COSQuickCIFilter.m
@@ -6,7 +6,7 @@
// Copyright 2010 Flying Meat Inc. All rights reserved.
//
-#import "JSTQuickCIFilter.h"
+#import "COSQuickCIFilter.h"
#pragma message "FIXME: Gus- you can get CI kernel errors like so: http://stackoverflow.com/questions/13754997/how-do-you-debug-syntax-errors-in-a-core-image-kernel"
/*
@@ -35,11 +35,11 @@
*/
-@implementation JSTQuickCIFilter
+@implementation COSQuickCIFilter
+ (id)quickFilterWithKernel:(NSString*)kernel {
- JSTQuickCIFilter *f = [JSTQuickCIFilter new];
+ COSQuickCIFilter *f = [COSQuickCIFilter new];
[f setTheKernel:[[CIKernel kernelsWithString:kernel] objectAtIndex:0]];
[f setKernelArgs:[NSMutableArray array]];
Please sign in to comment.
Something went wrong with that request. Please try again.