Lines Matching refs:hdcrA
106 btk_Status btk_DCR_close( btk_HDCR hdcrA ) in btk_DCR_close() argument
109 if( hdcrA == NULL ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_close()
110 if( hdcrA->hidE != btk_HID_DCR ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_close()
111 if( hdcrA->hsdkE == NULL ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_close()
112 hsdkL = hdcrA->hsdkE; in btk_DCR_close()
117 btk_DCR_exit( &hsdkL->contextE, hdcrA ); in btk_DCR_close()
120 bbs_MemSeg_free( &hsdkL->contextE, hsdkL->contextE.memTblE.espArrE[ 0 ], hdcrA ); in btk_DCR_close()
128 btk_Status btk_DCR_assignGrayByteImage( btk_HDCR hdcrA, in btk_DCR_assignGrayByteImage() argument
133 return btk_DCR_assignImage( hdcrA, pDataA, widthA, heightA ); in btk_DCR_assignGrayByteImage()
138 btk_Status btk_DCR_assignImage( btk_HDCR hdcrA, in btk_DCR_assignImage() argument
146 if( hdcrA == NULL ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_assignImage()
147 if( hdcrA->hidE != btk_HID_DCR ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_assignImage()
148 hsdkL = hdcrA->hsdkE; in btk_DCR_assignImage()
167 bpi_DCR_assignGrayByteImage( &hsdkL->contextE, &hdcrA->dcrE, pDataA, widthA, heightA ); in btk_DCR_assignImage()
175 btk_Status btk_DCR_assignGrayByteImageROI( btk_HDCR hdcrA, in btk_DCR_assignGrayByteImageROI() argument
181 return btk_DCR_assignImageROI( hdcrA, pDataA, widthA, heightA, pRectA ); in btk_DCR_assignGrayByteImageROI()
186 btk_Status btk_DCR_assignImageROI( btk_HDCR hdcrA, in btk_DCR_assignImageROI() argument
195 if( hdcrA == NULL ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_assignImageROI()
196 if( hdcrA->hidE != btk_HID_DCR ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_assignImageROI()
197 hsdkL = hdcrA->hsdkE; in btk_DCR_assignImageROI()
241 bpi_DCR_assignGrayByteImageROI( &hsdkL->contextE, &hdcrA->dcrE, pDataA, widthA, heightA, &rectL ); in btk_DCR_assignImageROI()
250 u32 btk_DCR_nodeCount( btk_HDCR hdcrA ) in btk_DCR_nodeCount() argument
252 if( hdcrA == NULL ) return 0; in btk_DCR_nodeCount()
253 if( hdcrA->hidE != btk_HID_DCR ) return 0; in btk_DCR_nodeCount()
254 return hdcrA->dcrE.sdkClusterE.clusterE.sizeE; in btk_DCR_nodeCount()
259 btk_Status btk_DCR_getNode( btk_HDCR hdcrA, in btk_DCR_getNode() argument
266 if( hdcrA == NULL ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_getNode()
267 if( hdcrA->hidE != btk_HID_DCR ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_getNode()
268 hsdkL = hdcrA->hsdkE; in btk_DCR_getNode()
273 if( indexA >= hdcrA->dcrE.sdkClusterE.clusterE.sizeE ) in btk_DCR_getNode()
280 nodePtrA->id = hdcrA->dcrE.sdkClusterE.idArrE.arrPtrE[ indexA ]; in btk_DCR_getNode()
281 …nodePtrA->x = ( ( s16p16 )hdcrA->dcrE.sdkClusterE.clusterE.vecArrE[ indexA ].xE ) << ( 16 - hdcrA… in btk_DCR_getNode()
282 …nodePtrA->y = ( ( s16p16 )hdcrA->dcrE.sdkClusterE.clusterE.vecArrE[ indexA ].yE ) << ( 16 - hdcrA… in btk_DCR_getNode()
283 if( hdcrA->dcrE.roiRectE.x1E > 0 ) nodePtrA->x += ( int32 )hdcrA->dcrE.roiRectE.x1E << 16; in btk_DCR_getNode()
284 if( hdcrA->dcrE.roiRectE.y1E > 0 ) nodePtrA->y += ( int32 )hdcrA->dcrE.roiRectE.y1E << 16; in btk_DCR_getNode()
285 nodePtrA->x += ( int32 )hdcrA->dcrE.offsE.xE << 16; in btk_DCR_getNode()
286 nodePtrA->y += ( int32 )hdcrA->dcrE.offsE.yE << 16; in btk_DCR_getNode()
295 btk_Status btk_DCR_getRect( btk_HDCR hdcrA, in btk_DCR_getRect() argument
301 if( hdcrA == NULL ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_getRect()
302 if( hdcrA->hidE != btk_HID_DCR ) return btk_STATUS_INVALID_HANDLE; in btk_DCR_getRect()
303 hsdkL = hdcrA->hsdkE; in btk_DCR_getRect()
308 const struct bbs_Int16Arr* pIdArrL = &hdcrA->dcrE.sdkClusterE.idArrE; in btk_DCR_getRect()
332 int32 bbpL = hdcrA->dcrE.sdkClusterE.clusterE.bbpE; in btk_DCR_getRect()
333 …int32 lxL = ( hdcrA->dcrE.sdkClusterE.clusterE.vecArrE[ lIndexL ].xE + ( 1 << ( bbpL - 1 ) ) ) >> … in btk_DCR_getRect()
334 …int32 lyL = ( hdcrA->dcrE.sdkClusterE.clusterE.vecArrE[ lIndexL ].yE + ( 1 << ( bbpL - 1 ) ) ) >> … in btk_DCR_getRect()
335 …int32 rxL = ( hdcrA->dcrE.sdkClusterE.clusterE.vecArrE[ rIndexL ].xE + ( 1 << ( bbpL - 1 ) ) ) >> … in btk_DCR_getRect()
336 …int32 ryL = ( hdcrA->dcrE.sdkClusterE.clusterE.vecArrE[ rIndexL ].yE + ( 1 << ( bbpL - 1 ) ) ) >> … in btk_DCR_getRect()
343 if( hdcrA->dcrE.roiRectE.x1E > 0 ) in btk_DCR_getRect()
345 pRectA->xMin += ( int32 )hdcrA->dcrE.roiRectE.x1E << 16; in btk_DCR_getRect()
346 pRectA->xMax += ( int32 )hdcrA->dcrE.roiRectE.x1E << 16; in btk_DCR_getRect()
348 if( hdcrA->dcrE.roiRectE.y1E > 0 ) in btk_DCR_getRect()
350 pRectA->yMin += ( int32 )hdcrA->dcrE.roiRectE.y1E << 16; in btk_DCR_getRect()
351 pRectA->yMax += ( int32 )hdcrA->dcrE.roiRectE.y1E << 16; in btk_DCR_getRect()
354 pRectA->xMin += ( int32 )hdcrA->dcrE.offsE.xE << 16; in btk_DCR_getRect()
355 pRectA->yMin += ( int32 )hdcrA->dcrE.offsE.yE << 16; in btk_DCR_getRect()
356 pRectA->xMax += ( int32 )hdcrA->dcrE.offsE.xE << 16; in btk_DCR_getRect()
357 pRectA->yMax += ( int32 )hdcrA->dcrE.offsE.yE << 16; in btk_DCR_getRect()
368 s8p24 btk_DCR_confidence( btk_HDCR hdcrA ) in btk_DCR_confidence() argument
371 if( hdcrA == NULL ) return 0; in btk_DCR_confidence()
372 if( hdcrA->hidE != btk_HID_DCR ) return 0; in btk_DCR_confidence()
373 hsdkL = hdcrA->hsdkE; in btk_DCR_confidence()
376 return hdcrA->dcrE.confidenceE; in btk_DCR_confidence()
381 u32 btk_DCR_approved( btk_HDCR hdcrA ) in btk_DCR_approved() argument
384 if( hdcrA == NULL ) return 0; in btk_DCR_approved()
385 if( hdcrA->hidE != btk_HID_DCR ) return 0; in btk_DCR_approved()
386 hsdkL = hdcrA->hsdkE; in btk_DCR_approved()
389 return ( u32 )hdcrA->dcrE.approvedE; in btk_DCR_approved()