/* Returns a field of bits that indicates non zero ac blocks for this macro block  */
uint32_t calc_cbp_plain(const int16_t codes[6 *64])
/* Returns a field of bits that indicates non zero ac blocks for this macro block  */
uint32_t calc_cbp_plain(const int16_t codes[6 *64])
{
	int i, j;
	uint32_t cbp = 0;
	for (i = 0; i < 6; i++) {
		for (j=1; j<64;j++) {
			if (codes[64*i+j]) {
            	cbp |= 1 << (5-i);
				break;
			}
		}
	}
	return cbp;
}