• Home
  • Raw
  • Download

Lines Matching refs:pMapDescr

161 UCHAR FDK_chMapDescr_getMapValue(const FDK_channelMapDescr* const pMapDescr,  in FDK_chMapDescr_getMapValue()  argument
165 FDK_ASSERT(pMapDescr != NULL); in FDK_chMapDescr_getMapValue()
167 if ((pMapDescr->fPassThrough == 0) && (pMapDescr->pMapInfoTab != NULL) && in FDK_chMapDescr_getMapValue()
168 (pMapDescr->mapInfoTabLen > mapIdx)) { /* Nest sanity check to avoid in FDK_chMapDescr_getMapValue()
171 if (chIdx < pMapDescr->pMapInfoTab[mapIdx].numChannels) { in FDK_chMapDescr_getMapValue()
172 mapValue = pMapDescr->pMapInfoTab[mapIdx].pChannelMap[chIdx]; in FDK_chMapDescr_getMapValue()
228 int FDK_chMapDescr_isValid(const FDK_channelMapDescr* const pMapDescr) { in FDK_chMapDescr_isValid() argument
232 if (pMapDescr != NULL) { in FDK_chMapDescr_isValid()
234 for (i = 0; (i < pMapDescr->mapInfoTabLen) && result; i += 1) { in FDK_chMapDescr_isValid()
235 if (!fdk_chMapDescr_isValidMap(&pMapDescr->pMapInfoTab[i])) { in FDK_chMapDescr_isValid()
246 void FDK_chMapDescr_init(FDK_channelMapDescr* const pMapDescr, in FDK_chMapDescr_init() argument
249 if (pMapDescr != NULL) { in FDK_chMapDescr_init()
252 pMapDescr->fPassThrough = (fPassThrough == 0) ? 0 : 1; in FDK_chMapDescr_init()
256 pMapDescr->pMapInfoTab = pMapInfoTab; in FDK_chMapDescr_init()
257 pMapDescr->mapInfoTabLen = mapInfoTabLen; in FDK_chMapDescr_init()
259 useDefaultTab = (FDK_chMapDescr_isValid(pMapDescr) == 0) ? 1 : 0; in FDK_chMapDescr_init()
263 pMapDescr->pMapInfoTab = mapInfoTabDflt; in FDK_chMapDescr_init()
264 pMapDescr->mapInfoTabLen = DFLT_CH_MAP_TAB_LEN; in FDK_chMapDescr_init()
272 int FDK_chMapDescr_setPassThrough(FDK_channelMapDescr* const pMapDescr, in FDK_chMapDescr_setPassThrough() argument
276 if (pMapDescr != NULL) { in FDK_chMapDescr_setPassThrough()
277 if ((pMapDescr->pMapInfoTab != NULL) && (pMapDescr->mapInfoTabLen > 0)) { in FDK_chMapDescr_setPassThrough()
278 pMapDescr->fPassThrough = (fPassThrough == 0) ? 0 : 1; in FDK_chMapDescr_setPassThrough()