• Home
  • Raw
  • Download

Lines Matching refs:hST

246     HANDLE_SPACE_TREE hST, const SPACE_TREE_SETUP *const hSetup,  in fdk_sacenc_spaceTree_Init()  argument
250 if ((hST == NULL) || (hSetup == NULL)) { in fdk_sacenc_spaceTree_Init()
256 hST->frameCount = 0; in fdk_sacenc_spaceTree_Init()
257 hST->bFrameKeep = bFrameKeep; in fdk_sacenc_spaceTree_Init()
260 hST->mode = hSetup->mode; in fdk_sacenc_spaceTree_Init()
261 hST->nParamBands = hSetup->nParamBands; in fdk_sacenc_spaceTree_Init()
262 hST->bUseCoarseQuantTtoIcc = hSetup->bUseCoarseQuantTtoIcc; in fdk_sacenc_spaceTree_Init()
263 hST->bUseCoarseQuantTtoCld = hSetup->bUseCoarseQuantTtoCld; in fdk_sacenc_spaceTree_Init()
264 hST->quantMode = hSetup->quantMode; in fdk_sacenc_spaceTree_Init()
265 hST->nChannelsInMax = hSetup->nChannelsInMax; in fdk_sacenc_spaceTree_Init()
266 hST->nHybridBandsMax = hSetup->nHybridBandsMax; in fdk_sacenc_spaceTree_Init()
268 if (SACENC_OK != (error = getTreeConfig(hST->mode, &hST->descr))) { in fdk_sacenc_spaceTree_Init()
272 switch (hST->mode) { in fdk_sacenc_spaceTree_Init()
282 if (hST->descr.nOttBoxes > SACENC_MAX_NUM_BOXES) { in fdk_sacenc_spaceTree_Init()
287 for (box = 0; box < hST->descr.nOttBoxes; box++) { in fdk_sacenc_spaceTree_Init()
289 boxConfig.subbandConfig = (BOX_SUBBAND_CONFIG)hST->nParamBands; in fdk_sacenc_spaceTree_Init()
290 boxConfig.bUseCoarseQuantCld = hST->bUseCoarseQuantTtoCld; in fdk_sacenc_spaceTree_Init()
291 boxConfig.bUseCoarseQuantIcc = hST->bUseCoarseQuantTtoIcc; in fdk_sacenc_spaceTree_Init()
293 boxConfig.boxQuantMode = (BOX_QUANTMODE)hST->quantMode; in fdk_sacenc_spaceTree_Init()
294 boxConfig.nHybridBandsMax = hST->nHybridBandsMax; in fdk_sacenc_spaceTree_Init()
295 boxConfig.bFrameKeep = hST->bFrameKeep; in fdk_sacenc_spaceTree_Init()
298 (error = fdk_sacenc_initTtoBox(hST->ttoBox[box], &boxConfig, in fdk_sacenc_spaceTree_Init()
310 static void SpaceTree_FrameKeep212(const HANDLE_SPACE_TREE hST, in SpaceTree_FrameKeep212() argument
316 if (hST->frameCount % 2 == 0) { in SpaceTree_FrameKeep212()
317 for (pb = 0; pb < hST->nParamBands; pb++) { in SpaceTree_FrameKeep212()
318 hST->pIcc_prev[BOX_0][pb] = hSTOut->ottData.icc[BOX_0][0][pb]; in SpaceTree_FrameKeep212()
319 hSTOut->ottData.cld[BOX_0][0][pb] = hST->pCld_prev[BOX_0][pb]; in SpaceTree_FrameKeep212()
322 for (pb = 0; pb < hST->nParamBands; pb++) { in SpaceTree_FrameKeep212()
323 hSTOut->ottData.icc[BOX_0][0][pb] = hST->pIcc_prev[BOX_0][pb]; in SpaceTree_FrameKeep212()
324 hST->pCld_prev[BOX_0][pb] = hSTOut->ottData.cld[BOX_0][0][pb]; in SpaceTree_FrameKeep212()
328 for (pb = 0; pb < hST->nParamBands; pb++) { in SpaceTree_FrameKeep212()
329 hST->pIcc_prev[BOX_0][pb] = hSTOut->ottData.icc[BOX_0][0][pb]; in SpaceTree_FrameKeep212()
330 hST->pCld_prev[BOX_0][pb] = hSTOut->ottData.cld[BOX_0][0][pb]; in SpaceTree_FrameKeep212()
333 hST->frameCount++; in SpaceTree_FrameKeep212()
334 if (hST->frameCount == MAX_KEEP_FRAMECOUNT) { in SpaceTree_FrameKeep212()
335 hST->frameCount = 0; in SpaceTree_FrameKeep212()
339 static FDK_SACENC_ERROR SpaceTree_FrameKeep(const HANDLE_SPACE_TREE hST, in SpaceTree_FrameKeep() argument
344 switch (hST->mode) { in SpaceTree_FrameKeep()
346 SpaceTree_FrameKeep212(hST, hSTOut, avoid_keep); in SpaceTree_FrameKeep()
357 HANDLE_SPACE_TREE hST, const INT paramSet, const INT nChannelsIn, in fdk_sacenc_spaceTree_Apply() argument
378 if ((hST == NULL) || (hSTOut == NULL) || (pppHybrid__FDK == NULL) || in fdk_sacenc_spaceTree_Apply()
384 if ((treeSetup = getTreeSetup(hST->mode)) == NULL) { in fdk_sacenc_spaceTree_Apply()
391 (nChannelsIn > hST->nChannelsInMax) || in fdk_sacenc_spaceTree_Apply()
392 (nHybridBands > hST->nHybridBandsMax)) { in fdk_sacenc_spaceTree_Apply()
423 hST->ttoBox[pTTO->boxId], nTimeSlots, startTimeSlot, nHybridBands, in fdk_sacenc_spaceTree_Apply()
435 if (hST->bFrameKeep == 1) { in fdk_sacenc_spaceTree_Apply()
436 if (SACENC_OK != (error = SpaceTree_FrameKeep(hST, hSTOut, avoid_keep))) { in fdk_sacenc_spaceTree_Apply()
452 HANDLE_SPACE_TREE const hST = *phSpaceTree; in fdk_sacenc_spaceTree_Close() local
456 if (SACENC_OK != (error = fdk_sacenc_destroyTtoBox(&hST->ttoBox[box]))) { in fdk_sacenc_spaceTree_Close()