17f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*
27f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * Copyright (C) 2008 The Android Open Source Project
37f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project *
47f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License");
57f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * you may not use this file except in compliance with the License.
67f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * You may obtain a copy of the License at
77f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project *
87f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project *      http://www.apache.org/licenses/LICENSE-2.0
97f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project *
107f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * Unless required by applicable law or agreed to in writing, software
117f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS,
127f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * See the License for the specific language governing permissions and
147f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project * limitations under the License.
157f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project */
167f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
177f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- includes ----------------------------------------------------------- */
187f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
197f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project#include "b_BasicEm/Functions.h"
207f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project#include "b_APIEm/FaceFinder.h"
217f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project#include "b_APIEm/BFFaceFinder.h"
227f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
237f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
247f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
257f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
267f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
277f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- \ghd{ auxiliary functions } ---------------------------------------- */
287f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
297f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
307f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
317f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
327f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
337f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
347f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
357f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- \ghd{ constructor / destructor } ----------------------------------- */
367f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
377f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
387f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
397f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
407f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
417f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectvoid bpi_FaceFinder_init( struct bbs_Context* cpA,
427f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project					      struct bpi_FaceFinder* ptrA )
437f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
447f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->typeE = 0;
457f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpSetParamsE = NULL;
467f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpSetRangeE = NULL;
477f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpProcessE = NULL;
487f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpPutDcrE = NULL;
497f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpGetDcrE = NULL;
507f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
517f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
527f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
537f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
547f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectvoid bpi_FaceFinder_exit( struct bbs_Context* cpA,
557f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project						  struct bpi_FaceFinder* ptrA )
567f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
577f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->typeE = 0;
587f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpSetParamsE = NULL;
597f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpSetRangeE = NULL;
607f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpProcessE = NULL;
617f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpPutDcrE = NULL;
627f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpGetDcrE = NULL;
637f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
647f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
657f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
667f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
677f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
687f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
697f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- \ghd{ operators } -------------------------------------------------- */
707f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
717f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
727f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
737f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
747f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
757f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectvoid bpi_FaceFinder_copy( struct bbs_Context* cpA,
767f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project						  struct bpi_FaceFinder* ptrA,
777f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project						  const struct bpi_FaceFinder* srcPtrA )
787f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
797f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->typeE = srcPtrA->typeE;
807f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpSetParamsE = srcPtrA->vpSetParamsE;
817f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpSetRangeE = srcPtrA->vpSetRangeE;
827f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpProcessE = srcPtrA->vpProcessE;
837f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpPutDcrE = srcPtrA->vpPutDcrE;
847f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	ptrA->vpGetDcrE = srcPtrA->vpGetDcrE;
857f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
867f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
877f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
887f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
897f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectflag bpi_FaceFinder_equal( struct bbs_Context* cpA,
907f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project						   const struct bpi_FaceFinder* ptrA,
917f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project						   const struct bpi_FaceFinder* srcPtrA )
927f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
937f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
947f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( ptrA->typeE != srcPtrA->typeE ) return FALSE;
957f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( ptrA->vpSetParamsE != srcPtrA->vpSetParamsE ) return FALSE;
967f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( ptrA->vpSetRangeE != srcPtrA->vpSetRangeE ) return FALSE;
977f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( ptrA->vpProcessE != srcPtrA->vpProcessE ) return FALSE;
987f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( ptrA->vpPutDcrE != srcPtrA->vpPutDcrE ) return FALSE;
997f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( ptrA->vpGetDcrE != srcPtrA->vpGetDcrE ) return FALSE;
1007f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return TRUE;
1017f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
1027f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1037f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1047f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1057f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1067f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1077f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- \ghd{ query functions } -------------------------------------------- */
1087f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1097f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1107f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1117f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1127f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1137f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1147f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1157f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- \ghd{ modify functions } ------------------------------------------- */
1167f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1177f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1187f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1197f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1207f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1217f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1227f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1237f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- \ghd{ I/O } -------------------------------------------------------- */
1247f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1257f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1267f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1277f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1287f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1297f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectuint32 bpi_FaceFinder_memSize( struct bbs_Context* cpA,
1307f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							   const struct bpi_FaceFinder* ptrA )
1317f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
1327f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	uint32 memSizeL = 0;
1337f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	memSizeL += bbs_SIZEOF16( ptrA->typeE );
1347f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return memSizeL;
1357f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
1367f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1377f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1387f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1397f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectuint32 bpi_FaceFinder_memWrite( struct bbs_Context* cpA,
1407f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							    const struct bpi_FaceFinder* ptrA,
1417f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							    uint16* memPtrA )
1427f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
1437f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	uint32 memSizeL = bpi_FaceFinder_memSize( cpA, ptrA );
1447f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	memPtrA += bbs_memWrite32( &ptrA->typeE, memPtrA );
1457f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return memSizeL;
1467f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
1477f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1487f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1497f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1507f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectuint32 bpi_FaceFinder_memRead( struct bbs_Context* cpA,
1517f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							   struct bpi_FaceFinder* ptrA,
1527f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							   const uint16* memPtrA )
1537f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
1547f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	bbs_DEF_fNameL( "uint32 bpi_FaceFinder_memRead( struct bbs_Context* cpA, struct bpi_FaceFinder* ptrA, const uint16* memPtrA )" )
1557f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	uint32 typeL;
1567f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1577f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( bbs_Context_error( cpA ) ) return 0;
1587f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	memPtrA += bbs_memRead32( &typeL, memPtrA );
1597f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1607f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	if( typeL != ptrA->typeE )
1617f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	{
1627f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		bbs_ERROR1( "%s:\nObject type mismatch! Attempt to read an incorrect object.", fNameL );
1637f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		return 0;
1647f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	}
1657f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1667f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return bpi_FaceFinder_memSize( cpA, ptrA );
1677f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
1687f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1697f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1707f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1717f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1727f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1737f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ---- \ghd{ exec functions } --------------------------------------------- */
1747f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/*                                                                           */
1757f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
1767f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1777f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1787f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1797f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectvoid bpi_faceFinderInit( struct bbs_Context* cpA,
1807f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project					  	 struct bpi_FaceFinder* ptrA,
1817f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project						 enum bpi_FaceFinderType typeA )
1827f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
1837f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	switch( typeA )
1847f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	{
1857f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		case bpi_FF_BF_FACE_FINDER:		bpi_BFFaceFinder_init( cpA,		( struct bpi_BFFaceFinder* )ptrA ); return;
1867f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1877f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		default: bbs_ERROR0( "bpi_faceFinderInit: invalid type" );
1887f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	}
1897f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
1907f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1917f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
1927f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
1937f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectvoid bpi_faceFinderExit( struct bbs_Context* cpA,
1947f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project					     struct bpi_FaceFinder* ptrA )
1957f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
1967f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	switch( ptrA->typeE )
1977f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	{
1987f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		case bpi_FF_BF_FACE_FINDER:	bpi_BFFaceFinder_exit( cpA,		( struct bpi_BFFaceFinder* )ptrA ); return;
1997f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2007f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		default: bbs_ERROR0( "bpi_faceFinderExit: invalid type" );
2017f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	}
2027f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
2037f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2047f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
2057f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2067f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectuint32 bpi_faceFinderMemSize( struct bbs_Context* cpA,
2077f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							  const struct bpi_FaceFinder* ptrA )
2087f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
2097f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	switch( ptrA->typeE )
2107f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	{
2117f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		case bpi_FF_BF_FACE_FINDER:	return bpi_BFFaceFinder_memSize( cpA,	( struct bpi_BFFaceFinder* )ptrA );
2127f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2137f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		default: bbs_ERROR0( "bpi_faceFinderExit: invalid type" );
2147f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	}
2157f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return 0;
2167f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
2177f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2187f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
2197f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2207f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectuint32 bpi_faceFinderMemWrite( struct bbs_Context* cpA,
2217f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							   const struct bpi_FaceFinder* ptrA, uint16* memPtrA )
2227f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
2237f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	switch( ptrA->typeE )
2247f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	{
2257f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		case bpi_FF_BF_FACE_FINDER:		return bpi_BFFaceFinder_memWrite( cpA,	( struct bpi_BFFaceFinder* )ptrA, memPtrA  );
2267f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2277f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		default: bbs_ERROR0( "bpi_faceFinderMemWrite: invalid type" );
2287f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	}
2297f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return 0;
2307f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
2317f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2327f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
2337f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2347f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectuint32 bpi_faceFinderMemRead( struct bbs_Context* cpA,
2357f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							  struct bpi_FaceFinder* ptrA,
2367f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							  const uint16* memPtrA,
2377f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project							  struct bbs_MemTbl* mtpA )
2387f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
2397f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	switch( ptrA->typeE )
2407f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	{
2417f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		case bpi_FF_BF_FACE_FINDER:	return bpi_BFFaceFinder_memRead( cpA,	( struct bpi_BFFaceFinder* )ptrA, memPtrA, mtpA );
2427f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2437f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		default: bbs_ERROR0( "bpi_faceFinderMemRead: invalid type" );
2447f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	}
2457f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return 0;
2467f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
2477f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2487f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
2497f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2507f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Projectuint32 bpi_faceFinderSizeOf16( struct bbs_Context* cpA, enum bpi_FaceFinderType typeA )
2517f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project{
2527f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	switch( typeA )
2537f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	{
2547f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		case bpi_FF_BF_FACE_FINDER:	return bbs_SIZEOF16( struct bpi_BFFaceFinder );
2557f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2567f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project		default: bbs_ERROR0( "bpi_faceFinderSizeOf16: invalid type" );
2577f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	}
2587f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project	return 0;
2597f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project}
2607f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2617f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ------------------------------------------------------------------------- */
2627f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
2637f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project/* ========================================================================= */
2647f81d9b6fa7f2ec161b682622db577a28c90b49fThe Android Open Source Project
265