diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-03-27 03:35:26 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-03-27 03:35:26 +0000 |
commit | 32a4f8301c58305b09af59164cf76fa3c7f14cf6 (patch) | |
tree | 1c9123e8b0f3d61a377b8aab22eab52615190d89 /editor/pbmpscale.c | |
parent | 2eae804b74e84addce536e9fd771fee07e24494c (diff) | |
download | netpbm-mirror-32a4f8301c58305b09af59164cf76fa3c7f14cf6.tar.gz netpbm-mirror-32a4f8301c58305b09af59164cf76fa3c7f14cf6.tar.xz netpbm-mirror-32a4f8301c58305b09af59164cf76fa3c7f14cf6.zip |
Eliminate C++-style comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1159 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pbmpscale.c')
-rw-r--r-- | editor/pbmpscale.c | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/editor/pbmpscale.c b/editor/pbmpscale.c index 4aa7dc37..acdb862c 100644 --- a/editor/pbmpscale.c +++ b/editor/pbmpscale.c @@ -207,28 +207,30 @@ setFlags(const bit * const prevrow, 0x00 appears 180 times, 0xff 109 times. -----------------------------------------------------------------------------*/ -/*--------------------------------------------------------------------------- - - The following code is from the previous version, which examined - the corners one by one: - -// list of corner patterns; bit 7 is current color, bits 0-6 are squares -// around (excluding square behind), going clockwise. -// The high byte of the patterns is a mask, which determines which bits are -// not ignored. - -uint16_t const patterns[] - = { 0x0000, 0xd555, // no corner - 0x0001, 0xffc1, 0xd514, // normal corner - 0x0002, 0xd554, 0xd515, 0xbea2, 0xdfc0, 0xfd81, 0xfd80, 0xdf80, - // reduced corners - 0x0003, 0xbfa1, 0xfec2 }; // reduced if cutoff > 1 +#if 0 + /* The following code is from the previous version, which examined + the corners one by one: + */ - For example, the NE corner is examined with the following 8 bit sample: - Current : W : NW : N : NE : E : SE : S - (SW is the "square behind") + /* list of corner patterns; bit 7 is current color, bits 0-6 are squares + around (excluding square behind), going clockwise. + The high byte of the patterns is a mask, which determines which bits are + not ignored. + */ + uint16_t const patterns[] + = { 0x0000, 0xd555, /* no corner */ + 0x0001, 0xffc1, 0xd514, /* normal corner */ + 0x0002, 0xd554, 0xd515, 0xbea2, 0xdfc0, 0xfd81, 0xfd80, 0xdf80, + /* reduced corners */ + 0x0003, 0xbfa1, 0xfec2 }; /* reduced if cutoff > 1 */ + + /* + For example, the NE corner is examined with the following 8 bit sample: + Current : W : NW : N : NE : E : SE : S + (SW is the "square behind") + */ +#endif ------------------------------------------------------------------------------*/ uint32_t prevrow24, thisrow24, nextrow24; unsigned int col; |