Skip to content

Instantly share code, notes, and snippets.

@ka010
ka010 / gist:235253db3fccfac53910
Last active March 5, 2020 04:39
Convert an AVFrame to CVPixelbuffer
-(void)getPixelBuffer:(CVPixelBufferRef *)pbuf {
@synchronized (self) {
if(!_pFrame || !_pFrame->data[0])
return;
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
// [NSNumber numberWithBool:YES], kCVPixelBufferCGImageCompatibilityKey,
// [NSNumber numberWithBool:YES], kCVPixelBufferCGBitmapContextCompatibilityKey,
@(_pFrame->linesize[0]), kCVPixelBufferBytesPerRowAlignmentKey,
@ka010
ka010 / filter
Created January 7, 2011 00:59
a minimal tinyproxy.conf
http://app.boxee.tv/chkupd/*
# basic example of how to use avrBridgePy.
# once you have a reference to the wrapped library,
# you can use the API defined in avrBridgeC.h
#
# this example blinks an led on portD - pin0
import time
import avrBridgePy as avrBridgePy
#get a wrapper instance
import os, re
from AmiTree import Container
from PlugIn import PlugIn
class GetXML(PlugIn):
def __init__(self, token, configFile):
PlugIn.__init__(self)
self.architecture = "all"
import urllib
import os
dirlist = ['dsintro', 'socketbasedds', 'remotecalls','distributedobjects', 'distributedservices1', 'distributedservices2', 'security1', 'components', 'systemmanagement', 'designissues', 'webservices', 'peertopeer', 'soa', ]
for dir in dirlist:
i=1
for i in range(1,100):
try:
print '** Processing : ' + dir + ' Slide#: ' + str(i)