Logo Search packages:      
Sourcecode: libtheora version File versions  Download package

void theora_info_clear ( theora_info c  ) 

Clear a theora_info structure. All values within the given theora_info structure are cleared, and associated internal codec setup data is freed.

Parameters:
c A theora_info struct to initialize.

Definition at line 72 of file toplevel.c.

References theora_info::codec_setup, codec_setup_info::HuffRoot, codec_setup_info::qmats, codec_setup_info::range_table, and theora_info_clear().

Referenced by theora_clear(), and theora_info_clear().

                                       {
  codec_setup_info *ci=c->codec_setup;
  int i;
  if(ci){
    if(ci->qmats) _ogg_free(ci->qmats);
    for(i=0;i<6;i++)
      if(ci->range_table[i]) _ogg_free(ci->range_table[i]);
    ClearHuffmanTrees(ci->HuffRoot);
    _ogg_free(ci);
  }
  memset(c,0,sizeof(*c));
}


Generated by  Doxygen 1.6.0   Back to index