Lines Matching refs:pFrameWinList

232 static FDK_SACENC_ERROR FrameWinList_Reset(FRAMEWIN_LIST *const pFrameWinList) {  in FrameWinList_Reset()  argument
235 if (NULL == pFrameWinList) { in FrameWinList_Reset()
240 pFrameWinList->dat[k].slot = -1; in FrameWinList_Reset()
241 pFrameWinList->dat[k].hold = FW_INTP; in FrameWinList_Reset()
243 pFrameWinList->n = 0; in FrameWinList_Reset()
248 static FDK_SACENC_ERROR FrameWindowList_Add(FRAMEWIN_LIST *const pFrameWinList, in FrameWindowList_Add() argument
253 if (NULL == pFrameWinList) { in FrameWindowList_Add()
256 if (pFrameWinList->n >= MAX_NUM_PARAMS) { /* Place left in List ?*/ in FrameWindowList_Add()
258 } else if (pFrameWinList->n > 0 && in FrameWindowList_Add()
259 pFrameWinList->dat[pFrameWinList->n - 1].slot - slot > 0) { in FrameWindowList_Add()
262 pFrameWinList->dat[pFrameWinList->n].slot = slot; in FrameWindowList_Add()
263 pFrameWinList->dat[pFrameWinList->n].hold = hold; in FrameWindowList_Add()
264 pFrameWinList->n++; in FrameWindowList_Add()
271 FRAMEWIN_LIST *const pFrameWinList, const INT idx) { in FrameWindowList_Remove() argument
274 if (NULL == pFrameWinList) { in FrameWindowList_Remove()
280 } else if (pFrameWinList->n > 0) { in FrameWindowList_Remove()
282 pFrameWinList->dat[idx].slot = -1; in FrameWindowList_Remove()
283 pFrameWinList->dat[idx].hold = FW_INTP; in FrameWindowList_Remove()
286 pFrameWinList->dat[k] = pFrameWinList->dat[k + 1]; in FrameWindowList_Remove()
289 pFrameWinList->n--; in FrameWindowList_Remove()
296 FRAMEWIN_LIST *const pFrameWinList, const INT ll /*lower limit*/, in FrameWindowList_Limit() argument
301 if (NULL == pFrameWinList) { in FrameWindowList_Limit()
305 for (k = 0; k < pFrameWinList->n; k++) { in FrameWindowList_Limit()
306 if (pFrameWinList->dat[k].slot < ll || pFrameWinList->dat[k].slot > ul) { in FrameWindowList_Limit()
307 FrameWindowList_Remove(pFrameWinList, k); in FrameWindowList_Limit()
319 FRAMEWIN_LIST *const pFrameWinList, const INT avoid_keep) { in fdk_sacenc_frameWindow_GetWindow() argument
323 (pFrameWinList == NULL) || (pWindowAna__FDK == NULL)) { in fdk_sacenc_frameWindow_GetWindow()
355 if (SACENC_OK != (error = FrameWinList_Reset(pFrameWinList))) goto bail; in fdk_sacenc_frameWindow_GetWindow()
367 (error = FrameWindowList_Add(pFrameWinList, p_l - 1, FW_HOLD))) in fdk_sacenc_frameWindow_GetWindow()
370 (error = FrameWindowList_Add(pFrameWinList, p_l, FW_INTP))) in fdk_sacenc_frameWindow_GetWindow()
375 (error = FrameWindowList_Add(pFrameWinList, p_l - 1, FW_HOLD))) in fdk_sacenc_frameWindow_GetWindow()
378 (error = FrameWindowList_Add(pFrameWinList, p_l, FW_INTP))) in fdk_sacenc_frameWindow_GetWindow()
380 if (SACENC_OK != (error = FrameWindowList_Add(pFrameWinList, in fdk_sacenc_frameWindow_GetWindow()
384 pFrameWinList, p_l + tranL + 1, FW_INTP))) in fdk_sacenc_frameWindow_GetWindow()
394 (error = FrameWindowList_Limit(pFrameWinList, 0, timeSlots - 1))) in fdk_sacenc_frameWindow_GetWindow()
399 (error = FrameWindowList_Add(pFrameWinList, timeSlots - 1, FW_HOLD))) in fdk_sacenc_frameWindow_GetWindow()
403 for (ps = 0; ps < pFrameWinList->n - 1; ps++) { in fdk_sacenc_frameWindow_GetWindow()
404 if (FW_HOLD != pFrameWinList->dat[ps].hold) { in fdk_sacenc_frameWindow_GetWindow()
405 int const start = pFrameWinList->dat[ps].slot; in fdk_sacenc_frameWindow_GetWindow()
406 int const stop = pFrameWinList->dat[ps + 1].slot; in fdk_sacenc_frameWindow_GetWindow()
424 (error = FrameWindowList_Remove(pFrameWinList, pFrameWinList->n - 1))) in fdk_sacenc_frameWindow_GetWindow()
431 (error = FrameWindowList_Add(pFrameWinList, timeSlots - 1, FW_INTP))) in fdk_sacenc_frameWindow_GetWindow()
500 pFramingInfo->numParamSets = pFrameWinList->n; in fdk_sacenc_frameWindow_GetWindow()
503 pFramingInfo->bsParamSlots[ps] = pFrameWinList->dat[ps].slot; in fdk_sacenc_frameWindow_GetWindow()