![]() |
Leptonica 1.85.0
Image processing and image analysis suite
|
Go to the source code of this file.
Macros | |
| #define | USE_INLINE_ACCESSORS 1 |
| #define | GET_DATA_BIT(pdata, n) |
| #define | SET_DATA_BIT(pdata, n) |
| #define | CLEAR_DATA_BIT(pdata, n) |
| #define | SET_DATA_BIT_VAL(pdata, n, val) |
| #define | GET_DATA_DIBIT(pdata, n) |
| #define | SET_DATA_DIBIT(pdata, n, val) |
| #define | CLEAR_DATA_DIBIT(pdata, n) |
| #define | GET_DATA_QBIT(pdata, n) |
| #define | SET_DATA_QBIT(pdata, n, val) |
| #define | CLEAR_DATA_QBIT(pdata, n) |
| #define | GET_DATA_BYTE(pdata, n) |
| #define | SET_DATA_BYTE(pdata, n, val) |
| #define | GET_DATA_TWO_BYTES(pdata, n) |
| #define | SET_DATA_TWO_BYTES(pdata, n, val) |
| #define | GET_DATA_FOUR_BYTES(pdata, n) |
| #define | SET_DATA_FOUR_BYTES(pdata, n, val) |
1, 2, 4, 8, 16 and 32 bit data access within an array of 32-bit words
This is used primarily to access 1, 2, 4, 8, 16 and 32 bit pixels
in a line of image data, represented as an array of 32-bit words.
pdata: pointer to first 32-bit word in the array
n: index of the pixel in the array
Function calls for these accessors are defined in arrayaccess.c.
However, for efficiency we use the inline macros for all accesses.
Even though the 2 and 4 bit set* accessors are more complicated,
they are about 10% faster than the function calls.
The 32 bit access is just a cast and ptr arithmetic. We include
it so that the input ptr can be void*.
At the end of this file is code for invoking the function calls
instead of inlining.
The macro SET_DATA_BIT_VAL(pdata, n, val) is a bit slower than
if (val == 0)
CLEAR_DATA_BIT(pdata, n);
else
SET_DATA_BIT(pdata, n);
Some compilers complain when the SET macros are surrounded by
parentheses, because parens require an evaluation and it is not
defined for SET macros. If SET_DATA_QBIT were defined as a
compound macro, in analogy to l_setDataQbit(), it requires
surrounding braces:
#define SET_DATA_QBIT(pdata, n, val) \
{l_uint32 *_TEMP_WORD_PTR_; \
_TEMP_WORD_PTR_ = (l_uint32 *)(pdata) + ((n) >> 3); \
*_TEMP_WORD_PTR_ &= ~(0xf0000000 >> (4 * ((n) & 7))); \
*_TEMP_WORD_PTR_ |= (((val) & 15) << (28 - 4 * ((n) & 7)));}
but if used in an if/else
the compiler sees
if (x)
{......};
else
...
The semicolon comes after the brace and will not compile.
This can be fixed in the call by either omitting the semicolon
or requiring another set of braces around SET_DATA_QBIT(), but
both these options break compatibility with current code, and
require special attention by anyone using the macros.
There are (at least) two ways to fix this in the macro definitions,
suggested by Dave Bryan.
(1) Surround the braces in the macro above with
do {....} while(0)
Then the semicolon just terminates the expression.
(2) Reduce the blocks to a single expression; e.g,
*((l_uint32 *)(pdata) + ((n) >> 3)) = \
*((l_uint32 *)(pdata) + ((n) >> 3)) \
& ~(0xf0000000 >> (4 * ((n) & 7))) \
| (((val) & 15) << (28 - 4 * ((n) & 7)))
This appears to cause redundant computation, but the compiler
should evaluate the common subexpression only once.
All these methods have the same performance, giving about 300M
SET_DATA_QBIT operations per second on a fast 64 bit system.
Using the function calls instead of the macros results in about 250M
SET_DATA_QBIT operations per second, a performance hit of nearly 20%.
Definition in file arrayaccess.h.
| #define CLEAR_DATA_BIT | ( | pdata, | |
| n ) |
1 bit access - clear
Definition at line 131 of file arrayaccess.h.
Referenced by pixClearPixel(), pixFlipPixel(), pixMakeRangeMaskHS(), pixMakeRangeMaskHV(), pixMakeRangeMaskSV(), pixRotateBySampling(), pixSeedfill4(), pixSeedfill4BB(), pixSeedfill8(), pixSeedfill8BB(), pixSetPixel(), pixSetSelectCmap(), and setPixelLow().
| #define CLEAR_DATA_DIBIT | ( | pdata, | |
| n ) |
2 bit access - clear
Definition at line 156 of file arrayaccess.h.
Referenced by pixClearPixel().
| #define CLEAR_DATA_QBIT | ( | pdata, | |
| n ) |
4 bit access - clear
Definition at line 175 of file arrayaccess.h.
Referenced by pixClearPixel().
| #define GET_DATA_BIT | ( | pdata, | |
| n ) |
1 bit access - get
Definition at line 123 of file arrayaccess.h.
Referenced by dewarpGetMeanVerticals(), findNextBorderPixel(), identifyWatershedBasin(), nextOnPixelInRasterLow(), pixAccumulate(), pixAffineSampled(), pixApplyHorizDisparity(), pixApplyVertDisparity(), pixAssignToNearestColor(), pixAverageInRect(), pixAverageInRectRGB(), pixAverageOnLine(), pixBilinearSampled(), pixBlendMask(), pixClipToForeground(), pixColorGrayMasked(), pixColorGrayMaskedCmap(), pixCombineMasked(), pixCombineMaskedGeneral(), pixConvert1To32(), pixConvertLossless(), pixConvertToDPix(), pixConvertToFPix(), pixCountArbInRect(), pixCountByColumn(), pixCountByRow(), pixCountPixelsByColumn(), pixExpandBinaryReplicate(), pixFindCornerPixels(), pixFindHorizontalRuns(), pixFindLargestRectangle(), pixFindMaxHorizontalRunOnLine(), pixFindMaxVerticalRunOnLine(), pixFindVerticalRuns(), pixFlipPixel(), pixGetAverageMasked(), pixGetBackgroundGrayMap(), pixGetBackgroundRGBMap(), pixGetCmapHistogramMasked(), pixGetColorHistogramMasked(), pixGetGrayHistogramMasked(), pixGetMomentByColumn(), pixGetPixel(), pixGetPixelAverage(), pixGrayQuantFromHisto(), pixLocToColorTransform(), pixPaintThroughMask(), pixProjectiveSampled(), pixQuadraticVShearSampled(), pixQualifyLocalMinima(), pixRemoveColormap(), pixRotate90(), pixRotateBySampling(), pixScanForEdge(), pixScanForForeground(), pixSearchBinaryMaze(), pixSearchForRectangle(), pixSeedfill4(), pixSeedfill4BB(), pixSeedfill8(), pixSeedfill8BB(), pixSelectMinInConnComp(), pixSetMasked(), pixSetMaskedCmap(), pixSetSelectCmap(), pixSetSelectMaskedCmap(), pixStretchHorizontalSampled(), pixTestClipToForeground(), pixTRCMap(), pixTRCMapGeneral(), pixVarianceInRect(), pixWriteStreamPam(), and ptaGetPixelsFromPix().
| #define GET_DATA_BYTE | ( | pdata, | |
| n ) |
8 bit access - get
Definition at line 188 of file arrayaccess.h.
Referenced by bilateralApply(), bilateralCreate(), blockconvLow(), blocksumLow(), dilateGrayLow(), distanceFunctionLow(), ditherTo2bppLineLow(), ditherToBinaryLineLow(), erodeGrayLow(), identifyWatershedBasin(), linearInterpolatePixelGray(), makeGrayQuantColormapArb(), pixAbsDiffByColumn(), pixAbsDiffByRow(), pixAbsDifference(), pixAbsDiffInRect(), pixAccumulate(), pixAddConstantGray(), pixAddGaussianNoise(), pixAddGray(), pixAddMinimalGrayColormap8(), pixaExtractColumnFromEachPix(), pixAffineSampled(), pixAlphaIsOpaque(), pixApplyHorizDisparity(), pixApplyInvBackgroundGrayMap(), pixApplyLocalThreshold(), pixApplyVariableGrayMap(), pixApplyVertDisparity(), pixAssignToNearestColor(), pixAverageByColumn(), pixAverageByRow(), pixAverageInRect(), pixAverageOnLine(), pixAverageRasterScans(), pixBilateralGrayExact(), pixBilinearSampled(), pixBlendCmap(), pixBlendGray(), pixBlendGrayAdapt(), pixBlendGrayInverse(), pixBlendWithGrayMask(), pixCensusTransform(), pixCentroid(), pixCentroid8(), pixColorGrayMaskedCmap(), pixColorGrayRegionsCmap(), pixColorizeGray(), pixColorSegmentTryCluster(), pixColumnStats(), pixCombineMasked(), pixCombineMaskedGeneral(), pixConvert1To2(), pixConvert1To4(), pixConvert2To8(), pixConvert8To16(), pixConvert8To32(), pixConvert8To4(), pixConvertCmapTo1(), pixConvertGrayToColormap8(), pixConvertGrayToSubpixelRGB(), pixConvertToDPix(), pixConvertToFPix(), pixConvolve(), pixCopyRGBComponent(), pixCountArbInRect(), pixDilateGray3h(), pixDilateGray3v(), pixErodeGray3h(), pixErodeGray3v(), pixExpandBinaryPower2(), pixExpandReplicate(), pixFadeWithGray(), pixFewColorsOctcubeQuantMixed(), pixFindEqualValues(), pixFlipLR(), pixFlipPixel(), pixGenerateMaskByBand(), pixGenerateMaskByValue(), pixGetAverageMasked(), pixGetAverageTiled(), pixGetBackgroundGrayMap(), pixGetBinnedColor(), pixGetCmapHistogram(), pixGetCmapHistogramInRect(), pixGetCmapHistogramMasked(), pixGetColorHistogram(), pixGetColorHistogramMasked(), pixGetColumnStats(), pixGetDifferenceHistogram(), pixGetExtremeValue(), pixGetGrayHistogram(), pixGetGrayHistogramInRect(), pixGetGrayHistogramMasked(), pixGetInvBackgroundMap(), pixGetMaxColorIndex(), pixGetMaxValueInRect(), pixGetPixel(), pixGetPixelAverage(), pixGetPSNR(), pixGetRasterData(), pixGetRGBComponent(), pixGetRGBComponentCmap(), pixGetRGBLine(), pixGetRGBPixel(), pixGetRowStats(), pixGrayQuantFromCmap(), pixGrayQuantFromHisto(), pixHShearLI(), pixLinearEdgeFade(), pixLinearTRCTiled(), pixLocToColorTransform(), pixMakeMaskFromLUT(), pixMakeMaskFromVal(), pixMaxDynamicRange(), pixMeanSquareAccum(), pixMedianCutQuantMixed(), pixMinOrMax(), pixMultConstantGray(), pixMultiplyGray(), pixNumColors(), pixOctreeQuantNumColors(), pixPlotAlongPta(), pixProjectiveSampled(), pixQuadraticVShearLI(), pixQuadraticVShearSampled(), pixQualifyLocalMinima(), pixRankColumnTransform(), pixRankFilterGray(), pixRankRowTransform(), pixRemoveColormap(), pixRemoveUnusedColors(), pixRenderContours(), pixRenderPtaBlend(), pixRotate90(), pixRotateBySampling(), pixRowStats(), pixSauvolaGetThreshold(), pixScaleGrayMinMax(), pixScaleGrayMinMax2(), pixScaleGrayRank2(), pixScaleGrayToBinaryFast(), pixSearchBinaryMaze(), pixSearchGrayMaze(), pixSelectMinInConnComp(), pixSetLowContrast(), pixSetRGBComponent(), pixSetSelectCmap(), pixSetSelectMaskedCmap(), pixSnapColor(), pixSobelEdgeFilter(), pixStretchHorizontalLI(), pixStretchHorizontalSampled(), pixSubtractGray(), pixThresholdGrayArb(), pixThresholdOn8bpp(), pixThresholdToValue(), pixTRCMap(), pixTwoSidedEdgeFilter(), pixUnsharpMaskingGray1D(), pixUnsharpMaskingGray2D(), pixVarianceByColumn(), pixVarianceByRow(), pixVarianceInRect(), pixVarThresholdToBinary(), pixVShearLI(), pixWindowedVariance(), pixWriteMemPng(), pixWriteStreamAsciiPnm(), pixWriteStreamJpeg(), pixWriteStreamPam(), pixWriteStreamPng(), pixWriteStreamPnm(), pixWriteStringPS(), pixWriteToTiffStream(), scaleAreaMapLow2(), scaleBySamplingLow(), scaleGray2xLILineLow(), scaleGray4xLILineLow(), scaleGrayAreaMapLow(), scaleGrayLILow(), scaleMipmapLow(), scaleSmoothLow(), scaleToGray16Low(), scaleToGray2Low(), scaleToGray3Low(), scaleToGray4Low(), scaleToGray6Low(), scaleToGray8Low(), seedfillGrayInvLow(), seedfillGrayInvLowSimple(), seedfillGrayLow(), seedfillGrayLowSimple(), seedspreadLow(), selCreateFromColorPix(), thresholdTo2bppLow(), thresholdTo4bppLow(), and wshedApply().
| #define GET_DATA_DIBIT | ( | pdata, | |
| n ) |
2 bit access - get
Definition at line 145 of file arrayaccess.h.
Referenced by pixAffineSampled(), pixAverageInRect(), pixBilinearSampled(), pixBlendCmap(), pixConvert1To16(), pixConvert2To8(), pixConvertLossless(), pixConvertToDPix(), pixConvertToFPix(), pixCountArbInRect(), pixExpandBinaryPower2(), pixExpandReplicate(), pixFlipPixel(), pixGenerateMaskByBand(), pixGenerateMaskByValue(), pixGetCmapHistogram(), pixGetCmapHistogramInRect(), pixGetCmapHistogramMasked(), pixGetColorHistogram(), pixGetColorHistogramMasked(), pixGetGrayHistogram(), pixGetMaxColorIndex(), pixGetPixel(), pixMakeMaskFromLUT(), pixMakeMaskFromVal(), pixNumColors(), pixProjectiveSampled(), pixRemoveColormap(), pixRemoveUnusedColors(), pixRotate90(), pixRotateBySampling(), pixSetSelectCmap(), pixSetSelectMaskedCmap(), pixVarianceInRect(), pixWriteStreamPam(), pixWriteStreamPnm(), and scaleBySamplingLow().
| #define GET_DATA_FOUR_BYTES | ( | pdata, | |
| n ) |
32 bit access - get
Definition at line 231 of file arrayaccess.h.
Referenced by identifyWatershedBasin(), pixApplyVertDisparity(), pixConvertToDPix(), pixConvertToFPix(), pixDisplayDiff(), pixMakeHistoHS(), pixMakeHistoHV(), pixMakeHistoSV(), pixRotateBySampling(), pixSearchGrayMaze(), and wshedApply().
| #define GET_DATA_QBIT | ( | pdata, | |
| n ) |
4 bit access - get
Definition at line 164 of file arrayaccess.h.
Referenced by pixAffineSampled(), pixAverageInRect(), pixBilinearSampled(), pixBlendCmap(), pixConvert1To8(), pixConvert4To8(), pixConvertToDPix(), pixConvertToFPix(), pixCountArbInRect(), pixExpandBinaryPower2(), pixExpandReplicate(), pixFlipPixel(), pixGenerateMaskByBand(), pixGenerateMaskByValue(), pixGetCmapHistogram(), pixGetCmapHistogramInRect(), pixGetCmapHistogramMasked(), pixGetColorHistogram(), pixGetColorHistogramMasked(), pixGetGrayHistogram(), pixGetMaxColorIndex(), pixGetPixel(), pixMakeMaskFromLUT(), pixMakeMaskFromVal(), pixMaxDynamicRange(), pixNumColors(), pixOctreeQuantNumColors(), pixProjectiveSampled(), pixRemoveColormap(), pixRemoveUnusedColors(), pixRotate90(), pixRotateBySampling(), pixSetSelectCmap(), pixSetSelectMaskedCmap(), pixVarianceInRect(), pixWriteStreamPam(), pixWriteStreamPnm(), and scaleBySamplingLow().
| #define GET_DATA_TWO_BYTES | ( | pdata, | |
| n ) |
16 bit access - get
Definition at line 212 of file arrayaccess.h.
Referenced by distanceFunctionLow(), pixAbsDifference(), pixAccumulate(), pixAddConstantGray(), pixAddGray(), pixAverageByColumn(), pixAverageByRow(), pixConvert16To8(), pixConvertToDPix(), pixConvertToFPix(), pixConvolve(), pixExpandReplicate(), pixFlipLR(), pixFlipPixel(), pixGetAverageMasked(), pixGetGrayHistogram(), pixGetMaxValueInRect(), pixGetPixel(), pixGetRasterData(), pixMaxDynamicRange(), pixMinOrMax(), pixMultConstantGray(), pixRenderContours(), pixRotate90(), pixRotateBySampling(), pixSubtractGray(), pixThresholdToValue(), pixVarianceByColumn(), pixVarianceByRow(), pixWriteStreamPam(), pixWriteStreamPnm(), scaleBySamplingLow(), and seedspreadLow().
| #define SET_DATA_BIT | ( | pdata, | |
| n ) |
1 bit access - set
Definition at line 127 of file arrayaccess.h.
Referenced by ditherToBinaryLineLow(), fpixThresholdToPix(), identifyWatershedBasin(), pixApplyHorizDisparity(), pixApplyLocalThreshold(), pixApplyVertDisparity(), pixCensusTransform(), pixConvertCmapTo1(), pixExpandBinaryReplicate(), pixFewColorsOctcubeQuantMixed(), pixFinalAccumulateThreshold(), pixFindEqualValues(), pixFlipPixel(), pixGenerateMaskByBand(), pixGenerateMaskByBand32(), pixGenerateMaskByDiscr32(), pixGenerateMaskByValue(), pixMakeMaskFromLUT(), pixMakeMaskFromVal(), pixMakeRangeMaskHS(), pixMakeRangeMaskHV(), pixMakeRangeMaskSV(), pixMaskOverColorPixels(), pixMaskOverColorRange(), pixMaskOverGrayPixels(), pixQuadraticVShearSampled(), pixQuantizeWithColormap(), pixRenderContours(), pixRotate90(), pixRotateBySampling(), pixScaleGrayToBinaryFast(), pixScaleRGBToBinaryFast(), pixSearchBinaryMaze(), pixSetPixel(), pixSetSelectCmap(), pixStretchHorizontalSampled(), pixVarThresholdToBinary(), and setPixelLow().
| #define SET_DATA_BIT_VAL | ( | pdata, | |
| n, | |||
| val ) |
1 bit access - set value (0 or 1)
Definition at line 135 of file arrayaccess.h.
Referenced by pixAffineSampled(), pixBilinearSampled(), pixProjectiveSampled(), and setLineDataVal().
| #define SET_DATA_BYTE | ( | pdata, | |
| n, | |||
| val ) |
8 bit access - set value (0 ... 255)
Definition at line 198 of file arrayaccess.h.
Referenced by bilateralApply(), bilateralCreate(), blockconvLow(), blocksumLow(), dilateGrayLow(), distanceFunctionLow(), ditherTo2bppLineLow(), ditherToBinaryLineLow(), dpixConvertToPix(), erodeGrayLow(), fpixConvertToPix(), fpixDisplayMaxDynamicRange(), fpixRenderContours(), pixAbsDifference(), pixaComparePhotoRegionsByHisto(), pixAddConstantGray(), pixAddGaussianNoise(), pixAddGray(), pixAddMinimalGrayColormap8(), pixaExtractColumnFromEachPix(), pixAffineGray(), pixAffineSampled(), pixApplyHorizDisparity(), pixApplyInvBackgroundGrayMap(), pixApplyVariableGrayMap(), pixApplyVertDisparity(), pixAssignToNearestColor(), pixBilateralGrayExact(), pixBilinearGray(), pixBilinearSampled(), pixBlendCmap(), pixBlendGray(), pixBlendGrayAdapt(), pixBlendGrayInverse(), pixBlendWithGrayMask(), pixBlockconvGrayTile(), pixClearPixel(), pixColorContent(), pixColorGrayMaskedCmap(), pixColorGrayRegionsCmap(), pixColorMagnitude(), pixColorSegmentTryCluster(), pixCombineMasked(), pixCombineMaskedGeneral(), pixConvert2To8(), pixConvert4To8(), pixConvert8To2(), pixConvertGrayToColormap8(), pixConvertLossless(), pixConvertRGBToGray(), pixConvertRGBToGrayArb(), pixConvertRGBToGrayFast(), pixConvertRGBToGrayMinMax(), pixConvertRGBToGraySatBoost(), pixConvertRGBToHue(), pixConvertRGBToSaturation(), pixConvertRGBToValue(), pixConvolve(), pixCopyRGBComponent(), pixDilateGray3h(), pixDilateGray3v(), pixDitherOctindexWithCmap(), pixErodeGray3h(), pixErodeGray3v(), pixExpandReplicate(), pixFadeWithGray(), pixFewColorsOctcubeQuant1(), pixFewColorsOctcubeQuantMixed(), pixFinalAccumulate(), pixFixedOctcubeQuant256(), pixFlipLR(), pixFlipPixel(), pixGetAverageTiled(), pixGetBackgroundGrayMap(), pixGetRGBComponent(), pixGetRGBComponentCmap(), pixGrayQuantFromCmap(), pixGrayQuantFromHisto(), pixHShearLI(), pixLinearEdgeFade(), pixLinearTRCTiled(), pixLocToColorTransform(), pixMaxDynamicRange(), pixMedianCutQuantMixed(), pixMinOrMax(), pixMultConstantGray(), pixMultiplyGray(), pixOctcubeQuantFromCmapLUT(), pixOctcubeQuantMixedWithGray(), pixOctreeQuantByPopulation(), pixOctreeQuantizePixels(), pixOctreeQuantNumColors(), pixPaintThroughMask(), pixProjectiveGray(), pixProjectiveSampled(), pixQuadraticVShearLI(), pixQuadraticVShearSampled(), pixQuantizeWithColormap(), pixRandomHarmonicWarp(), pixRankColumnTransform(), pixRankFilterGray(), pixRankRowTransform(), pixReadFromTiffStream(), pixReadMemPng(), pixReadStreamJpeg(), pixReadStreamPng(), pixReadStreamPnm(), pixRemoveColormap(), pixRemoveUnusedColors(), pixRenderContours(), pixRotate90(), pixRotateBySampling(), pixRunlengthTransform(), pixSauvolaGetThreshold(), pixScaleGrayMinMax(), pixScaleGrayMinMax2(), pixScaleGrayRank2(), pixScaleRGBToGrayFast(), pixSearchBinaryMaze(), pixSearchGrayMaze(), pixSetBorderVal(), pixSetInRectArbitrary(), pixSetLowContrast(), pixSetMasked(), pixSetMaskedCmap(), pixSetPixel(), pixSetPixelColumn(), pixSetRGBComponent(), pixSetSelectCmap(), pixSetSelectMaskedCmap(), pixSnapColor(), pixSobelEdgeFilter(), pixStretchHorizontalLI(), pixStretchHorizontalSampled(), pixSubtractGray(), pixThresholdGrayArb(), pixThresholdOn8bpp(), pixThresholdToValue(), pixTRCMap(), pixTwoSidedEdgeFilter(), pixUnsharpMaskingGray1D(), pixUnsharpMaskingGray2D(), pixVShearLI(), pixWindowedMean(), scaleAreaMapLow2(), scaleBySamplingLow(), scaleGray2xLILineLow(), scaleGray4xLILineLow(), scaleGrayAreaMapLow(), scaleGrayLILow(), scaleMipmapLow(), scaleRGBToGray2Low(), scaleSmoothLow(), scaleToGray16Low(), scaleToGray2Low(), scaleToGray3Low(), scaleToGray4Low(), scaleToGray6Low(), scaleToGray8Low(), seedfillGrayInvLow(), seedfillGrayInvLowSimple(), seedfillGrayLow(), seedfillGrayLowSimple(), seedspreadLow(), setLineDataVal(), setPixelLow(), and thresholdTo2bppLow().
| #define SET_DATA_DIBIT | ( | pdata, | |
| n, | |||
| val ) |
2 bit access - set value (0 ... 3)
Definition at line 149 of file arrayaccess.h.
Referenced by ditherTo2bppLineLow(), pixAffineSampled(), pixBilinearSampled(), pixBlendCmap(), pixConvertGrayToColormap8(), pixConvertLossless(), pixExpandReplicate(), pixFewColorsOctcubeQuant1(), pixFlipPixel(), pixGrayQuantFromCmap(), pixOctcubeQuantFromCmapLUT(), pixOctreeQuantByPopulation(), pixPaintThroughMask(), pixProjectiveSampled(), pixQuantizeWithColormap(), pixReadStreamPnm(), pixRemoveUnusedColors(), pixRotate90(), pixRotateBySampling(), pixSetInRectArbitrary(), pixSetMasked(), pixSetMaskedCmap(), pixSetPixel(), pixSetSelectCmap(), pixSetSelectMaskedCmap(), scaleBySamplingLow(), setLineDataVal(), and setPixelLow().
| #define SET_DATA_FOUR_BYTES | ( | pdata, | |
| n, | |||
| val ) |
32 bit access - set (0 ... 4294967295)
Definition at line 235 of file arrayaccess.h.
Referenced by dpixConvertToPix(), fpixConvertToPix(), pixDisplayDiff(), pixMakeHistoHS(), pixMakeHistoHV(), pixMakeHistoSV(), pixRotateBySampling(), pixSearchBinaryMaze(), pixSearchGrayMaze(), and wshedApply().
| #define SET_DATA_QBIT | ( | pdata, | |
| n, | |||
| val ) |
4 bit access - set value (0 ... 15)
Definition at line 168 of file arrayaccess.h.
Referenced by pixAffineSampled(), pixBilinearSampled(), pixBlendCmap(), pixConvert8To4(), pixConvertGrayToColormap8(), pixConvertLossless(), pixExpandReplicate(), pixFewColorsOctcubeQuant1(), pixFlipPixel(), pixGrayQuantFromCmap(), pixMaxDynamicRange(), pixOctcubeQuantFromCmapLUT(), pixOctcubeQuantMixedWithGray(), pixOctreeQuantByPopulation(), pixOctreeQuantNumColors(), pixPaintThroughMask(), pixProjectiveSampled(), pixQuantizeWithColormap(), pixReadStreamPnm(), pixRemoveUnusedColors(), pixRotate90(), pixRotateBySampling(), pixSetInRectArbitrary(), pixSetMasked(), pixSetMaskedCmap(), pixSetPixel(), pixSetSelectCmap(), pixSetSelectMaskedCmap(), scaleBySamplingLow(), setLineDataVal(), and setPixelLow().
| #define SET_DATA_TWO_BYTES | ( | pdata, | |
| n, | |||
| val ) |
16 bit access - set value (0 ... 65535)
Definition at line 222 of file arrayaccess.h.
Referenced by distanceFunctionLow(), dpixConvertToPix(), fpixConvertToPix(), pixAbsDifference(), pixAddConstantGray(), pixAddGray(), pixClearPixel(), pixConvert16To8(), pixConvert1To2(), pixConvert32To16(), pixConvert8To16(), pixConvolve(), pixExpandBinaryPower2(), pixExpandReplicate(), pixFinalAccumulate(), pixFlipLR(), pixFlipPixel(), pixGetInvBackgroundMap(), pixMinOrMax(), pixMultConstantGray(), pixPaintThroughMask(), pixReadStreamPnm(), pixReduceBinary2(), pixReduceRankBinary2(), pixRenderContours(), pixRotate90(), pixRotateBySampling(), pixRunlengthTransform(), pixSetBorderVal(), pixSetInRectArbitrary(), pixSetMasked(), pixSetPixel(), pixSubtractGray(), pixThresholdToValue(), scaleBySamplingLow(), seedspreadLow(), setLineDataVal(), setPixelLow(), and thresholdTo4bppLow().
| #define USE_INLINE_ACCESSORS 1 |
Definition at line 111 of file arrayaccess.h.