Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
project.xcworkspace/
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
.DS_Store

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
Pods/
24 changes: 0 additions & 24 deletions README

This file was deleted.

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# UIImageDSP

Category on UIImage provides processing extensions using the Accelerate framework. Original implemenation can be found [here](https://github.com/gdawg/uiimage-dsp).

## Installation

Add a dependency on `UIImageDSP` in your pod spec or Podfile

## Use

```objc
#import <UIImageDSP/UIImage+DSP.h>

image = [originalImage imageByApplyingGaussianBlur3x3];
```

Look in UIImage+DSP for all available methods.
23 changes: 23 additions & 0 deletions UIImageDSP.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Pod::Spec.new do |s|
s.name = "UIImageDSP"
s.version = "0.0.1"
s.summary = "iOS UIImage processing functions using the Accelerate framework for speed"
s.homepage = "https://github.com/ssoper/uiimage-dsp"

s.license = {
:type => 'Apache',
:file => 'LICENSE'
}

s.authors = {
'gdawg' => '[email protected]',
'Sean Soper' => '[email protected]'
}

s.requires_arc = true
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/ssoper/uiimage-dsp.git", :tag => s.version.to_s }
s.frameworks = 'Accelerate'

s.source_files = 'UIImageDSP'
end
2 changes: 1 addition & 1 deletion image-dsp/UIImage+DSP.h → UIImageDSP/UIImage+DSP.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Most users will just want to call one of the imageByApplying... functions.
// For more advanced use see the DSPMatrixSize typdef and imageByApplyingMatrix methods.

#import <Foundation/Foundation.h>
@import UIKit;

// all the different matrix sizes we support
typedef enum {
Expand Down
6 changes: 3 additions & 3 deletions image-dsp/UIImage+DSP.m → UIImageDSP/UIImage+DSP.m
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ CGContextAndDataRef _dsp_utils_CreateARGBBitmapContext (CGImageRef inImage)
CGContextRef context = NULL;
CGColorSpaceRef colorSpace;
void * bitmapData;
int bitmapByteCount;
int bitmapBytesPerRow;
NSInteger bitmapByteCount;
NSInteger bitmapBytesPerRow;


size_t pixelsWide = CGImageGetWidth(inImage);
Expand All @@ -314,7 +314,7 @@ CGContextAndDataRef _dsp_utils_CreateARGBBitmapContext (CGImageRef inImage)
8,
bitmapBytesPerRow,
colorSpace,
kCGImageAlphaPremultipliedFirst);
(CGBitmapInfo)kCGImageAlphaPremultipliedFirst);
if (context == NULL)
{
free (bitmapData);
Expand Down
3 changes: 3 additions & 0 deletions UIImageDSPExample/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
inhibit_all_warnings!

pod 'UIImageDSP', :path => '..'
14 changes: 14 additions & 0 deletions UIImageDSPExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
PODS:
- UIImageDSP (0.0.1)

DEPENDENCIES:
- UIImageDSP (from `..`)

EXTERNAL SOURCES:
UIImageDSP:
:path: ..

SPEC CHECKSUMS:
UIImageDSP: f642f3d5df7af4cc70786192ee7e5d9af299acb8

COCOAPODS: 0.35.0
Loading