AN2621 Freescale Semiconductor / Motorola, AN2621 Datasheet - Page 11

no-image

AN2621

Manufacturer Part Number
AN2621
Description
MPC8220i PF300 Image Coprocessor Operation
Manufacturer
Freescale Semiconductor / Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN26212B-PR
Manufacturer:
DUNE
Quantity:
279
Part Number:
AN26217A-PR
Manufacturer:
MOT
Quantity:
264
Part Number:
AN26217A-PR
Manufacturer:
PANASONIC
Quantity:
4 000
Part Number:
AN26217A-PR
Manufacturer:
PANASONIC/松下
Quantity:
20 000
MOTOROLA
// Loop over the number of lines in the destination
for (y = 0; y <= dy; y++)
{
// Reset shad_p to current shadow position
shad_p = (Uint1 *)shadow;
// Reset the current position to beginning of next destination line
sxi = sxmini;
sxf = sxminf;
syi = symini;
syf = syminf;
// Loop over the width of the destination
for (x = 0; x <= dx; x++)
{
} // This completes the horizontal loop
// Check to see if location is within the source rectangle
if ((sxi >= 0) && (sxi < w) &&
else
// Advance the source indices by the horizontal components
sxi = sxi + dsxi;
sxf = sxf + dsxf;
syi = syi + dsyi;
syf = syf + dsyf;
// Add "carry" bit to integer locations if necessary
if (sxf >= (1 << 32))
if (syf >= (1 << 32))
{
{
}
{
}
{
}
(syi >= 0) && (syi < nsrc))
}
// Location is inside, set the correspoding bit in shadow
shad_p[x] = 1;
// Assign the value of the source pixel to the destination
dest[x] = src_p[syi][sxi];
// Location is outside, clear corresponding bit in shadow
shad_p[x] = 0;
// Assign a constant value to the destination
dest[x] = 170;
sxi = sxi + 1;
sxf = sxf - (1 << 32);
syi = syi + 1;
syf = syf - (1 << 32);
MPC8220i PF300 Image Coprocessor Operation
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
11

Related parts for AN2621