/* Some weird registers seem to store values in a sign/magnitude format!  */
static unsigned char ov7670_sm_to_abs(unsigned char v)
/* Some weird registers seem to store values in a sign/magnitude format!  */
static unsigned char ov7670_sm_to_abs(unsigned char v)
{
	if ((v & 0x80) == 0)
		return v + 128;
	return 128 - (v & 0x7f);
}