Lines Matching refs:ancData
321 static AAC_DECODER_ERROR CAacDecoder_AncDataReset(CAncData *ancData) { in CAacDecoder_AncDataReset() argument
324 ancData->offset[i] = 0; in CAacDecoder_AncDataReset()
326 ancData->nrElements = 0; in CAacDecoder_AncDataReset()
340 AAC_DECODER_ERROR CAacDecoder_AncDataInit(CAncData *ancData, in CAacDecoder_AncDataInit() argument
343 ancData->buffer = buffer; in CAacDecoder_AncDataInit()
344 ancData->bufferSize = size; in CAacDecoder_AncDataInit()
346 CAacDecoder_AncDataReset(ancData); in CAacDecoder_AncDataInit()
365 AAC_DECODER_ERROR CAacDecoder_AncDataGet(CAncData *ancData, int index, in CAacDecoder_AncDataGet() argument
372 if (index >= 0 && index < 8 - 1 && index < ancData->nrElements) { in CAacDecoder_AncDataGet()
373 *ptr = &ancData->buffer[ancData->offset[index]]; in CAacDecoder_AncDataGet()
374 *size = ancData->offset[index + 1] - ancData->offset[index]; in CAacDecoder_AncDataGet()
389 static AAC_DECODER_ERROR CAacDecoder_AncDataParse(CAncData *ancData, in CAacDecoder_AncDataParse() argument
395 if (ancData->buffer != NULL) { in CAacDecoder_AncDataParse()
398 int offset = ancData->offset[ancData->nrElements]; in CAacDecoder_AncDataParse()
400 if ((offset + ancBytes) > ancData->bufferSize) { in CAacDecoder_AncDataParse()
402 } else if (ancData->nrElements >= 8 - 1) { in CAacDecoder_AncDataParse()
408 ancData->buffer[i + offset] = FDKreadBits(hBs, 8); in CAacDecoder_AncDataParse()
412 ancData->nrElements++; in CAacDecoder_AncDataParse()
413 ancData->offset[ancData->nrElements] = in CAacDecoder_AncDataParse()
414 ancBytes + ancData->offset[ancData->nrElements - 1]; in CAacDecoder_AncDataParse()
467 error = CAacDecoder_AncDataParse(&self->ancData, bs, count); in CDataStreamElement_Read()
1098 CAacDecoder_AncDataParse(&self->ancData, hBs, dataElementLength); in CAacDecoder_ExtPayloadParse()
1337 CAacDecoder_AncDataInit(&self->ancData, NULL, 0); in CAacDecoder_Open()
2553 CAacDecoder_AncDataReset(&self->ancData); in CAacDecoder_DecodeFrame()