Exemple #1
0
void sbrDecodeEnd(sbr_info *sbr)
{
    uint8_t j;

    if (sbr)
    {
        qmfa_end(sbr->qmfa[0]);
        qmfs_end(sbr->qmfs[0]);
        if (sbr->qmfs[1] != NULL)
        {
            qmfa_end(sbr->qmfa[1]);
            qmfs_end(sbr->qmfs[1]);
        }

        for (j = 0; j < 5; j++)
        {
            if (sbr->G_temp_prev[0][j]) faad_free(sbr->G_temp_prev[0][j]);
            if (sbr->Q_temp_prev[0][j]) faad_free(sbr->Q_temp_prev[0][j]);
            if (sbr->G_temp_prev[1][j]) faad_free(sbr->G_temp_prev[1][j]);
            if (sbr->Q_temp_prev[1][j]) faad_free(sbr->Q_temp_prev[1][j]);
        }

#ifdef PS_DEC
        if (sbr->ps != NULL) 
            ps_free(sbr->ps);
#endif

#ifdef DRM_PS
        if (sbr->drm_ps != NULL)
            drm_ps_free(sbr->drm_ps);
#endif

        faad_free(sbr);
    }
}
Exemple #2
0
void sbrDecodeEnd(sbr_info *sbr)
{
    uint8_t j;

    if (sbr)
    {
        qmfa_end(sbr->qmfa[0]);
        qmfs_end(sbr->qmfs[0]);
        if (sbr->qmfs[1] != NULL)
        {
            qmfa_end(sbr->qmfa[1]);
            qmfs_end(sbr->qmfs[1]);
        }

        for (j = 0; j < 5; j++)
        {
            if (sbr->G_temp_prev[0][j]) faad_free(sbr->G_temp_prev[0][j]);
            if (sbr->Q_temp_prev[0][j]) faad_free(sbr->Q_temp_prev[0][j]);
            if (sbr->G_temp_prev[1][j]) faad_free(sbr->G_temp_prev[1][j]);
            if (sbr->Q_temp_prev[1][j]) faad_free(sbr->Q_temp_prev[1][j]);
        }

        faad_free(sbr);
    }
}
Exemple #3
0
void sbrDecodeEnd(sbr_info *sbr)
{
 uint8_t j;

 if(sbr){
  qmfa_end(sbr->qmfa[0]);
  qmfs_end(sbr->qmfs[0]);
  qmfa_end(sbr->qmfa[1]);
  qmfs_end(sbr->qmfs[1]);

  if (sbr->Xcodec[0]) free(sbr->Xcodec[0]);
  if (sbr->Xsbr[0])   free(sbr->Xsbr[0]);
  if (sbr->Xcodec[1]) free(sbr->Xcodec[1]);
  if (sbr->Xsbr[1])   free(sbr->Xsbr[1]);

  for (j = 0; j < 5; j++){
   if (sbr->G_temp_prev[0][j]) free(sbr->G_temp_prev[0][j]);
   if (sbr->Q_temp_prev[0][j]) free(sbr->Q_temp_prev[0][j]);
   if (sbr->G_temp_prev[1][j]) free(sbr->G_temp_prev[1][j]);
   if (sbr->Q_temp_prev[1][j]) free(sbr->Q_temp_prev[1][j]);
  }

  free(sbr);
 }
}