IMVBarcodeDecoderCallback2 Interface
The IMVBarcodeDecoderCallback2 interface contains callback methods that are called by the MV Barcode Decoder Filter to submit the decoded data to the controlling application.
After a video frame has been processed, the barcode decoder filter will call the members of this callback interface in the following order:
// Video frame/Image
number xxx has been processed
// Starting the whole update process
StartUpdate
// Number of barcodes found in this
image/video frame
SetNumOfCodes
// The
following sequence is called for each barcode
StartCodeUpdate
SetCode
SetCodeType
SetCodeSubType
...
EndCodeUpdate
// Done!
// You can now update your dialog etc.
EndUpdate
Methods:
StartUpdate
Starting to report the recognition results for the currently
processed video frame.
EndUpdate
Update finished.
SetNumOfCodes
Set number of barcodes recognized in the current video
frame.
StartCodeUpdate
Starting to report the results and properties for a code.
EndCodeUpdate
Finished reporting the properties of a code.
SetAxialNonuniformity
Set the axial nonuniformity.
SetCode
Set code characters.
SetCodeDimension
Set code dimension.
SetCodeRectangle
Set code rectangle.
SetCodeSubType
Set the subtype of the code.
SetCodeType
Set the type of the code.
SetDecodingTime
Set decoding time in ms.
SetNumOfReedSolomons
Set the number of Reed-Solomon errors.
SetPatternQuality
Set the percentage of wrong pixels.
SetPrintGrowth
Set the print growth for X and Y.
SetRejectionReason
Set rejection reason.
Header file: IMVBarcodeDecoder.h
Interface definition language file: IMVBarcodeDecoder.idl
Type Library: MVBarcodeDecoderStandard, MVBarcodeDecoderAdvanced
Interface ID: IID_IMVBarcodeDecoderCallback2
Methods:
Method IMVBarcodeDecoderCallback2::StartUpdate
Declaration: Sub StartUpdate()
Starting to report the recognition results for the currently processed video
frame.
C Prototype:
HRESULT StartUpdate();
Method IMVBarcodeDecoderCallback2::EndUpdate
Declaration: Sub EndUpdate()
Update finished.
C Prototype:
HRESULT EndUpdate();
Method IMVBarcodeDecoderCallback2::StartCodeUpdate
Declaration: Sub StartCodeUpdate(Index As Long)
Starting to report the results and properties for a code.
Parameter:
| Index | - |
C Prototype:
HRESULT StartCodeUpdate(LONG Index);
Method IMVBarcodeDecoderCallback2::EndCodeUpdate
Declaration: Sub EndCodeUpdate(Index As Long)
Finished reporting the properties of a code.
Parameter:
| Index | - |
C Prototype:
HRESULT EndCodeUpdate(LONG Index);
Method IMVBarcodeDecoderCallback2::SetAxialNonuniformity
Declaration: Sub SetAxialNonuniformity(Index As Long, AxialNU As Double)
Set the axial nonuniformity.
Parameter:
| Index | - | |
| AxialNU | - |
C Prototype:
HRESULT SetAxialNonuniformity(LONG Index, DOUBLE AxialNU);
Method IMVBarcodeDecoderCallback2::SetCode
Declaration: Sub SetCode(Index As Long, Code As String)
Set code characters.
Parameter:
| Index | - | |
| Code | - |
C Prototype:
HRESULT SetCode(LONG Index, STRING Code);
Method IMVBarcodeDecoderCallback2::SetCodeDimension
Declaration: Sub SetCodeDimension(Index As Long, X As Long, Y As Long)
Set code dimension.
Parameter:
| Index | - | |
| X | - | |
| Y | - |
C Prototype:
HRESULT SetCodeDimension(LONG Index, LONG X, LONG Y);
Method IMVBarcodeDecoderCallback2::SetCodeRectangle
Declaration: Sub SetCodeRectangle(Index As Long, X1 As Long, Y1 As Long, X2 As Long, Y2 As Long, X3 As Long, Y3 As Long, X4 As Long, Y4 As Long)
Set code rectangle.
Parameter:
| Index | - | |
| X1 | - | |
| Y1 | - | |
| X2 | - | |
| Y2 | - | |
| X3 | - | |
| Y3 | - | |
| X4 | - | |
| Y4 | - |
C Prototype:
HRESULT SetCodeRectangle(LONG Index, LONG X1, LONG Y1, LONG X2, LONG Y2, LONG X3, LONG Y3, LONG X4, LONG Y4);
Method IMVBarcodeDecoderCallback2::SetCodeSubType
Declaration: Sub SetCodeSubType(Index As Long, SubType As Long)
Set the subtype of the code.
Parameter:
| Index | - | |
| SubType | - |
C Prototype:
HRESULT SetCodeSubType(LONG Index, LONG SubType);
Method IMVBarcodeDecoderCallback2::SetCodeType
Declaration: Sub SetCodeType(Index As Long, Type As Long)
Set the type of the code.
Parameter:
| Index | - | |
| Type | - |
C Prototype:
HRESULT SetCodeType(LONG Index, LONG Type);
Method IMVBarcodeDecoderCallback2::SetDecodingTime
Declaration: Sub SetDecodingTime(Index As Long, Time As Long)
Set decoding time in ms.
Parameter:
| Index | - | |
| Time | - |
C Prototype:
HRESULT SetDecodingTime(LONG Index, LONG Time);
Method IMVBarcodeDecoderCallback2::SetNumOfCodes
Declaration: Sub SetNumOfCodes(NumOfCodes As Long)
Set result.
Parameter:
| NumOfCodes | - |
C Prototype:
HRESULT SetNumOfCodes(LONG NumOfCodes);
Method IMVBarcodeDecoderCallback2::SetNumOfReedSolomons
Declaration: Sub SetNumOfReedSolomons(Index As Long, NumOfReedSolomons As Long)
Set the number of Reed-Solomon errors.
Parameter:
| Index | - | |
| NumOfReedSolomons | - |
C Prototype:
HRESULT SetNumOfReedSolomons(LONG Index, LONG NumOfReedSolomons);
Method IMVBarcodeDecoderCallback2::SetPatternQuality
Declaration: Sub SetPatternQuality(Index As Long, Quality As Long)
Set the percentage of wrong pixels.
Parameter:
| Index | - | |
| Quality | - |
C Prototype:
HRESULT SetPatternQuality(LONG Index, LONG Quality);
Method IMVBarcodeDecoderCallback2::SetPrintGrowth
Declaration: Sub SetPrintGrowth(Index As Long, XPrintGrowth As Double, YPrintGrowth As Double)
Set the print growth for X and Y.
Parameter:
| Index | - | |
| XPrintGrowth | - | |
| YPrintGrowth | - |
C Prototype:
HRESULT SetPrintGrowth(LONG Index, DOUBLE XPrintGrowth, DOUBLE YPrintGrowth);
Method IMVBarcodeDecoderCallback2::SetRejectionReason
Declaration: Sub SetRejectionReason(Index As Long, RejectionReason As Long)
Set rejection reason.
Parameter:
| Index | - | |
| RejectionReason | - |
C Prototype:
HRESULT SetRejectionReason(LONG Index, LONG RejectionReason);