mirror of
https://github.com/aaronsgiles/JPEGView.git
synced 2024-06-01 03:41:27 +00:00
92bdb55672
These are the sources for the final official release of JPEGView for the Mac, back in 1994.
1 line
666 B
C
1 line
666 B
C
/*********************************************************/
|
|
/* This source code copyright (c) 1991-2001, Aaron Giles */
|
|
/* See the Read Me file for licensing information. */
|
|
/* Contact email: mac@aarongiles.com */
|
|
/*********************************************************/
|
|
|
|
// void FillHistogram16(FillDataPtr theData)
|
|
|
|
register ushort *bp;
|
|
register ulong adr;
|
|
register ushort w;
|
|
|
|
while (theData->height--) {
|
|
bp = (ushort *)theData->baseAdr;
|
|
for (w = 0; w < theData->width; w++) {
|
|
adr = *bp++;
|
|
adr &= 0x00007fff;
|
|
if (!(++theData->histogram[adr])) theData->histogram[adr]--;
|
|
}
|
|
theData->baseAdr += theData->rowBytes;
|
|
}
|