Lines Matching refs:ancData
214 static AAC_DECODER_ERROR CAacDecoder_AncDataReset(CAncData *ancData) in CAacDecoder_AncDataReset() argument
219 ancData->offset[i] = 0; in CAacDecoder_AncDataReset()
221 ancData->nrElements = 0; in CAacDecoder_AncDataReset()
235 AAC_DECODER_ERROR CAacDecoder_AncDataInit(CAncData *ancData, unsigned char *buffer, int size) in CAacDecoder_AncDataInit() argument
238 ancData->buffer = buffer; in CAacDecoder_AncDataInit()
239 ancData->bufferSize = size; in CAacDecoder_AncDataInit()
241 CAacDecoder_AncDataReset(ancData); in CAacDecoder_AncDataInit()
259 AAC_DECODER_ERROR CAacDecoder_AncDataGet(CAncData *ancData, int index, unsigned char **ptr, int *si… in CAacDecoder_AncDataGet() argument
266 if (index >= 0 && index < 8 && index < ancData->nrElements) in CAacDecoder_AncDataGet()
268 *ptr = &ancData->buffer[ancData->offset[index]]; in CAacDecoder_AncDataGet()
269 *size = ancData->offset[index+1] - ancData->offset[index]; in CAacDecoder_AncDataGet()
287 CAncData *ancData, in CAacDecoder_AncDataParse() argument
294 if (ancData->buffer != NULL) in CAacDecoder_AncDataParse()
298 int offset = ancData->offset[ancData->nrElements]; in CAacDecoder_AncDataParse()
300 if ((offset + ancBytes) > ancData->bufferSize) in CAacDecoder_AncDataParse()
304 else if (ancData->nrElements >= 8-1) in CAacDecoder_AncDataParse()
313 ancData->buffer[i+offset] = FDKreadBits(hBs, 8); in CAacDecoder_AncDataParse()
317 ancData->nrElements++; in CAacDecoder_AncDataParse()
318 ancData->offset[ancData->nrElements] = ancBytes + ancData->offset[ancData->nrElements-1]; in CAacDecoder_AncDataParse()
342 CAncData *ancData, in CDataStreamElement_Read() argument
371 error = CAacDecoder_AncDataParse(ancData, bs, count); in CDataStreamElement_Read()
602 CAacDecoder_AncDataParse(&self->ancData, hBs, dataElementLength); in CAacDecoder_ExtPayloadParse()
733 CAacDecoder_AncDataInit(&self->ancData, NULL, 0); in CAacDecoder_Open()
1115 CAacDecoder_AncDataReset(&self->ancData); in CAacDecoder_DecodeFrame()
1382 &self->ancData, in CAacDecoder_DecodeFrame()
1412 ancIndex = self->ancData.nrElements - 1; in CAacDecoder_DecodeFrame()
1414 ancErr = CAacDecoder_AncDataGet( &self->ancData, in CAacDecoder_DecodeFrame()