• Home
  • Raw
  • Download

Lines Matching refs:pPce

184 void CProgramConfig_Reset(CProgramConfig *pPce) { pPce->elCounter = 0; }  in CProgramConfig_Reset()  argument
186 void CProgramConfig_Init(CProgramConfig *pPce) { in CProgramConfig_Init() argument
187 FDKmemclear(pPce, sizeof(CProgramConfig)); in CProgramConfig_Init()
188 pPce->SamplingFrequencyIndex = 0xf; in CProgramConfig_Init()
191 int CProgramConfig_IsValid(const CProgramConfig *pPce) { in CProgramConfig_IsValid() argument
192 return ((pPce->isValid) ? 1 : 0); in CProgramConfig_IsValid()
203 static int CProgramConfig_ReadHeightExt(CProgramConfig *pPce, in CProgramConfig_ReadHeightExt() argument
214 FDK_ASSERT(pPce != NULL); in CProgramConfig_ReadHeightExt()
222 for (i = 0; i < pPce->NumFrontChannelElements; i++) { in CProgramConfig_ReadHeightExt()
223 if ((pPce->FrontElementHeightInfo[i] = (UCHAR)FDKreadBits(bs, 2)) >= in CProgramConfig_ReadHeightExt()
228 for (i = 0; i < pPce->NumSideChannelElements; i++) { in CProgramConfig_ReadHeightExt()
229 if ((pPce->SideElementHeightInfo[i] = (UCHAR)FDKreadBits(bs, 2)) >= in CProgramConfig_ReadHeightExt()
234 for (i = 0; i < pPce->NumBackChannelElements; i++) { in CProgramConfig_ReadHeightExt()
235 if ((pPce->BackElementHeightInfo[i] = (UCHAR)FDKreadBits(bs, 2)) >= in CProgramConfig_ReadHeightExt()
251 FDKmemclear(pPce->FrontElementHeightInfo, in CProgramConfig_ReadHeightExt()
252 sizeof(pPce->FrontElementHeightInfo)); in CProgramConfig_ReadHeightExt()
253 FDKmemclear(pPce->SideElementHeightInfo, in CProgramConfig_ReadHeightExt()
254 sizeof(pPce->SideElementHeightInfo)); in CProgramConfig_ReadHeightExt()
255 FDKmemclear(pPce->BackElementHeightInfo, in CProgramConfig_ReadHeightExt()
256 sizeof(pPce->BackElementHeightInfo)); in CProgramConfig_ReadHeightExt()
269 void CProgramConfig_Read(CProgramConfig *pPce, HANDLE_FDK_BITSTREAM bs, in CProgramConfig_Read() argument
274 pPce->NumEffectiveChannels = 0; in CProgramConfig_Read()
275 pPce->NumChannels = 0; in CProgramConfig_Read()
276 pPce->ElementInstanceTag = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
277 pPce->Profile = (UCHAR)FDKreadBits(bs, 2); in CProgramConfig_Read()
278 pPce->SamplingFrequencyIndex = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
279 pPce->NumFrontChannelElements = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
280 pPce->NumSideChannelElements = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
281 pPce->NumBackChannelElements = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
282 pPce->NumLfeChannelElements = (UCHAR)FDKreadBits(bs, 2); in CProgramConfig_Read()
283 pPce->NumAssocDataElements = (UCHAR)FDKreadBits(bs, 3); in CProgramConfig_Read()
284 pPce->NumValidCcElements = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
286 if ((pPce->MonoMixdownPresent = (UCHAR)FDKreadBits(bs, 1)) != 0) { in CProgramConfig_Read()
287 pPce->MonoMixdownElementNumber = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
290 if ((pPce->StereoMixdownPresent = (UCHAR)FDKreadBits(bs, 1)) != 0) { in CProgramConfig_Read()
291 pPce->StereoMixdownElementNumber = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
294 if ((pPce->MatrixMixdownIndexPresent = (UCHAR)FDKreadBits(bs, 1)) != 0) { in CProgramConfig_Read()
295 pPce->MatrixMixdownIndex = (UCHAR)FDKreadBits(bs, 2); in CProgramConfig_Read()
296 pPce->PseudoSurroundEnable = (UCHAR)FDKreadBits(bs, 1); in CProgramConfig_Read()
299 for (i = 0; i < pPce->NumFrontChannelElements; i++) { in CProgramConfig_Read()
300 pPce->FrontElementIsCpe[i] = (UCHAR)FDKreadBits(bs, 1); in CProgramConfig_Read()
301 pPce->FrontElementTagSelect[i] = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
302 pPce->NumChannels += pPce->FrontElementIsCpe[i] ? 2 : 1; in CProgramConfig_Read()
305 for (i = 0; i < pPce->NumSideChannelElements; i++) { in CProgramConfig_Read()
306 pPce->SideElementIsCpe[i] = (UCHAR)FDKreadBits(bs, 1); in CProgramConfig_Read()
307 pPce->SideElementTagSelect[i] = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
308 pPce->NumChannels += pPce->SideElementIsCpe[i] ? 2 : 1; in CProgramConfig_Read()
311 for (i = 0; i < pPce->NumBackChannelElements; i++) { in CProgramConfig_Read()
312 pPce->BackElementIsCpe[i] = (UCHAR)FDKreadBits(bs, 1); in CProgramConfig_Read()
313 pPce->BackElementTagSelect[i] = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
314 pPce->NumChannels += pPce->BackElementIsCpe[i] ? 2 : 1; in CProgramConfig_Read()
317 pPce->NumEffectiveChannels = pPce->NumChannels; in CProgramConfig_Read()
319 for (i = 0; i < pPce->NumLfeChannelElements; i++) { in CProgramConfig_Read()
320 pPce->LfeElementTagSelect[i] = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
321 pPce->NumChannels += 1; in CProgramConfig_Read()
324 for (i = 0; i < pPce->NumAssocDataElements; i++) { in CProgramConfig_Read()
325 pPce->AssocDataElementTagSelect[i] = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
328 for (i = 0; i < pPce->NumValidCcElements; i++) { in CProgramConfig_Read()
329 pPce->CcElementIsIndSw[i] = (UCHAR)FDKreadBits(bs, 1); in CProgramConfig_Read()
330 pPce->ValidCcElementTagSelect[i] = (UCHAR)FDKreadBits(bs, 4); in CProgramConfig_Read()
335 pPce->CommentFieldBytes = (UCHAR)FDKreadBits(bs, 8); in CProgramConfig_Read()
336 commentBytes = pPce->CommentFieldBytes; in CProgramConfig_Read()
339 err = CProgramConfig_ReadHeightExt(pPce, bs, &commentBytes, alignmentAnchor); in CProgramConfig_Read()
347 pPce->Comment[i] = text; in CProgramConfig_Read()
351 pPce->isValid = (err) ? 0 : 1; in CProgramConfig_Read()
442 void CProgramConfig_GetDefault(CProgramConfig *pPce, const UINT channelConfig) { in CProgramConfig_GetDefault() argument
443 FDK_ASSERT(pPce != NULL); in CProgramConfig_GetDefault()
446 CProgramConfig_Init(pPce); in CProgramConfig_GetDefault()
447 pPce->Profile = in CProgramConfig_GetDefault()
453 pPce->NumFrontChannelElements = 2; in CProgramConfig_GetDefault()
454 pPce->FrontElementIsCpe[0] = 0; in CProgramConfig_GetDefault()
455 pPce->FrontElementIsCpe[1] = 1; in CProgramConfig_GetDefault()
456 pPce->NumSideChannelElements = 1; in CProgramConfig_GetDefault()
457 pPce->SideElementIsCpe[0] = 1; in CProgramConfig_GetDefault()
458 pPce->NumBackChannelElements = 1; in CProgramConfig_GetDefault()
459 pPce->BackElementIsCpe[0] = 1; in CProgramConfig_GetDefault()
460 pPce->NumLfeChannelElements = 1; in CProgramConfig_GetDefault()
461 pPce->NumChannels = 8; in CProgramConfig_GetDefault()
462 pPce->NumEffectiveChannels = 7; in CProgramConfig_GetDefault()
463 pPce->isValid = 1; in CProgramConfig_GetDefault()
467 pPce->BackElementIsCpe[1] = 1; in CProgramConfig_GetDefault()
468 pPce->NumChannels += 1; in CProgramConfig_GetDefault()
469 pPce->NumEffectiveChannels += 1; in CProgramConfig_GetDefault()
472 pPce->NumFrontChannelElements += 2; in CProgramConfig_GetDefault()
473 pPce->FrontElementIsCpe[0] = 0; in CProgramConfig_GetDefault()
474 pPce->FrontElementIsCpe[1] = 1; in CProgramConfig_GetDefault()
475 pPce->NumBackChannelElements += 2; in CProgramConfig_GetDefault()
476 pPce->BackElementIsCpe[0] = 1; in CProgramConfig_GetDefault()
477 pPce->BackElementIsCpe[1] += 0; in CProgramConfig_GetDefault()
478 pPce->NumLfeChannelElements += 1; in CProgramConfig_GetDefault()
479 pPce->NumChannels += 7; in CProgramConfig_GetDefault()
480 pPce->NumEffectiveChannels += 6; in CProgramConfig_GetDefault()
481 pPce->isValid = 1; in CProgramConfig_GetDefault()
485 pPce->FrontElementHeightInfo[2] = 1; /* Top speaker */ in CProgramConfig_GetDefault()
488 pPce->NumFrontChannelElements += 1; in CProgramConfig_GetDefault()
489 pPce->FrontElementIsCpe[2] = 1; in CProgramConfig_GetDefault()
490 pPce->NumChannels += 2; in CProgramConfig_GetDefault()
491 pPce->NumEffectiveChannels += 2; in CProgramConfig_GetDefault()
494 pPce->NumLfeChannelElements += 1; in CProgramConfig_GetDefault()
495 pPce->NumChannels += 1; in CProgramConfig_GetDefault()
499 pPce->NumBackChannelElements += 1; in CProgramConfig_GetDefault()
500 pPce->BackElementIsCpe[0] = (channelConfig > 4) ? 1 : 0; in CProgramConfig_GetDefault()
501 pPce->NumChannels += (channelConfig > 4) ? 2 : 1; in CProgramConfig_GetDefault()
502 pPce->NumEffectiveChannels += (channelConfig > 4) ? 2 : 1; in CProgramConfig_GetDefault()
505 pPce->NumFrontChannelElements += 1; in CProgramConfig_GetDefault()
506 pPce->FrontElementIsCpe[1] = 1; in CProgramConfig_GetDefault()
507 pPce->NumChannels += 2; in CProgramConfig_GetDefault()
508 pPce->NumEffectiveChannels += 2; in CProgramConfig_GetDefault()
511 pPce->NumFrontChannelElements += 1; in CProgramConfig_GetDefault()
512 pPce->FrontElementIsCpe[0] = 0; in CProgramConfig_GetDefault()
513 pPce->NumChannels += 1; in CProgramConfig_GetDefault()
514 pPce->NumEffectiveChannels += 1; in CProgramConfig_GetDefault()
515 pPce->isValid = 1; in CProgramConfig_GetDefault()
519 pPce->NumFrontChannelElements = 1; in CProgramConfig_GetDefault()
520 pPce->FrontElementIsCpe[0] = 1; in CProgramConfig_GetDefault()
521 pPce->NumChannels += 2; in CProgramConfig_GetDefault()
522 pPce->NumEffectiveChannels += 2; in CProgramConfig_GetDefault()
523 pPce->isValid = 1; in CProgramConfig_GetDefault()
527 pPce->isValid = 0; /* To be explicit! */ in CProgramConfig_GetDefault()
531 if (pPce->isValid) { in CProgramConfig_GetDefault()
535 for (el = 0; el < pPce->NumFrontChannelElements; el += 1) { in CProgramConfig_GetDefault()
536 pPce->FrontElementTagSelect[el] = in CProgramConfig_GetDefault()
537 (pPce->FrontElementIsCpe[el]) ? elTagCpe++ : elTagSce++; in CProgramConfig_GetDefault()
539 for (el = 0; el < pPce->NumSideChannelElements; el += 1) { in CProgramConfig_GetDefault()
540 pPce->SideElementTagSelect[el] = in CProgramConfig_GetDefault()
541 (pPce->SideElementIsCpe[el]) ? elTagCpe++ : elTagSce++; in CProgramConfig_GetDefault()
543 for (el = 0; el < pPce->NumBackChannelElements; el += 1) { in CProgramConfig_GetDefault()
544 pPce->BackElementTagSelect[el] = in CProgramConfig_GetDefault()
545 (pPce->BackElementIsCpe[el]) ? elTagCpe++ : elTagSce++; in CProgramConfig_GetDefault()
548 for (el = 0; el < pPce->NumLfeChannelElements; el += 1) { in CProgramConfig_GetDefault()
549 pPce->LfeElementTagSelect[el] = elTagSce++; in CProgramConfig_GetDefault()
646 int CProgramConfig_LookupElement(CProgramConfig *pPce, UINT channelConfig, in CProgramConfig_LookupElement() argument
656 *elMapping = pPce->elCounter; in CProgramConfig_LookupElement()
657 if (elList[pPce->elCounter] != elType && in CProgramConfig_LookupElement()
666 } else if ((elList[pPce->elCounter] == ID_LFE) && in CProgramConfig_LookupElement()
682 pPce->elCounter++; in CProgramConfig_LookupElement()
687 if ((!pPce->isValid) || (pPce->NumChannels > chDescrLen)) { in CProgramConfig_LookupElement()
690 *elMapping = pPce->elCounter++; in CProgramConfig_LookupElement()
693 elList[pPce->elCounter] = elType; in CProgramConfig_LookupElement()
694 *elMapping = pPce->elCounter++; in CProgramConfig_LookupElement()
725 for (i = 0; i < pPce->NumFrontChannelElements; i++) { in CProgramConfig_LookupElement()
726 int heightLayer = pPce->FrontElementHeightInfo[i]; in CProgramConfig_LookupElement()
727 if (isCpe == pPce->FrontElementIsCpe[i] && in CProgramConfig_LookupElement()
728 pPce->FrontElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
735 for (el = 0; el < pPce->NumFrontChannelElements; el += 1) { in CProgramConfig_LookupElement()
736 if (pPce->FrontElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
738 chIdx += (pPce->FrontElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
742 for (el = 0; el < pPce->NumSideChannelElements; el += 1) { in CProgramConfig_LookupElement()
743 if (pPce->SideElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
745 chIdx += (pPce->SideElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
749 for (el = 0; el < pPce->NumBackChannelElements; el += 1) { in CProgramConfig_LookupElement()
750 if (pPce->BackElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
752 chIdx += (pPce->BackElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
756 elIdx += pPce->NumLfeChannelElements; in CProgramConfig_LookupElement()
757 chIdx += pPce->NumLfeChannelElements; in CProgramConfig_LookupElement()
772 if (pPce->FrontElementIsCpe[i]) { in CProgramConfig_LookupElement()
781 for (i = 0; i < pPce->NumSideChannelElements; i++) { in CProgramConfig_LookupElement()
782 int heightLayer = pPce->SideElementHeightInfo[i]; in CProgramConfig_LookupElement()
783 if (isCpe == pPce->SideElementIsCpe[i] && in CProgramConfig_LookupElement()
784 pPce->SideElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
791 for (el = 0; el < pPce->NumFrontChannelElements; el += 1) { in CProgramConfig_LookupElement()
792 if (pPce->FrontElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
794 chIdx += (pPce->FrontElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
798 for (el = 0; el < pPce->NumSideChannelElements; el += 1) { in CProgramConfig_LookupElement()
799 if (pPce->SideElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
801 chIdx += (pPce->SideElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
805 for (el = 0; el < pPce->NumBackChannelElements; el += 1) { in CProgramConfig_LookupElement()
806 if (pPce->BackElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
808 chIdx += (pPce->BackElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
813 elIdx += pPce->NumLfeChannelElements; in CProgramConfig_LookupElement()
814 chIdx += pPce->NumLfeChannelElements; in CProgramConfig_LookupElement()
829 if (pPce->SideElementIsCpe[i]) { in CProgramConfig_LookupElement()
838 for (i = 0; i < pPce->NumBackChannelElements; i++) { in CProgramConfig_LookupElement()
839 int heightLayer = pPce->BackElementHeightInfo[i]; in CProgramConfig_LookupElement()
840 if (isCpe == pPce->BackElementIsCpe[i] && in CProgramConfig_LookupElement()
841 pPce->BackElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
848 for (el = 0; el < pPce->NumFrontChannelElements; el += 1) { in CProgramConfig_LookupElement()
849 if (pPce->FrontElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
851 chIdx += (pPce->FrontElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
855 for (el = 0; el < pPce->NumSideChannelElements; el += 1) { in CProgramConfig_LookupElement()
856 if (pPce->SideElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
858 chIdx += (pPce->SideElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
862 for (el = 0; el < pPce->NumBackChannelElements; el += 1) { in CProgramConfig_LookupElement()
863 if (pPce->BackElementHeightInfo[el] == h) { in CProgramConfig_LookupElement()
865 chIdx += (pPce->BackElementIsCpe[el]) ? 2 : 1; in CProgramConfig_LookupElement()
869 elIdx += pPce->NumLfeChannelElements; in CProgramConfig_LookupElement()
870 chIdx += pPce->NumLfeChannelElements; in CProgramConfig_LookupElement()
885 if (pPce->BackElementIsCpe[i]) { in CProgramConfig_LookupElement()
899 for (i = 0; i < pPce->NumFrontChannelElements; i += 1) { in CProgramConfig_LookupElement()
900 int heightLayer = pPce->FrontElementHeightInfo[i]; in CProgramConfig_LookupElement()
902 cc[heightLayer] += (pPce->FrontElementIsCpe[i]) ? 2 : 1; in CProgramConfig_LookupElement()
905 for (i = 0; i < pPce->NumSideChannelElements; i += 1) { in CProgramConfig_LookupElement()
906 int heightLayer = pPce->SideElementHeightInfo[i]; in CProgramConfig_LookupElement()
908 cc[heightLayer] += (pPce->SideElementIsCpe[i]) ? 2 : 1; in CProgramConfig_LookupElement()
911 for (i = 0; i < pPce->NumBackChannelElements; i += 1) { in CProgramConfig_LookupElement()
912 int heightLayer = pPce->BackElementHeightInfo[i]; in CProgramConfig_LookupElement()
914 cc[heightLayer] += (pPce->BackElementIsCpe[i]) ? 2 : 1; in CProgramConfig_LookupElement()
918 for (i = 0; i < pPce->NumLfeChannelElements; i++) { in CProgramConfig_LookupElement()
922 if (pPce->LfeElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
938 for (i = 0; i < pPce->NumValidCcElements; i++) { in CProgramConfig_LookupElement()
939 if (pPce->ValidCcElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
946 for (i = 0; i < pPce->NumAssocDataElements; i++) { in CProgramConfig_LookupElement()
947 if (pPce->AssocDataElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
967 const CProgramConfig *pPce, in CProgramConfig_GetChannelDescription() argument
973 if ((chConfig == 0) && (pPce != NULL)) { in CProgramConfig_GetChannelDescription()
974 if (pPce->isValid) { in CProgramConfig_GetChannelDescription()
979 for (elIdx = 0; elIdx < pPce->NumFrontChannelElements; elIdx += 1) { in CProgramConfig_GetChannelDescription()
980 if (pPce->FrontElementHeightInfo[elIdx] == spkPlane) { in CProgramConfig_GetChannelDescription()
983 if (pPce->FrontElementIsCpe[elIdx]) { in CProgramConfig_GetChannelDescription()
990 for (elIdx = 0; elIdx < pPce->NumSideChannelElements; elIdx += 1) { in CProgramConfig_GetChannelDescription()
991 if (pPce->SideElementHeightInfo[elIdx] == spkPlane) { in CProgramConfig_GetChannelDescription()
994 if (pPce->SideElementIsCpe[elIdx]) { in CProgramConfig_GetChannelDescription()
1001 for (elIdx = 0; elIdx < pPce->NumBackChannelElements; elIdx += 1) { in CProgramConfig_GetChannelDescription()
1002 if (pPce->BackElementHeightInfo[elIdx] == spkPlane) { in CProgramConfig_GetChannelDescription()
1005 if (pPce->BackElementIsCpe[elIdx]) { in CProgramConfig_GetChannelDescription()
1013 for (elIdx = 0; elIdx < pPce->NumLfeChannelElements; elIdx += 1) { in CProgramConfig_GetChannelDescription()
1029 int CProgramConfig_GetPceChMap(const CProgramConfig *pPce, UCHAR pceChMap[], in CProgramConfig_GetPceChMap() argument
1031 const UCHAR *nElements = &pPce->NumFrontChannelElements; in CProgramConfig_GetPceChMap()
1035 FDK_ASSERT(pPce != NULL); in CProgramConfig_GetPceChMap()
1043 elHeight[0] = pPce->FrontElementHeightInfo; in CProgramConfig_GetPceChMap()
1044 elIsCpe[0] = pPce->FrontElementIsCpe; in CProgramConfig_GetPceChMap()
1045 elHeight[1] = pPce->SideElementHeightInfo; in CProgramConfig_GetPceChMap()
1046 elIsCpe[1] = pPce->SideElementIsCpe; in CProgramConfig_GetPceChMap()
1047 elHeight[2] = pPce->BackElementHeightInfo; in CProgramConfig_GetPceChMap()
1048 elIsCpe[2] = pPce->BackElementIsCpe; in CProgramConfig_GetPceChMap()
1062 unsigned elCh = pPce->NumLfeChannelElements; in CProgramConfig_GetPceChMap()
1099 int CProgramConfig_GetElementTable(const CProgramConfig *pPce, in CProgramConfig_GetElementTable() argument
1106 FDK_ASSERT(pPce != NULL); in CProgramConfig_GetElementTable()
1111 pPce->NumFrontChannelElements + pPce->NumSideChannelElements + in CProgramConfig_GetElementTable()
1112 pPce->NumBackChannelElements + pPce->NumLfeChannelElements) || in CProgramConfig_GetElementTable()
1113 (pPce->NumChannels == 0)) { in CProgramConfig_GetElementTable()
1117 for (i = 0; i < pPce->NumFrontChannelElements; i += 1) { in CProgramConfig_GetElementTable()
1118 elList[el++] = (pPce->FrontElementIsCpe[i]) ? ID_CPE : ID_SCE; in CProgramConfig_GetElementTable()
1121 for (i = 0; i < pPce->NumSideChannelElements; i += 1) { in CProgramConfig_GetElementTable()
1122 elList[el++] = (pPce->SideElementIsCpe[i]) ? ID_CPE : ID_SCE; in CProgramConfig_GetElementTable()
1125 for (i = 0; i < pPce->NumBackChannelElements; i += 1) { in CProgramConfig_GetElementTable()
1126 elList[el++] = (pPce->BackElementIsCpe[i]) ? ID_CPE : ID_SCE; in CProgramConfig_GetElementTable()
1129 for (i = 0; i < pPce->NumLfeChannelElements; i += 1) { in CProgramConfig_GetElementTable()
1134 switch (pPce->NumChannels) { in CProgramConfig_GetElementTable()
1138 *pChMapIdx = pPce->NumChannels; in CProgramConfig_GetElementTable()
1147 CProgramConfig_GetDefault(tmpPce, pPce->NumChannels); in CProgramConfig_GetElementTable()
1149 *pChMapIdx = (!(CProgramConfig_Compare(pPce, tmpPce) & 0xE)) in CProgramConfig_GetElementTable()
1150 ? pPce->NumChannels in CProgramConfig_GetElementTable()
1161 *pChMapIdx = (!(CProgramConfig_Compare(pPce, tmpPce) & 0xE)) ? 11 : 0; in CProgramConfig_GetElementTable()
1174 if (!(CProgramConfig_Compare(pPce, tmpPce) & 0xE)) { in CProgramConfig_GetElementTable()