• Home
  • Raw
  • Download

Lines Matching refs:pPce

95 void CProgramConfig_Reset(CProgramConfig *pPce)  in CProgramConfig_Reset()  argument
97 pPce->elCounter = 0; in CProgramConfig_Reset()
100 void CProgramConfig_Init(CProgramConfig *pPce) in CProgramConfig_Init() argument
102 FDKmemclear(pPce, sizeof(CProgramConfig)); in CProgramConfig_Init()
104 pPce->SamplingFrequencyIndex = 0xf; in CProgramConfig_Init()
108 int CProgramConfig_IsValid ( const CProgramConfig *pPce ) in CProgramConfig_IsValid() argument
110 return ( (pPce->isValid) ? 1 : 0); in CProgramConfig_IsValid()
115 CProgramConfig *pPce, in CProgramConfig_Read() argument
122 pPce->NumEffectiveChannels = 0; in CProgramConfig_Read()
123 pPce->NumChannels = 0; in CProgramConfig_Read()
124 pPce->ElementInstanceTag = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
125 pPce->Profile = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_Read()
126 pPce->SamplingFrequencyIndex = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
127 pPce->NumFrontChannelElements = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
128 pPce->NumSideChannelElements = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
129 pPce->NumBackChannelElements = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
130 pPce->NumLfeChannelElements = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_Read()
131 pPce->NumAssocDataElements = (UCHAR) FDKreadBits(bs,3); in CProgramConfig_Read()
132 pPce->NumValidCcElements = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
134 if ((pPce->MonoMixdownPresent = (UCHAR) FDKreadBits(bs,1)) != 0) in CProgramConfig_Read()
136 pPce->MonoMixdownElementNumber = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
139 if ((pPce->StereoMixdownPresent = (UCHAR) FDKreadBits(bs,1)) != 0) in CProgramConfig_Read()
141 pPce->StereoMixdownElementNumber = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
144 if ((pPce->MatrixMixdownIndexPresent = (UCHAR) FDKreadBits(bs,1)) != 0) in CProgramConfig_Read()
146 pPce->MatrixMixdownIndex = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_Read()
147 pPce->PseudoSurroundEnable = (UCHAR) FDKreadBits(bs,1); in CProgramConfig_Read()
150 for (i=0; i < pPce->NumFrontChannelElements; i++) in CProgramConfig_Read()
152 pPce->FrontElementIsCpe[i] = (UCHAR) FDKreadBits(bs,1); in CProgramConfig_Read()
153 pPce->FrontElementTagSelect[i] = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
154 pPce->NumChannels += pPce->FrontElementIsCpe[i] ? 2 : 1; in CProgramConfig_Read()
157 for (i=0; i < pPce->NumSideChannelElements; i++) in CProgramConfig_Read()
159 pPce->SideElementIsCpe[i] = (UCHAR) FDKreadBits(bs,1); in CProgramConfig_Read()
160 pPce->SideElementTagSelect[i] = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
161 pPce->NumChannels += pPce->SideElementIsCpe[i] ? 2 : 1; in CProgramConfig_Read()
164 for (i=0; i < pPce->NumBackChannelElements; i++) in CProgramConfig_Read()
166 pPce->BackElementIsCpe[i] = (UCHAR) FDKreadBits(bs,1); in CProgramConfig_Read()
167 pPce->BackElementTagSelect[i] = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
168 pPce->NumChannels += pPce->BackElementIsCpe[i] ? 2 : 1; in CProgramConfig_Read()
171 pPce->NumEffectiveChannels = pPce->NumChannels; in CProgramConfig_Read()
173 for (i=0; i < pPce->NumLfeChannelElements; i++) in CProgramConfig_Read()
175 pPce->LfeElementTagSelect[i] = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
176 pPce->NumChannels += 1; in CProgramConfig_Read()
179 for (i=0; i < pPce->NumAssocDataElements; i++) in CProgramConfig_Read()
181 pPce->AssocDataElementTagSelect[i] = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
184 for (i=0; i < pPce->NumValidCcElements; i++) in CProgramConfig_Read()
186 pPce->CcElementIsIndSw[i] = (UCHAR) FDKreadBits(bs,1); in CProgramConfig_Read()
187 pPce->ValidCcElementTagSelect[i] = (UCHAR) FDKreadBits(bs,4); in CProgramConfig_Read()
192 pPce->CommentFieldBytes = (UCHAR) FDKreadBits(bs,8); in CProgramConfig_Read()
194 for (i=0; i < pPce->CommentFieldBytes; i++) in CProgramConfig_Read()
202 pPce->Comment[i] = text; in CProgramConfig_Read()
206 pPce->isValid = 1; in CProgramConfig_Read()
282 void CProgramConfig_GetDefault( CProgramConfig *pPce, in CProgramConfig_GetDefault() argument
285 FDK_ASSERT(pPce != NULL); in CProgramConfig_GetDefault()
288 CProgramConfig_Init(pPce); in CProgramConfig_GetDefault()
289 pPce->Profile = 1; /* Set AAC LC because it is the only supported object type. */ in CProgramConfig_GetDefault()
294 pPce->NumLfeChannelElements += 1; in CProgramConfig_GetDefault()
295 pPce->NumChannels += 1; in CProgramConfig_GetDefault()
298 pPce->NumBackChannelElements += 1; in CProgramConfig_GetDefault()
299 pPce->BackElementIsCpe[0] = (channelConfig>4) ? 1 : 0; in CProgramConfig_GetDefault()
300 pPce->NumChannels += (channelConfig>4) ? 2 : 1; in CProgramConfig_GetDefault()
301 pPce->NumEffectiveChannels += (channelConfig>4) ? 2 : 1; in CProgramConfig_GetDefault()
303 pPce->NumFrontChannelElements += 1; in CProgramConfig_GetDefault()
304 pPce->FrontElementIsCpe[1] = 1; in CProgramConfig_GetDefault()
305 pPce->NumChannels += 2; in CProgramConfig_GetDefault()
306 pPce->NumEffectiveChannels += 2; in CProgramConfig_GetDefault()
308 pPce->NumFrontChannelElements += 1; in CProgramConfig_GetDefault()
309 pPce->FrontElementIsCpe[0] = 0; in CProgramConfig_GetDefault()
310 pPce->NumChannels += 1; in CProgramConfig_GetDefault()
311 pPce->NumEffectiveChannels += 1; in CProgramConfig_GetDefault()
312 pPce->isValid = 1; in CProgramConfig_GetDefault()
316 pPce->NumFrontChannelElements = 1; in CProgramConfig_GetDefault()
317 pPce->FrontElementIsCpe[0] = 1; in CProgramConfig_GetDefault()
318 pPce->NumChannels += 2; in CProgramConfig_GetDefault()
319 pPce->NumEffectiveChannels += 2; in CProgramConfig_GetDefault()
320 pPce->isValid = 1; in CProgramConfig_GetDefault()
324 pPce->isValid = 0; /* To be explicit! */ in CProgramConfig_GetDefault()
328 if (pPce->isValid) { in CProgramConfig_GetDefault()
332 for (el = 0; el < pPce->NumFrontChannelElements; el += 1) { in CProgramConfig_GetDefault()
333 pPce->FrontElementTagSelect[el] = (pPce->FrontElementIsCpe) ? elTagCpe++ : elTagSce++; in CProgramConfig_GetDefault()
335 for (el = 0; el < pPce->NumSideChannelElements; el += 1) { in CProgramConfig_GetDefault()
336 pPce->SideElementTagSelect[el] = (pPce->SideElementIsCpe) ? elTagCpe++ : elTagSce++; in CProgramConfig_GetDefault()
338 for (el = 0; el < pPce->NumBackChannelElements; el += 1) { in CProgramConfig_GetDefault()
339 pPce->BackElementTagSelect[el] = (pPce->BackElementIsCpe) ? elTagCpe++ : elTagSce++; in CProgramConfig_GetDefault()
342 for (el = 0; el < pPce->NumLfeChannelElements; el += 1) { in CProgramConfig_GetDefault()
343 pPce->LfeElementTagSelect[el] = elTagSce++; in CProgramConfig_GetDefault()
408 CProgramConfig *pPce, in CProgramConfig_LookupElement() argument
428 *elMapping = pPce->elCounter; in CProgramConfig_LookupElement()
429 if (elList[pPce->elCounter] != elType) { in CProgramConfig_LookupElement()
445 pPce->elCounter++; in CProgramConfig_LookupElement()
453 if (!pPce->isValid) in CProgramConfig_LookupElement()
462 elList[pPce->elCounter] = elType; in CProgramConfig_LookupElement()
463 *elMapping = pPce->elCounter++; in CProgramConfig_LookupElement()
478 for (i = 0; i < pPce->NumFrontChannelElements; i++) { in CProgramConfig_LookupElement()
479 if (isCpe == pPce->FrontElementIsCpe[i] && pPce->FrontElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
492 if (pPce->FrontElementIsCpe[i]) { in CProgramConfig_LookupElement()
499 for (i = 0; i < pPce->NumSideChannelElements; i++) { in CProgramConfig_LookupElement()
500 if (isCpe == pPce->SideElementIsCpe[i] && pPce->SideElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
513 if (pPce->SideElementIsCpe[i]) { in CProgramConfig_LookupElement()
520 for (i = 0; i < pPce->NumBackChannelElements; i++) { in CProgramConfig_LookupElement()
521 if (isCpe == pPce->BackElementIsCpe[i] && pPce->BackElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
534 if (pPce->BackElementIsCpe[i]) { in CProgramConfig_LookupElement()
544 cc = pPce->NumEffectiveChannels; in CProgramConfig_LookupElement()
545 … ec = pPce->NumFrontChannelElements+ pPce->NumSideChannelElements + pPce->NumBackChannelElements; in CProgramConfig_LookupElement()
547 for (i = 0; i < pPce->NumLfeChannelElements; i++) { in CProgramConfig_LookupElement()
548 if ( pPce->LfeElementTagSelect[i] == tag ) { in CProgramConfig_LookupElement()
564 for (i = 0; i < pPce->NumValidCcElements; i++) { in CProgramConfig_LookupElement()
565 if (pPce->ValidCcElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
572 for (i = 0; i < pPce->NumAssocDataElements; i++) { in CProgramConfig_LookupElement()
573 if (pPce->AssocDataElementTagSelect[i] == tag) { in CProgramConfig_LookupElement()
591 const CProgramConfig *pPce, in CProgramConfig_GetElementTable() argument
599 …< pPce->NumFrontChannelElements + pPce->NumSideChannelElements + pPce->NumBackChannelElements + pP… in CProgramConfig_GetElementTable()
605 for (i=0; i < pPce->NumFrontChannelElements; i++) in CProgramConfig_GetElementTable()
607 elList[el++] = (pPce->FrontElementIsCpe[i]) ? ID_CPE : ID_SCE; in CProgramConfig_GetElementTable()
610 for (i=0; i < pPce->NumSideChannelElements; i++) in CProgramConfig_GetElementTable()
612 elList[el++] = (pPce->SideElementIsCpe[i]) ? ID_CPE : ID_SCE; in CProgramConfig_GetElementTable()
615 for (i=0; i < pPce->NumBackChannelElements; i++) in CProgramConfig_GetElementTable()
617 elList[el++] = (pPce->BackElementIsCpe[i]) ? ID_CPE : ID_SCE; in CProgramConfig_GetElementTable()
620 for (i=0; i < pPce->NumLfeChannelElements; i++) in CProgramConfig_GetElementTable()