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:
cA theora_info struct to initialize.

Definition at line 72 of file toplevel.c.

References 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));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index