Lines Matching refs:hMetaData
250 const HANDLE_FDK_METADATA_ENCODER hMetaData,
388 HANDLE_FDK_METADATA_ENCODER hMetaData = NULL; in FDK_MetadataEnc_Open() local
396 if (NULL == (hMetaData = (HANDLE_FDK_METADATA_ENCODER)FDKcalloc( in FDK_MetadataEnc_Open()
401 FDKmemclear(hMetaData, sizeof(FDK_METADATA_ENCODER)); in FDK_MetadataEnc_Open()
403 if (NULL == (hMetaData->pAudioDelayBuffer = (INT_PCM*)FDKcalloc( in FDK_MetadataEnc_Open()
408 FDKmemclear(hMetaData->pAudioDelayBuffer, in FDK_MetadataEnc_Open()
410 hMetaData->maxChannels = maxChannels; in FDK_MetadataEnc_Open()
413 if (FDK_DRC_Generator_Open(&hMetaData->hDrcComp) != 0) { in FDK_MetadataEnc_Open()
417 hMetaData->channelMode = MODE_UNKNOWN; in FDK_MetadataEnc_Open()
420 *phMetaData = hMetaData; in FDK_MetadataEnc_Open()
425 FDK_MetadataEnc_Close(&hMetaData); in FDK_MetadataEnc_Open()
449 HANDLE_FDK_METADATA_ENCODER hMetaData, const INT resetStates, in FDK_MetadataEnc_Init() argument
456 if (hMetaData == NULL) { in FDK_MetadataEnc_Init()
466 if ((nChannels > (8)) || (nChannels > hMetaData->maxChannels) || in FDK_MetadataEnc_Init()
473 FDKmemcpy(&hMetaData->submittedMetaData, &defaultMetaDataSetup, in FDK_MetadataEnc_Init()
476 hMetaData->finalizeMetaData = in FDK_MetadataEnc_Init()
478 hMetaData->initializeMetaData = in FDK_MetadataEnc_Init()
482 if (resetStates || (hMetaData->nAudioDataDelay != -delay) || in FDK_MetadataEnc_Init()
483 (hMetaData->channelMode != channelMode)) { in FDK_MetadataEnc_Init()
484 if (resetStates || (hMetaData->channelMode == MODE_UNKNOWN)) { in FDK_MetadataEnc_Init()
486 FDKmemclear(hMetaData->pAudioDelayBuffer, in FDK_MetadataEnc_Init()
487 hMetaData->maxChannels * MAX_DRC_FRAMELEN * sizeof(INT_PCM)); in FDK_MetadataEnc_Init()
504 hMetaData->channelMode); in FDK_MetadataEnc_Init()
513 if (hMetaData->nChannels >= 2) { in FDK_MetadataEnc_Init()
516 &mapDescrPrev, ((hMetaData->channelMode == 2) ? 0 : 1), in FDK_MetadataEnc_Init()
517 hMetaData->channelMode); in FDK_MetadataEnc_Init()
519 &mapDescrPrev, ((hMetaData->channelMode == 2) ? 1 : 2), in FDK_MetadataEnc_Init()
520 hMetaData->channelMode); in FDK_MetadataEnc_Init()
532 i = (hMetaData->nChannels > (INT)nChannels) in FDK_MetadataEnc_Init()
534 : hMetaData->nAudioDataDelay - 1; in FDK_MetadataEnc_Init()
539 hMetaData->pAudioDelayBuffer[i * hMetaData->nChannels + src[c]]; in FDK_MetadataEnc_Init()
542 FDKmemcpy(&hMetaData->pAudioDelayBuffer[i * nChannels], in FDK_MetadataEnc_Init()
544 i += (hMetaData->nChannels > (INT)nChannels) ? 1 : -1; in FDK_MetadataEnc_Init()
545 } while ((i < hMetaData->nAudioDataDelay) && (i >= 0)); in FDK_MetadataEnc_Init()
549 FDKmemclear(hMetaData->metaDataBuffer, sizeof(hMetaData->metaDataBuffer)); in FDK_MetadataEnc_Init()
550 hMetaData->metaDataDelayIdx = 0; in FDK_MetadataEnc_Init()
551 hMetaData->initializeMetaData = in FDK_MetadataEnc_Init()
555 if ((hMetaData->metadataMode == 0) && (metadataMode != 0)) { in FDK_MetadataEnc_Init()
558 i < (int)(sizeof(hMetaData->metaDataBuffer) / sizeof(AAC_METADATA)); in FDK_MetadataEnc_Init()
560 LoadSubmittedMetadata(&hMetaData->submittedMetaData, nChannels, 0, in FDK_MetadataEnc_Init()
561 &hMetaData->metaDataBuffer[i]); in FDK_MetadataEnc_Init()
566 if ((hMetaData->metadataMode != 0) && (metadataMode == 0)) { in FDK_MetadataEnc_Init()
567 hMetaData->finalizeMetaData = hMetaData->metadataMode; in FDK_MetadataEnc_Init()
572 hMetaData->nAudioDataDelay = -delay; in FDK_MetadataEnc_Init()
573 hMetaData->nMetaDataDelay = nFrames; in FDK_MetadataEnc_Init()
574 hMetaData->nChannels = nChannels; in FDK_MetadataEnc_Init()
575 hMetaData->channelMode = channelMode; in FDK_MetadataEnc_Init()
576 hMetaData->metadataMode = metadataMode; in FDK_MetadataEnc_Init()
580 if (FDK_DRC_Generator_Initialize(hMetaData->hDrcComp, DRC_NONE, DRC_NONE, in FDK_MetadataEnc_Init()
811 const HANDLE_FDK_METADATA_ENCODER hMetaData, in WriteMetadataPayload() argument
815 if ((hMetaData == NULL) || (pMetadata == NULL)) { in WriteMetadataPayload()
820 hMetaData->nExtensions = 0; in WriteMetadataPayload()
821 hMetaData->matrix_mixdown_idx = -1; in WriteMetadataPayload()
826 hMetaData->exPayload[hMetaData->nExtensions].pData = in WriteMetadataPayload()
827 hMetaData->drcInfoPayload; in WriteMetadataPayload()
828 hMetaData->exPayload[hMetaData->nExtensions].dataType = EXT_DYNAMIC_RANGE; in WriteMetadataPayload()
829 hMetaData->exPayload[hMetaData->nExtensions].associatedChElement = -1; in WriteMetadataPayload()
831 hMetaData->exPayload[hMetaData->nExtensions].dataSize = in WriteMetadataPayload()
833 pMetadata, hMetaData->exPayload[hMetaData->nExtensions].pData); in WriteMetadataPayload()
835 hMetaData->nExtensions++; in WriteMetadataPayload()
840 hMetaData->matrix_mixdown_idx = in WriteMetadataPayload()
848 hMetaData->exPayload[hMetaData->nExtensions].pData = in WriteMetadataPayload()
849 hMetaData->drcDsePayload; in WriteMetadataPayload()
850 hMetaData->exPayload[hMetaData->nExtensions].dataType = EXT_DATA_ELEMENT; in WriteMetadataPayload()
851 hMetaData->exPayload[hMetaData->nExtensions].associatedChElement = -1; in WriteMetadataPayload()
853 hMetaData->exPayload[hMetaData->nExtensions].dataSize = in WriteMetadataPayload()
855 pMetadata, hMetaData->exPayload[hMetaData->nExtensions].pData); in WriteMetadataPayload()
857 hMetaData->nExtensions++; in WriteMetadataPayload()