#include "camtypes.h"#include "bfxalu.h"#include "GDrawIntf.h"#include "gdrawcon.h"#include "bitmpinf.h"#include "oilbitmap.h"#include "tracectl.h"#include "bfxpixop.h"#include "progress.h"Go to the source code of this file.
Defines | |
| #define | ACCUSOFT_HAS_BROKEN_NON_FULL_PALETTES |
| #define | new CAM_DEBUG_NEW |
| #define | ALUC_PART 0 |
| #define | ALUC_PARTMUL 1 |
| #define | ALUC_PARTREVMUL 2 |
| #define | ALUC_ADD 6 |
| #define | ALUC_SUB 7 |
| #define | FixMono(i, s) { /* empty macro*/ } |
| #define | BODGE_ACCUSOFT_RESIZE |
| #define | LUTBYTE(x, y) Data[x+(y<<8)] |
| Initialises LUT as below. | |
| #define | MLATestPixel(q) |
| Arithemtic operation to do the above. | |
| #define | __scanthresh(p) |
| #define | __scanthresh8(p) (pB[p]!=pT[p]) |
| #define | __scanthresh1(p) (((pB[p>>3]^pT[p>>3]) & (0x80>>(p&7))) !=0) |
| #define | QUANT_SHIFT 4 |
| #define | QUANT_SIZE ((1<<(8-QUANT_SHIFT))+1) |
| #define | QUANT_ROUND (1<<(QUANT_SHIFT-1)) |
| #define | QMEMBER(x, y, z) [((x)+QUANT_SIZE*((y)+QUANT_SIZE*(z)))] |
| #define | QUANT_NUMBER (QUANT_SIZE*QUANT_SIZE*QUANT_SIZE) |
Functions | |
| DECLARE_SOURCE ("$Revision: 1282 $") | |
| CC_IMPLEMENT_DYNCREATE (BfxErrorRegionList, CCObject) | |
| INT32 | BfxALUQuantisationRoutine (const void *arg1, const void *arg2) |
| A new bitmap is created as per function name. | |
|
|
Value: (( IntegerSquare( ((INT32)(pB[p].R)) - ((INT32)(pT[p].R))) \ + IntegerSquare( ((INT32)(pB[p].G)) - ((INT32)(pT[p].G))) \ + IntegerSquare( ((INT32)(pB[p].B)) - ((INT32)(pT[p].B)))) >= Value ) |
|
|
|
|
|
|
|
|
Definition at line 132 of file bfxalu.cpp. |
|
|
Definition at line 180 of file bfxalu.cpp. |
|
|
Definition at line 177 of file bfxalu.cpp. |
|
|
Definition at line 178 of file bfxalu.cpp. |
|
|
Definition at line 179 of file bfxalu.cpp. |
|
|
Definition at line 181 of file bfxalu.cpp. |
|
|
Definition at line 195 of file bfxalu.cpp. |
|
|
Definition at line 185 of file bfxalu.cpp. |
|
|
Initialises LUT as below.
Definition at line 216 of file bfxalu.cpp. |
|
|
Value: { \
OtherPixel = q; \
while (pA[OtherPixel] < 0x80000000) OtherPixel = pA[OtherPixel]; /* get top of pixel chain */ \
/* only count marked pixels (we can do this by eliminating clear pixels as we've processed all the pixels */ \
/* this routine considers). Don't count pixels which are attached to the same chain as us already */ \
if ((pA[OtherPixel] != ClearValue) && (OtherPixel !=TopChain)) \
{ \
/* OtherPixel points to the top of the other pixel's pixel chain */ \
/* Always use lowest numbered chain */ \
if (TopChain<OtherPixel) {SwapTemp=TopChain;TopChain=OtherPixel;OtherPixel=SwapTemp;} \
pA[OtherPixel]+=pA[TopChain]-0x80000000; /* Add chain values together */ \
pA[TopChain]= OtherPixel; /* attach top of current chain to pixel */ \
TopChain=OtherPixel; /* Move the current chain top. */ \
} \
}
Definition at line 1744 of file bfxalu.cpp. |
|
|
Definition at line 175 of file bfxalu.cpp. |
|
|
Definition at line 4418 of file bfxalu.cpp. |
|
|
Definition at line 4423 of file bfxalu.cpp. |
|
|
Definition at line 4415 of file bfxalu.cpp. |
|
|
Definition at line 4413 of file bfxalu.cpp. |
|
|
Definition at line 4414 of file bfxalu.cpp. |
|
||||||||||||
|
A new bitmap is created as per function name.
Definition at line 4404 of file bfxalu.cpp. 04405 { 04406 QuantisationCell * qc1 = *((QuantisationCell * *)(arg1)); 04407 QuantisationCell * qc2 = *((QuantisationCell * *)(arg2)); 04408 return ( ((qc1->pixels)>(qc2->pixels))?-1:( ((qc1->pixels)<(qc2->pixels))?1:0 ) ); 04409 }
|
|
||||||||||||
|
|
|
|
|
1.4.4