Lines Matching refs:focusAreas
687 OMX_ALGOAREASTYPE **focusAreas; in setTouchFocus() local
704 focusAreas = (OMX_ALGOAREASTYPE**) memMgr.allocateBuffer(0, 0, NULL, areasSize, 1); in setTouchFocus()
709 if (!focusAreas) in setTouchFocus()
715 OMX_INIT_STRUCT_PTR (focusAreas[0], OMX_ALGOAREASTYPE); in setTouchFocus()
717 focusAreas[0]->nPortIndex = OMX_ALL; in setTouchFocus()
718 focusAreas[0]->nNumAreas = mFocusAreas.size(); in setTouchFocus()
719 focusAreas[0]->nAlgoAreaPurpose = OMX_AlgoAreaFocus; in setTouchFocus()
726 focusAreas[0]->nNumAreas = 0; in setTouchFocus()
734 (size_t&)focusAreas[0]->tAlgoAreas[n].nTop, in setTouchFocus()
735 (size_t&)focusAreas[0]->tAlgoAreas[n].nLeft, in setTouchFocus()
736 (size_t&)focusAreas[0]->tAlgoAreas[n].nWidth, in setTouchFocus()
737 (size_t&)focusAreas[0]->tAlgoAreas[n].nHeight); in setTouchFocus()
739 focusAreas[0]->tAlgoAreas[n].nLeft = in setTouchFocus()
740 … ( focusAreas[0]->tAlgoAreas[n].nLeft * TOUCH_FOCUS_RANGE ) / mPreviewData->mWidth; in setTouchFocus()
741 focusAreas[0]->tAlgoAreas[n].nTop = in setTouchFocus()
742 … ( focusAreas[0]->tAlgoAreas[n].nTop* TOUCH_FOCUS_RANGE ) / mPreviewData->mHeight; in setTouchFocus()
743 focusAreas[0]->tAlgoAreas[n].nWidth = in setTouchFocus()
744 … ( focusAreas[0]->tAlgoAreas[n].nWidth * TOUCH_FOCUS_RANGE ) / mPreviewData->mWidth; in setTouchFocus()
745 focusAreas[0]->tAlgoAreas[n].nHeight = in setTouchFocus()
746 … ( focusAreas[0]->tAlgoAreas[n].nHeight * TOUCH_FOCUS_RANGE ) / mPreviewData->mHeight; in setTouchFocus()
747 focusAreas[0]->tAlgoAreas[n].nPriority = mFocusAreas.itemAt(n)->getWeight(); in setTouchFocus()
750 … n, (int)focusAreas[0]->tAlgoAreas[n].nTop, (int)focusAreas[0]->tAlgoAreas[n].nLeft, in setTouchFocus()
751 … (int)focusAreas[0]->tAlgoAreas[n].nWidth, (int)focusAreas[0]->tAlgoAreas[n].nHeight, in setTouchFocus()
752 (int)focusAreas[0]->tAlgoAreas[n].nPriority); in setTouchFocus()
759 sharedBuffer.pSharedBuff = (OMX_U8 *) focusAreas[0]; in setTouchFocus()
778 if (NULL != focusAreas) in setTouchFocus()
780 memMgr.freeBuffer((void*) focusAreas); in setTouchFocus()
781 focusAreas = NULL; in setTouchFocus()