Skip to content

Instantly share code, notes, and snippets.

-(void)setMovie:(QTMovie *)smovie
{
if (frameCache!=nil)
[frameCache release];
frameCache=[[NSMutableArray array] retain];
QTTimeRange range=QTMakeTimeRange(QTMakeTime(0,600), [smovie duration]);
QTMovie *copiedMovie=[[QTMovie alloc] initWithMovie:smovie timeRange:range error:nil];
ILFrameGrabber *grabber=[[ILFrameGrabber alloc] initWithMovie:copiedMovie];
CACHE MANIFEST
# VERSION: 0.0.81
js/glam.rock.min.0.0.81.js
css/glam.rock.min.0.0.81.css
js/jquery-1.4.3.min.js
js/jquery.tmpl.min.js
index.html
css/example.mobile.min.0.0.81.css
js/example.mobile.min.0.0.81.js
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name = "viewport" content = "user-scalable=no, width = device-width">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="/i/mobile/icon.png"/>
<link rel="apple-touch-startup-image" href="/i/mobile/startup.png">
compress:
skip: false
nomunge: false
preserve-semi: false
optimize: true
line-break: 1800
files:
js/glam.rock.min.{VERSION}.js:
- projects/glamrock/js/iscroll.js
- projects/glamrock/js/sprintf.js
---
glamrock:
version: 0.0.81
build:
copy:
files:
projects/glamrock/js/jquery-1.4.3.min.js: js/
projects/glamrock/js/jquery.tmpl.min.js: js/
projects/glamrock/templates/*.html: templates/
compress:
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name = "viewport" content = "user-scalable=no, width = device-width">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="/i/mobile/icon.png"/>
<link rel="apple-touch-startup-image" href="/i/mobile/startup.png">
*.pbxproj -crlf -diff -merge
//
// ILFrameGrabber.m
// SceneDetector
//
// Created by Jon Gilkison on 7/29/09.
// Copyright 2009 Interface Lab. All rights reserved.
//
#import "ILFrameGrabber.h"
//
// ILFrameGrabber.h
//
// Convenience class for extracting specific frames from a quicktime movie
// into a 24-bit pixel buffer for further manipulation.
//
// TODO: Refactor to use Core Video?
//
// Created by Jon Gilkison on 7/29/09.
// Copyright 2009 Interface Lab. All rights reserved.
<?
class SomeController extends Controller
{
// Upload an xml file and parse it
public function post_index()
{
foreach($this->request->files as $name => $file)
{
// moves to app's temp directory
$file->move();