5 // Created by Christian Brunschen on 31/03/2008.
8 * Copyright 2008 ZXing authors
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
23 #import <UIKit/UIKit.h>
24 #import "DecoderDelegate.h"
26 @interface Decoder : NSObject {
31 unsigned char *subsetData;
34 size_t subsetBytesPerRow;
35 id<DecoderDelegate> delegate;
36 NSOperationQueue *operationQueue;
39 @property(nonatomic, retain) UIImage *image;
40 @property(nonatomic, retain) NSSet *readers;
41 @property(nonatomic, assign) CGRect cropRect;
42 @property(nonatomic, retain) UIImage *subsetImage;
43 @property(nonatomic, assign) unsigned char *subsetData;
44 @property(assign) size_t subsetWidth;
45 @property(assign) size_t subsetHeight;
46 @property(assign) size_t subsetBytesPerRow;
47 @property(nonatomic, assign) id<DecoderDelegate> delegate;
48 @property (nonatomic, retain) NSOperationQueue *operationQueue;
50 - (void) decodeImage:(UIImage *)image;
51 - (void) decodeImage:(UIImage *)image cropRect:(CGRect)cropRect;