Exemple #1
0
/*
 * WritePartMainData:
 * ------------------
 */
static void WritePartMainData(BF_BitstreamPart *part, shine_global_config *config)
{
  BF_BitstreamElement *ep;
  int i;

  /* assert(part); */

  ep = part->element;
  for ( i = 0; i < part->nrEntries; i++, ep++ )
    WriteMainDataBits( ep->value, ep->length, config );
}
Exemple #2
0
/*
 * writePartMainData:
 * ------------------
 */
int writePartMainData( BF_BitstreamPart *part, BF_FrameResults *results )
{
  BF_BitstreamElement *ep;
  int i, bits;

/*  assert( results );*/
/*  assert( part );*/

  bits = 0;
  ep = part->element;
  for ( i = 0; i < part->nrEntries; i++, ep++ )
  {
    WriteMainDataBits( ep->value, ep->length, results );
    bits += ep->length;
  }
  return bits;
}