Barcode Xpress Mobile for iOS
 All Classes Functions Variables Properties Pages
BXRuntime.h
1 /**************************************************************
2  * Copyright 2011 - Accusoft Corporation, Tampa Florida. *
3  * This sample code is provided to Accusoft licensees "as is" *
4  * with no restrictions on use or modification. No warranty *
5  * for use of this sample code is provided by Accusoft. *
6  **************************************************************/
7 
16 #import <CoreMedia/CoreMedia.h>
17 #import <AVFoundation/AVFoundation.h>
18 #import "BarcodeXpressIOS.h"
19 #import "BXiOSAPI.h"
20 
26 @interface BXRuntime : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate, UIAlertViewDelegate> {
27 
28 @public
34 
35 @private
39  AVCaptureSession *m_videoCaptureSession;
40 
46 
50  NSMutableArray *m_threadQueues;
51 
56  id __unsafe_unretained m_cameraReceiver;
57 
63  id __unsafe_unretained m_recognitionReceiver;
64 
69  id __unsafe_unretained m_processingReceiver;
70 
76 
83 
89 
96  BOOL m_isPaused;
97 
105 
114 
119  BXiOSAPI *m_bxInterface;
120 
126 
137 }
138 
142 @property (nonatomic, strong) AVCaptureSession *m_videoCaptureSession;
143 
148 @property (nonatomic, assign) long m_barcodeTypes;
149 
154 @property /* atomic*/(assign) long m_numProcessedFrames;
155 
160 @property (nonatomic, unsafe_unretained) id m_cameraReceiver;
161 
167 @property (nonatomic, unsafe_unretained) id m_recognitionReceiver;
168 
173 @property (nonatomic, unsafe_unretained) id m_processingReceiver;
174 
179 @property (nonatomic, assign) SEL m_cameraCallback;
180 
186 @property (nonatomic, assign) SEL m_recognitionCallback;
187 
192 @property (nonatomic, assign) SEL m_processingCallback;
193 
200 @property (nonatomic, assign) BOOL m_isPaused;
201 
208 @property (nonatomic, assign) BOOL m_licenseAlertIsActive;
209 
217 @property (nonatomic, assign) BOOL m_useBlurDetection;
218 
223 @property (nonatomic, assign) BXiOSAPI* m_bxInterface;
224 
229 @property (nonatomic, assign) CGSize cameraResolution;
230 
240 @property (nonatomic, assign) BOOL m_terminateBackgroundImageSource;
241 
247 -(id)init;
248 
258 -(id)initWithLicense :(BXLicense*)inLicense;
259 
264 -(void)StartCaptureSession;
265 
270 -(void)StopCaptureSession;
271 
277 -(void)StartRecognition;
278 
284 -(void)StopRecognition;
285 
291 -(void)PauseRecognition;
292 
297 -(void)ResumeRecognition;
298 
311 -(void)SetCameraCallback :(id)receiver :(SEL)callback;
312 
328 -(void)SetRecognitionCallback :(id)receiver :(SEL)callback;
329 
342 -(void)SetProcessingCallback :(id)receiver :(SEL)callback;
343 
360 -(enum Status)RecognizeImage :(UIImage*)image result:(BXResult **)result;
361 
379 -(enum Status)RecognizeImage :(void*)image width:(size_t)width height:(size_t)height stride:(size_t)stride result:(BXResult **)result;
380 
396 -(enum Status)RecognizeImage :(UIImage*)image results:(NSMutableArray *)results maxBarcodes:(int)maxBarcodes;
397 
415 -(enum Status)RecognizeImage :(void*)image width:(size_t)width height:(size_t)height stride:(size_t)stride results:(NSMutableArray*)results maxBarcodes:(int)maxBarcodes;
416 
422 -(const char *)ReportVersion;
423 
431 -(long)SetBarcodeTypes :(long)types;
432 
439 -(AVCaptureSession*) GetCaptureSession;
440 
441 @end
442 
SEL m_cameraCallback
Gets and sets the method that will be called to receive messages when a video frame has been captured...
Definition: BXRuntime.h:75
BOOL m_isPaused
Gets and sets a boolean indicating the running state of the app.
Definition: BXRuntime.h:96
SEL m_recognitionCallback
Gets and sets the method that will be called to receive messages when a barcode has been found...
Definition: BXRuntime.h:82
BOOL m_terminateBackgroundImageSource
Gets and sets a boolean indicating whether to terminate the background method that supplies image dat...
Definition: BXRuntime.h:136
BOOL m_licenseAlertIsActive
Gets and sets a boolean indicating the licensing state of the recognition library.
Definition: BXRuntime.h:104
Defines a class that holds information about an Accusoft license to use the Accusoft Barcode Xpress S...
Definition: BXLicense.h:21
CGSize cameraResolution
Gets and sets the camera resolution that is being used.
Definition: BXRuntime.h:125
SEL m_processingCallback
Gets and sets the method that will be called to receive messages when a thread begins the process of ...
Definition: BXRuntime.h:88
Defines a class that handles the interactions between camera hardware, BXInterface (called by user pr...
Definition: BXRuntime.h:26
BXiOSAPI * m_bxInterface
Gets and sets the object that is the iOS wrapper around Barcode Xpress native library.
Definition: BXRuntime.h:119
BOOL m_useBlurDetection
Gets and sets a boolean indicating if the recognition library should check if an image is blurry befo...
Definition: BXRuntime.h:113
Defines a barcode result returned by the iOS Barcode Xpress SDK.
Definition: BarcodeXpressIOS.h:148
long m_numProcessedFrames
The number of frames processed since the object was instantiated, or the most recent barcode recognit...
Definition: BXRuntime.h:33
AVCaptureSession * m_videoCaptureSession
Gets and sets the hardware manager for the camera interface.
Definition: BXRuntime.h:39
long m_barcodeTypes
Gets and sets the types of barcodes that Barcode Xpress should search for and decode.
Definition: BXRuntime.h:45