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 
120 
131 }
132 
136 @property (nonatomic, strong) AVCaptureSession *m_videoCaptureSession;
137 
142 @property (nonatomic, assign) long m_barcodeTypes;
143 
148 @property /* atomic*/(assign) long m_numProcessedFrames;
149 
154 @property (nonatomic, unsafe_unretained) id m_cameraReceiver;
155 
161 @property (nonatomic, unsafe_unretained) id m_recognitionReceiver;
162 
167 @property (nonatomic, unsafe_unretained) id m_processingReceiver;
168 
173 @property (nonatomic, assign) SEL m_cameraCallback;
174 
180 @property (nonatomic, assign) SEL m_recognitionCallback;
181 
186 @property (nonatomic, assign) SEL m_processingCallback;
187 
194 @property (nonatomic, assign) BOOL m_isPaused;
195 
202 @property (nonatomic, assign) BOOL m_licenseAlertIsActive;
203 
211 @property (nonatomic, assign) BOOL m_useBlurDetection;
212 
217 @property (nonatomic, assign) CGSize cameraResolution;
218 
228 @property (nonatomic, assign) BOOL m_terminateBackgroundImageSource;
229 
235 -(id)init;
236 
246 -(id)initWithLicense :(BXLicense*)inLicense;
247 
252 -(void)StartCaptureSession;
253 
258 -(void)StopCaptureSession;
259 
265 -(void)StartRecognition;
266 
272 -(void)StopRecognition;
273 
279 -(void)PauseRecognition;
280 
285 -(void)ResumeRecognition;
286 
299 -(void)SetCameraCallback :(id)receiver :(SEL)callback;
300 
316 -(void)SetRecognitionCallback :(id)receiver :(SEL)callback;
317 
330 -(void)SetProcessingCallback :(id)receiver :(SEL)callback;
331 
348 -(BXiOS_Status)RecognizeImage :(UIImage*)image result:(BXResult **)result;
349 
367 -(BXiOS_Status)RecognizeImage :(void*)image width:(size_t)width height:(size_t)height stride:(size_t)stride result:(BXResult **)result;
368 
384 -(BXiOS_Status)RecognizeImage :(UIImage*)image results:(NSMutableArray *)results maxBarcodes:(int)maxBarcodes;
385 
403 -(BXiOS_Status)RecognizeImage :(void*)image width:(size_t)width height:(size_t)height stride:(size_t)stride results:(NSMutableArray*)results maxBarcodes:(int)maxBarcodes;
404 
410 -(const char *)ReportVersion;
411 
419 -(long)SetBarcodeTypes :(long)types;
420 
427 -(AVCaptureSession*) GetCaptureSession;
428 
429 @end
430 
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
Defines a class that handles the interactions between camera hardware, BXInterface (called by user pr...
Definition: BXRuntime.h:26
AVCaptureSession * m_videoCaptureSession
Gets and sets the hardware manager for the camera interface.
Definition: BXRuntime.h:39
BOOL m_licenseAlertIsActive
Gets and sets a boolean indicating the licensing state of the recognition library.
Definition: BXRuntime.h:104
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
long m_numProcessedFrames
The number of frames processed since the object was instantiated, or the most recent barcode recognit...
Definition: BXRuntime.h:33
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
BOOL m_isPaused
Gets and sets a boolean indicating the running state of the app.
Definition: BXRuntime.h:96
Defines a barcode result returned by the iOS Barcode Xpress SDK.
Definition: BarcodeXpressIOS.h:150
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:130
CGSize cameraResolution
Gets and sets the camera resolution that is being used.
Definition: BXRuntime.h:119
long m_barcodeTypes
Gets and sets the types of barcodes that Barcode Xpress should search for and decode.
Definition: BXRuntime.h:45