pad = peasycap->frame_buffer[kad][0].pgo; rad = PAGE_SIZE;
odd = !!(peasycap->field_buffer[kex][0].kount);
- if (odd && (false == decimatepixel)) {
+ if (odd && (!decimatepixel)) {
JOM(8, "initial skipping %4i bytes p.%4i\n",
w3/multiplier, mad);
pad += (w3 / multiplier); rad -= (w3 / multiplier);
* READ w2 BYTES FROM FIELD BUFFER,
* WRITE w3 BYTES TO FRAME BUFFER
*/
- if (false == decimatepixel) {
+ if (!decimatepixel) {
over = w2;
do {
much = over; more = 0;
* UNLESS IT IS THE LAST LINE OF AN ODD FRAME
*/
/*---------------------------------------------------------------------------*/
- if ((false == odd) || (cz != wz)) {
+ if (!odd || (cz != wz)) {
over = w3;
do {
if (!rad) {
* WRITE w3 / 2 BYTES TO FRAME BUFFER
*/
/*---------------------------------------------------------------------------*/
- } else if (false == odd) {
+ } else if (!odd) {
over = w2;
do {
much = over; more = 0; margin = 0; mask = 0x00;
SAM("ERROR: discrepancy %i in bytes read\n", c2 - cz);
c3 = (mad + 1)*PAGE_SIZE - rad;
- if (false == decimatepixel) {
+ if (!decimatepixel) {
if (bytesperpixel * cz != c3)
SAM("ERROR: discrepancy %i in bytes written\n",
c3 - (bytesperpixel * cz));
} else {
- if (false == odd) {
+ if (!odd) {
if (bytesperpixel *
cz != (4 * c3))
SAM("ERROR: discrepancy %i in bytes written\n",
/*---------------------------------------------------------------------------*/
switch (bytesperpixel) {
case 2: {
- if (false == decimatepixel) {
+ if (!decimatepixel) {
memcpy(pad, pex, (size_t)much);
- if (false == byteswaporder) {
+ if (!byteswaporder) {
/* UYVY */
return 0;
} else {
return 0;
}
} else {
- if (false == byteswaporder) {
+ if (!byteswaporder) {
/* UYVY DECIMATED */
p2 = (u8 *)pex; p3 = (u8 *)pad; pz = p2 + much;
while (pz > p2) {
}
case 3:
{
- if (false == decimatepixel) {
- if (false == byteswaporder) {
+ if (!decimatepixel) {
+ if (!byteswaporder) {
/* RGB */
while (pz > p2) {
if (pr <= (p3 + bytesperpixel))
}
return 0;
} else {
- if (false == byteswaporder) {
+ if (!byteswaporder) {
/* RGB DECIMATED */
while (pz > p2) {
if (pr <= (p3 + bytesperpixel))
}
case 4:
{
- if (false == decimatepixel) {
- if (false == byteswaporder) {
+ if (!decimatepixel) {
+ if (!byteswaporder) {
/* RGBA */
while (pz > p2) {
if (pr <= (p3 + bytesperpixel))
}
return 0;
} else {
- if (false == byteswaporder) {
+ if (!byteswaporder) {
/*
* RGBA DECIMATED
*/