Lines Matching refs:hMetaDataEnc
219 HANDLE_FDK_METADATA_ENCODER hMetaDataEnc,
542 HANDLE_FDK_METADATA_ENCODER hMetaDataEnc, in FDK_MetadataEnc_Process() argument
555 metaDataDelayWriteIdx = hMetaDataEnc->metaDataDelayIdx; in FDK_MetadataEnc_Process()
558 metadataMode = hMetaDataEnc->metadataMode; in FDK_MetadataEnc_Process()
561 hMetaDataEnc->metaDataDelayIdx++; in FDK_MetadataEnc_Process()
562 …if (hMetaDataEnc->metaDataDelayIdx > hMetaDataEnc->nMetaDataDelay) hMetaDataEnc->metaDataDelayIdx … in FDK_MetadataEnc_Process()
565 metaDataDelayReadIdx = hMetaDataEnc->metaDataDelayIdx; in FDK_MetadataEnc_Process()
569 FDKmemcpy(&hMetaDataEnc->submittedMetaData, pMetadata, sizeof(AACENC_MetaData)); in FDK_MetadataEnc_Process()
573 if ( (hMetaDataEnc->finalizeMetaData!=0) && (hMetaDataEnc->metadataMode==0)) { in FDK_MetadataEnc_Process()
574 FDKmemcpy(&hMetaDataEnc->submittedMetaData, &defaultMetaDataSetup, sizeof(AACENC_MetaData)); in FDK_MetadataEnc_Process()
575 metadataMode = hMetaDataEnc->finalizeMetaData; in FDK_MetadataEnc_Process()
576 hMetaDataEnc->finalizeMetaData = 0; in FDK_MetadataEnc_Process()
581 &hMetaDataEnc->submittedMetaData, in FDK_MetadataEnc_Process()
582 hMetaDataEnc->nChannels, in FDK_MetadataEnc_Process()
584 &hMetaDataEnc->metaDataBuffer[metaDataDelayWriteIdx])) != METADATA_OK ) in FDK_MetadataEnc_Process()
590 if (hMetaDataEnc->metaDataBuffer[metaDataDelayWriteIdx].metadataMode != 0) { in FDK_MetadataEnc_Process()
592 &hMetaDataEnc->metaDataBuffer[metaDataDelayWriteIdx], in FDK_MetadataEnc_Process()
593 hMetaDataEnc->hDrcComp, in FDK_MetadataEnc_Process()
599 &hMetaDataEnc->submittedMetaData, in FDK_MetadataEnc_Process()
600 hMetaDataEnc->nChannels, in FDK_MetadataEnc_Process()
602 &hMetaDataEnc->metaDataBuffer[metaDataDelayWriteIdx]); in FDK_MetadataEnc_Process()
607 …if ( (err = WriteMetadataPayload(hMetaDataEnc, &hMetaDataEnc->metaDataBuffer[metaDataDelayReadIdx]… in FDK_MetadataEnc_Process()
612 *ppMetaDataExtPayload = hMetaDataEnc->exPayload; in FDK_MetadataEnc_Process()
613 *nMetaDataExtensions = hMetaDataEnc->nExtensions; in FDK_MetadataEnc_Process()
614 *matrix_mixdown_idx = hMetaDataEnc->matrix_mixdown_idx; in FDK_MetadataEnc_Process()
618 err = CompensateAudioDelay(hMetaDataEnc, pAudioSamples, nAudioSamples); in FDK_MetadataEnc_Process()
625 HANDLE_FDK_METADATA_ENCODER hMetaDataEnc, in CompensateAudioDelay() argument
632 if (hMetaDataEnc->nAudioDataDelay) { in CompensateAudioDelay()
633 int i, delaySamples = hMetaDataEnc->nAudioDataDelay*hMetaDataEnc->nChannels; in CompensateAudioDelay()
637 pAudioSamples[i] = hMetaDataEnc->audioDelayBuffer[hMetaDataEnc->audioDelayIdx]; in CompensateAudioDelay()
638 hMetaDataEnc->audioDelayBuffer[hMetaDataEnc->audioDelayIdx] = tmp; in CompensateAudioDelay()
640 hMetaDataEnc->audioDelayIdx++; in CompensateAudioDelay()
641 if (hMetaDataEnc->audioDelayIdx >= delaySamples) hMetaDataEnc->audioDelayIdx = 0; in CompensateAudioDelay()