/* * 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 ); }
/* * 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; }