Skip to content

Instantly share code, notes, and snippets.

View SheffieldKevin's full-sized avatar

Kevin Meaney SheffieldKevin

View GitHub Profile
@SheffieldKevin
SheffieldKevin / BaseDerivedClassMethods
Last active August 29, 2015 14:01
Calling derived class methods from the base class. What do you think this code outputs.
#import <Foundation/Foundation.h>
@interface BaseClass : NSObject
+(void)callDerivedClassMethod;
@end
@interface DerivedClass : BaseClass
+(void)derivedClassMethod;
@end
@SheffieldKevin
SheffieldKevin / MPO image meta
Created April 24, 2014 14:16
MPO image meta
{
"{TIFF}": {
"ResolutionUnit": 2,
"Software": "NEX-5N v1.01",
"DateTime": "2013:07:28 13:50:35",
"XResolution": 350,
"ImageDescription": " ",
"Orientation": 1,
"Model": "NEX-5N",
"Make": "SONY",
@SheffieldKevin
SheffieldKevin / main.m
Last active July 1, 2022 06:43
Code to demonstrate that the backside image option for the CIPageCurlTransition filter doesn't work.
// main.m
// pagecurlbacksidetest
//
// Created by Kevin Meaney on 30/03/2014.
@import Foundation;
@import QuartzCore;
size_t const kWidth = 600;
size_t const kHeight = 400;
@SheffieldKevin
SheffieldKevin / Compare images not working
Last active August 29, 2015 13:56
The CIAreaMaximum filter is not working.
// main.m
// compareimages
//
// Created by Kevin Meaney on 25/02/2014.
// Copyright (c) 2014 Kevin Meaney. All rights reserved.
@import Foundation;
@import QuartzCore;
// ---------------------------------------------------------------------------
@SheffieldKevin
SheffieldKevin / main.m
Last active November 26, 2018 18:22
I had far more difficulty getting the generation of gif animations working correctly using ImageIO and Core-Graphics aka Quartz on MacOS/iOS than should have reasonably been expected.
// main.m
// creategif
//
// Created by Kevin Meaney on 21/10/2013.
// I've briefly blogged about it here:
// http://blog.yvs.eu.com/2013/10/creating-gif-animations-using-coreimagequartz
// The following code is all that is all the code needed for a creating a command line tool to generate
// a gif animation from image files.
// The main limitation with this code is that apart from the frame delay time of 0.1 second, every