Lines Matching refs:hAacEnc
261 const HANDLE_AAC_ENC hAacEnc in FDKaacEnc_EncBitresToTpBitres() argument
266 switch (hAacEnc->bitrateMode) { in FDKaacEnc_EncBitresToTpBitres()
268 transporBitreservoir = hAacEnc->qcKernel->bitResTot; /* encoder bitreservoir level */ in FDKaacEnc_EncBitresToTpBitres()
287 if (hAacEnc->config->audioMuxVersion==2) { in FDKaacEnc_EncBitresToTpBitres()
288 transporBitreservoir = MIN_BUFSIZE_PER_EFF_CHAN * hAacEnc->channelMapping.nChannelsEff; in FDKaacEnc_EncBitresToTpBitres()
348 AAC_ENC *hAacEnc = NULL; in FDKaacEnc_Open() local
356 hAacEnc = GetRam_aacEnc_AacEncoder(); in FDKaacEnc_Open()
357 if (hAacEnc == NULL) { in FDKaacEnc_Open()
361 FDKmemclear(hAacEnc, sizeof(AAC_ENC)); in FDKaacEnc_Open()
363 hAacEnc->dynamic_RAM = GetAACdynamic_RAM(); in FDKaacEnc_Open()
364 dynamicRAM = (UCHAR*)hAacEnc->dynamic_RAM; in FDKaacEnc_Open()
367 ErrorStatus = FDKaacEnc_PsyNew(&hAacEnc->psyKernel, in FDKaacEnc_Open()
375 ErrorStatus = FDKaacEnc_PsyOutNew(hAacEnc->psyOut, in FDKaacEnc_Open()
385 ErrorStatus = FDKaacEnc_QCOutNew(hAacEnc->qcOut, in FDKaacEnc_Open()
395 ErrorStatus = FDKaacEnc_QCNew(&hAacEnc->qcKernel, in FDKaacEnc_Open()
402 hAacEnc->maxChannels = nChannels; in FDKaacEnc_Open()
403 hAacEnc->maxElements = nElements; in FDKaacEnc_Open()
404 hAacEnc->maxFrames = nSubFrames; in FDKaacEnc_Open()
407 *phAacEnc = hAacEnc; in FDKaacEnc_Open()
412 AAC_ENCODER_ERROR FDKaacEnc_Initialize(HANDLE_AAC_ENC hAacEnc, in FDKaacEnc_Initialize() argument
515 &hAacEnc->ancillaryBitsPerFrame, in FDKaacEnc_Initialize()
522 …config->ancDataBitRate += ( (hAacEnc->ancillaryBitsPerFrame * config->sampleRate) / config->framel… in FDKaacEnc_Initialize()
537 hAacEnc->config = config; in FDKaacEnc_Initialize()
540 hAacEnc->bitrateMode = (AACENC_BITRATE_MODE)config->bitrateMode; in FDKaacEnc_Initialize()
542 hAacEnc->encoderMode = config->channelMode; in FDKaacEnc_Initialize()
544 …ErrorStatus = FDKaacEnc_InitChannelMapping(hAacEnc->encoderMode, config->channelOrder, &hAacEnc->c… in FDKaacEnc_Initialize()
548 cm = &hAacEnc->channelMapping; in FDKaacEnc_Initialize()
550 ErrorStatus = FDKaacEnc_DetermineBandWidth(&hAacEnc->config->bandWidth, in FDKaacEnc_Initialize()
553 hAacEnc->bitrateMode, in FDKaacEnc_Initialize()
557 hAacEnc->encoderMode); in FDKaacEnc_Initialize()
561 hAacEnc->bandwidth90dB = (INT)hAacEnc->config->bandWidth; in FDKaacEnc_Initialize()
566 ErrorStatus = FDKaacEnc_psyInit(hAacEnc->psyKernel, in FDKaacEnc_Initialize()
567 hAacEnc->psyOut, in FDKaacEnc_Initialize()
568 hAacEnc->maxFrames, in FDKaacEnc_Initialize()
569 hAacEnc->maxChannels, in FDKaacEnc_Initialize()
575 ErrorStatus = FDKaacEnc_psyMainInit(hAacEnc->psyKernel, in FDKaacEnc_Initialize()
582 hAacEnc->bandwidth90dB, in FDKaacEnc_Initialize()
590 ErrorStatus = FDKaacEnc_QCOutInit(hAacEnc->qcOut, hAacEnc->maxFrames, cm); in FDKaacEnc_Initialize()
596 qcInit.channelMapping = &hAacEnc->channelMapping; in FDKaacEnc_Initialize()
630 …bw_ratio = fDivNorm((FIXP_DBL)(10*config->framelength*hAacEnc->bandwidth90dB), (FIXP_DBL)(config->… in FDKaacEnc_Initialize()
689 ErrorStatus = FDKaacEnc_QCInit(hAacEnc->qcKernel, &qcInit); in FDKaacEnc_Initialize()
693 hAacEnc->aot = hAacEnc->config->audioObjectType; in FDKaacEnc_Initialize()
712 AAC_ENCODER_ERROR FDKaacEnc_EncodeFrame( HANDLE_AAC_ENC hAacEnc, /* encoder handle */ in FDKaacEnc_EncodeFrame() argument
723 CHANNEL_MAPPING *cm = &hAacEnc->channelMapping; in FDKaacEnc_EncodeFrame()
727 PSY_OUT *psyOut = hAacEnc->psyOut[c]; in FDKaacEnc_EncodeFrame()
728 QC_OUT *qcOut = hAacEnc->qcOut[c]; in FDKaacEnc_EncodeFrame()
761 hAacEnc->psyKernel->psyElement[el], in FDKaacEnc_EncodeFrame()
762 hAacEnc->psyKernel->psyDynamic, in FDKaacEnc_EncodeFrame()
763 hAacEnc->psyKernel->psyConf, in FDKaacEnc_EncodeFrame()
773 hAacEnc->qcKernel->hAdjThr->adjThrStateElem[el], in FDKaacEnc_EncodeFrame()
776 hAacEnc->aot, in FDKaacEnc_EncodeFrame()
777 hAacEnc->config->syntaxFlags, in FDKaacEnc_EncodeFrame()
778 hAacEnc->config->epConfig); in FDKaacEnc_EncodeFrame()
806 hAacEnc->config->syntaxFlags, in FDKaacEnc_EncodeFrame()
807 hAacEnc->aot, in FDKaacEnc_EncodeFrame()
808 hAacEnc->config->epConfig ); in FDKaacEnc_EncodeFrame()
838 if (hAacEnc->ancillaryBitsPerFrame) { in FDKaacEnc_EncodeFrame()
840 payloadBits = hAacEnc->ancillaryBitsPerFrame; in FDKaacEnc_EncodeFrame()
844 if ((extPayload[n].dataSize>>3) <= hAacEnc->config->maxAncBytesPerAU) { in FDKaacEnc_EncodeFrame()
864 hAacEnc->config->syntaxFlags, in FDKaacEnc_EncodeFrame()
865 hAacEnc->aot, in FDKaacEnc_EncodeFrame()
866 hAacEnc->config->epConfig ); in FDKaacEnc_EncodeFrame()
876 if (!(hAacEnc->config->syntaxFlags & (AC_SCALABLE|AC_ER))) { in FDKaacEnc_EncodeFrame()
890 FDKaacEnc_AdjustBitrate(hAacEnc->qcKernel, in FDKaacEnc_EncodeFrame()
893 hAacEnc->config->bitRate, in FDKaacEnc_EncodeFrame()
894 hAacEnc->config->sampleRate, in FDKaacEnc_EncodeFrame()
895 hAacEnc->config->framelength); in FDKaacEnc_EncodeFrame()
898 avgTotalBits *= hAacEnc->config->nSubFrames; in FDKaacEnc_EncodeFrame()
903 …hAacEnc->qcKernel->globHdrBits = transportEnc_GetStaticBits(hTpEnc, avgTotalBits + hAacEnc->qcKern… in FDKaacEnc_EncodeFrame()
910 ErrorStatus = FDKaacEnc_QCMain(hAacEnc->qcKernel, in FDKaacEnc_EncodeFrame()
911 hAacEnc->psyOut, in FDKaacEnc_EncodeFrame()
912 hAacEnc->qcOut, in FDKaacEnc_EncodeFrame()
915 ,hAacEnc->aot, in FDKaacEnc_EncodeFrame()
916 hAacEnc->config->syntaxFlags, in FDKaacEnc_EncodeFrame()
917 hAacEnc->config->epConfig); in FDKaacEnc_EncodeFrame()
925 hAacEnc->qcKernel, in FDKaacEnc_EncodeFrame()
926 hAacEnc->qcKernel->elementBits, in FDKaacEnc_EncodeFrame()
927 hAacEnc->qcOut); in FDKaacEnc_EncodeFrame()
933 hAacEnc->qcKernel, in FDKaacEnc_EncodeFrame()
937 hAacEnc->aot, in FDKaacEnc_EncodeFrame()
938 hAacEnc->config->syntaxFlags, in FDKaacEnc_EncodeFrame()
939 hAacEnc->config->epConfig); in FDKaacEnc_EncodeFrame()
948 hAacEnc->qcKernel, in FDKaacEnc_EncodeFrame()
949 hAacEnc->qcOut); in FDKaacEnc_EncodeFrame()
958 FDKaacEnc_EncBitresToTpBitres(hAacEnc), in FDKaacEnc_EncodeFrame()
967 hAacEnc->qcKernel, in FDKaacEnc_EncodeFrame()
968 hAacEnc->aot, in FDKaacEnc_EncodeFrame()
969 hAacEnc->config->syntaxFlags, in FDKaacEnc_EncodeFrame()
970 hAacEnc->config->epConfig); in FDKaacEnc_EncodeFrame()
998 AAC_ENC *hAacEnc = (AAC_ENC*)*phAacEnc; in FDKaacEnc_Close() local
1000 if (hAacEnc->dynamic_RAM != NULL) in FDKaacEnc_Close()
1001 FreeAACdynamic_RAM(&hAacEnc->dynamic_RAM); in FDKaacEnc_Close()
1003 FDKaacEnc_PsyClose(&hAacEnc->psyKernel,hAacEnc->psyOut); in FDKaacEnc_Close()
1005 FDKaacEnc_QCClose(&hAacEnc->qcKernel, hAacEnc->qcOut); in FDKaacEnc_Close()