[svn] / trunk / xvidcore / src / bitstream / cbp.c Repository:
ViewVC logotype

View of /trunk/xvidcore/src/bitstream/cbp.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (download) (annotate)
Fri Mar 8 02:46:11 2002 UTC (19 years, 8 months ago) by Isibaar
File size: 357 byte(s)
moved sources
#include "../portab.h"
#include "cbp.h"

cbpFuncPtr calc_cbp;

uint32_t calc_cbp_c(const int16_t codes[6][64])
{
    uint32_t i, j;
    uint32_t cbp = 0;

    for (i = 0; i < 6; i++) {
		for (j = 1; j < 64/4; j+=4) {
			if (codes[i][j]  |codes[i][j+1]|
				codes[i][j+2]|codes[i][j+3]) {
				cbp |= 1 << (5 - i);
				break;
			}
		}
    }
    return cbp;
}

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4