Home
last modified time | relevance | path

Searched refs:inpamP (Results 1 – 25 of 31) sorted by relevance

12

/dports/graphics/netpbm/netpbm-10.91.01/editor/pamflip/
H A Dpamflip_sse.c188 analyzeBlock(const struct pam * const inpamP, in analyzeBlock() argument
231 if (inpamP->height >= 16) { in analyzeBlock()
256 inpamP->width, inpamP->format); in doPartialBlockTop()
257 if (inpamP->width % 8 > 0){ in doPartialBlockTop()
266 transpose16Bitrows(inpamP->width, inpamP->height, blockPartial, in doPartialBlockTop()
291 row < inpamP->height; in doFullBlocks()
295 inpamP->width, inpamP->format); in doFullBlocks()
296 if (inpamP->width % 8 > 0) { in doFullBlocks()
308 transpose16Bitrows(inpamP->width, inpamP->height, in doFullBlocks()
330 transpose16Bitrows(inpamP->width, inpamP->height, blockPartial, in doPartialBlockBottom()
[all …]
H A Dpamflip.c470 pbm_readpbmrow_packed(inpamP->file, bitrow, inpamP->width, in transformRowByRowPbm()
506 tuplerow = pnm_allocpamrow(inpamP); in transformRowByRowNonPbm()
555 inpamP->width, inpamP->format); in transformRowsBottomTopPbm()
671 computeXformMatrix(&xform, inpamP->width, inpamP->height, XformCore); in transformPbmGen()
687 inpamP->width, inpamP->format); in transformPbmGen()
744 computeXformMatrix(&xform, inpamP->width, inpamP->height, XformCore); in transformNonPbmWhole()
746 tuplerow = pnm_allocpamrow(inpamP); in transformNonPbmWhole()
885 inpamP, XformCore); in createOutputMap()
945 computeXformMatrix(&xform, inpamP->width, inpamP->height, XformCore); in transformCell()
964 pnm_assigntuple(inpamP, in transformCell()
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/analyzer/
H A Dpamfind.c111 struct pam * const inpamP) { in targetValue() argument
120 if (inpamP->depth != 3) in targetValue()
126 if (cmdLine.targetDepth != inpamP->depth) in targetValue()
133 retval = pnm_allocpamtuple(inpamP); in targetValue()
135 for (i = 0; i < inpamP->depth; ++i) in targetValue()
147 struct pam * const inpamP, in printHeader() argument
158 if (plane + 1 < inpamP->depth) in printHeader()
164 fprintf(ofP, "/%u", (unsigned)inpamP->maxval); in printHeader()
196 struct pam * const inpamP, in pamfind() argument
214 printHeader(ofP, inpamP, target); in pamfind()
[all …]
H A Dpamsharpness.c93 computeSharpness(struct pam * const inpamP, in computeSharpness() argument
102 for (row = 1; row < inpamP->height-1; ++row) { in computeSharpness()
104 for (col = 1; col < inpamP->width-1; ++col) { in computeSharpness()
111 for (plane = 0; plane < inpamP->depth; ++plane) { in computeSharpness()
124 totsharp / (inpamP->width * inpamP->height * inpamP->depth * 8); in computeSharpness()
H A Dpamsumm.c114 aggregate(struct pam * const inpamP, in aggregate() argument
121 for (col = 0; col < inpamP->width; ++col) { in aggregate()
123 for (plane = 0; plane < inpamP->depth; ++plane) { in aggregate()
/dports/graphics/netpbm/netpbm-10.91.01/converter/other/
H A Dpamtompfont.c79 validateInput(struct pam * const inpamP) { in validateInput() argument
86 if (inpamP->depth != 1) in validateInput()
88 inpamP->depth); in validateInput()
110 pm_writebigshort(ofP, inpamP->height); in writeMpFontHeader()
121 pm_writebiglong(ofP, inpamP->width); in writeMpFontHeader()
127 convertRaster(struct pam * const inpamP, in convertRaster() argument
134 assert(inpamP->depth == 1); in convertRaster()
136 tuplerow = pnm_allocpamrow(inpamP); in convertRaster()
138 MALLOCARRAY(outrow, inpamP->width); in convertRaster()
142 inpamP->width); in convertRaster()
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/editor/
H A Dpamthreshold.c244 thresholdSimple(struct pam * const inpamP, in thresholdSimple() argument
252 inrow = pnm_allocpamrown(inpamP); in thresholdSimple()
258 pnm_readpamrown(inpamP, inrow); in thresholdSimple()
298 inrow = pnm_allocpamrow(inpamP); in analyzeDistribution()
299 inrown = pnm_allocpamrown(inpamP); in analyzeDistribution()
300 MALLOCARRAY(histogram, inpamP->maxval+1); in analyzeDistribution()
303 inpamP->maxval+1); in analyzeDistribution()
306 for (i = 0; i <= inpamP->maxval; ++i) in analyzeDistribution()
313 pnm_readpamrow(inpamP, inrow); in analyzeDistribution()
605 inrows[i] = pnm_allocpamrown(inpamP); in thresholdLocal()
[all …]
H A Dpamedge.c75 computeOneRow(struct pam * const inpamP, in computeOneRow() argument
88 for (plane = 0; plane < inpamP->depth; ++plane) { in computeOneRow()
94 for (col = 1; col < inpamP->width - 1; ++col) { in computeOneRow()
109 orow[inpamP->width - 1][plane] = 0; in computeOneRow()
117 writeMiddleRows(struct pam * const inpamP, in writeMiddleRows() argument
124 irow = pnm_allocpamrow(inpamP); in writeMiddleRows()
131 pnm_readpamrow(inpamP, irow); in writeMiddleRows()
132 pnm_scaletuplerow(inpamP, row0, irow, outpamP->maxval); in writeMiddleRows()
133 pnm_readpamrow(inpamP, irow); in writeMiddleRows()
138 for (row = 1; row < inpamP->height - 1; ++row) { in writeMiddleRows()
[all …]
H A Dpamcut.c571 assert(inpamP->depth >= outpamP->depth); in createRowCutter()
577 discardTuple = pnm_allocpamtuple(inpamP); in createRowCutter()
589 col <= MIN(rightcol, inpamP->width-1); in createRowCutter()
613 rowCutterP->inputWidth = inpamP->width; in createRowCutter()
641 extractRowsGen(const struct pam * const inpamP, in extractRowsGen() argument
663 pnm_readpamrow(inpamP, NULL); in extractRowsGen()
674 if ((bottomrow - (inpamP->height-1)) > 0) in extractRowsGen()
698 extractRowsPBM(const struct pam * const inpamP, in extractRowsPBM() argument
746 pbm_readpbmrow_bitoffset(inpamP->file, bitrow, inpamP->width, in extractRowsPBM()
752 if (rightcol >= inpamP->width) in extractRowsPBM()
[all …]
H A Dpamscale.c1305 inpamP->width, inpamP->height, in resampleDimensionMessage()
1514 resample(struct pam * const inpamP, in resample() argument
1655 struct pam * const inpamP, in horizontalScale() argument
1728 accumOutputCol(inpamP, inputtuplenrow[inpamP->width-1], in horizontalScale()
1881 if (outpamP->width == inpamP->width) in scaleHorizontallyAndOutputRow()
1935 scaleWithMixing(struct pam * const inpamP, in scaleWithMixing() argument
2030 tuplenrow = pnm_allocpamrown(inpamP); in scaleWithMixing()
2045 zeroAccum(inpamP, rowAccumulator); in scaleWithMixing()
2117 tuplerow = pnm_allocpamrow(inpamP); in scaleWithoutMixing()
2161 struct pam * const inpamP, in scale() argument
[all …]
H A Dpamstretch.c163 stretchLine(struct pam * const inpamP, in stretchLine() argument
190 for (col = 0; col < inpamP->width; ++col) { in stretchLine()
195 if (col >= inpamP->width-1) { in stretchLine()
291 stretch(struct pam * const inpamP, in stretch() argument
310 linebuf1 = pnm_allocpamrow(inpamP); in stretch()
311 linebuf2 = pnm_allocpamrow(inpamP); in stretch()
321 pnm_readpamrow(inpamP, curline); in stretch()
325 nRowsToStretch = inpamP->height - 1; in stretch()
327 nRowsToStretch = inpamP->height; in stretch()
330 if (row == inpamP->height - 1) { in stretch()
[all …]
H A Dpambackground.c56 initOutpam(const struct pam * const inpamP, in initOutpam() argument
62 outpamP->width = inpamP->width; in initOutpam()
63 outpamP->height = inpamP->height; in initOutpam()
383 findBackgroundPixels(struct pam * const inpamP, in findBackgroundPixels() argument
405 pi = newPi(inpamP->width, inpamP->height); in findBackgroundPixels()
407 initPi(pi, inpamP, backgroundColor); in findBackgroundPixels()
409 setEdges(pi, inpamP->width, inpamP->height); in findBackgroundPixels()
417 expandBackgroundHoriz(pi, inpamP->width, inpamP->height, in findBackgroundPixels()
420 expandBackgroundVert(pi, inpamP->width, inpamP->height, in findBackgroundPixels()
437 writeOutput(const struct pam * const inpamP, in writeOutput() argument
[all …]
H A Dpamenlarge.c138 struct pam * const inpamP, in makeOutputRowMap() argument
149 for (col = 0 ; col < inpamP->width; ++col) { in makeOutputRowMap()
663 enlargePbm(struct pam * const inpamP, in enlargePbm() argument
683 inrow = pbm_allocrow_packed(inpamP->width); in enlargePbm()
701 for (row = 0; row < inpamP->height; ++row) { in enlargePbm()
704 pbm_readpbmrow_packed(inpamP->file, inrow, inpamP->width, in enlargePbm()
705 inpamP->format); in enlargePbm()
738 enlargeGeneral(struct pam * const inpamP, in enlargeGeneral() argument
755 outpam = *inpamP; in enlargeGeneral()
762 tuplerow = pnm_allocpamrow(inpamP); in enlargeGeneral()
[all …]
H A Dppmdither.c387 struct pam * const inpamP, in validateNoDitherOverflow() argument
410 ditherRow(struct pam * const inpamP, in ditherRow() argument
423 for (col = 0; col < inpamP->width; ++col) { in ditherRow()
430 assert(inpamP->depth >= 3); in ditherRow()
434 dither(inrow[col][plane], inpamP->maxval, d, in ditherRow()
449 ditherImage(struct pam * const inpamP, in ditherImage() argument
476 inrow = pnm_allocpamrow(inpamP); in ditherImage()
481 ditherPam = *inpamP; in ditherImage()
484 for (row = 0; row < inpamP->height; ++row) { in ditherImage()
485 pnm_readpamrow(inpamP, inrow); in ditherImage()
[all …]
H A Dpnmremap.c925 floydInitRow(inpamP, fserrP); in convertRowDither()
955 floydSwitchDir(inpamP, fserrP); in convertRowDither()
966 convertRow(struct pam * const inpamP, in convertRow() argument
998 convertRowDither(inpamP, outpamP, inrow, in convertRow()
1003 convertRowStraight(inpamP, outpamP, inrow, in convertRow()
1012 copyRaster(struct pam * const inpamP, in copyRaster() argument
1043 inrow = pnm_allocpamrow(inpamP); in copyRaster()
1053 fserr_init(inpamP, &fserr, random); in copyRaster()
1057 for (row = 0; row < inpamP->height; ++row) { in copyRaster()
1060 pnm_readpamrow(inpamP, inrow); in copyRaster()
[all …]
H A Dpnmconvol.c972 if (inpamP->height < convKernelP->rows + 1) in validateEnoughImageToConvolve()
977 if (inpamP->width < convKernelP->cols + 1) in validateEnoughImageToConvolve()
980 inpamP->width, convKernelP->cols); in validateEnoughImageToConvolve()
1022 readAndScaleRow(struct pam * const inpamP, in readAndScaleRow() argument
1027 pnm_readpamrow(inpamP, inrow); in readAndScaleRow()
1029 if (newMaxval != inpamP->maxval) in readAndScaleRow()
1032 if (newDepth == 3 && inpamP->depth == 1) in readAndScaleRow()
1033 pnm_makerowrgb(inpamP, inrow); in readAndScaleRow()
1255 readAndScaleRow(inpamP, rowbuf[rowbufRow], in convolveGeneral()
1928 rowbuf = allocRowbuf(inpamP, windowHeight); in convolveHorizontal()
[all …]
H A Dpamundice.c727 struct pam * const inpamP = &inpam[file]; in verifyRankFileAttributes() local
729 if (inpamP->depth != outpamP->depth) in verifyRankFileAttributes()
732 rank, file, inpamP->depth, outpamP->depth); in verifyRankFileAttributes()
733 else if (inpamP->maxval != outpamP->maxval) in verifyRankFileAttributes()
736 rank, file, inpamP->maxval, outpamP->maxval); in verifyRankFileAttributes()
737 else if (inpamP->format != outpamP->format) in verifyRankFileAttributes()
740 rank, file, inpamP->format, outpamP->format); in verifyRankFileAttributes()
741 else if (!streq(inpamP->tuple_type, outpamP->tuple_type)) in verifyRankFileAttributes()
746 else if (inpamP->height != inpam[0].height) in verifyRankFileAttributes()
749 rank, file, inpamP->height, inpam[0].height); in verifyRankFileAttributes()
[all …]
H A Dpamperspective.c210 const struct pam * inpamP; member
1169 const struct pam * const inpamP,
1196 if (numRows > inpamP->height)
1197 numRows = inpamP->height;
1207 const struct pam * const inpamP, in windowHeight() argument
1240 const struct pam * const inpamP, in buffer_init() argument
1251 bufferP->rows[row] = pnm_allocpamrow(inpamP); in buffer_init()
1252 pnm_readpamrow(inpamP, bufferP->rows[row]); in buffer_init()
1259 bufferP->inpamP = inpamP; in buffer_init()
1360 ictx.width = inpamP->width; in init_interpolation_global_vars()
[all …]
H A Dpnmmontage.c361 const struct pam * const inpamP, in adjustDepth() argument
365 if (inpamP->depth < outpamP->depth) { in adjustDepth()
367 for (i = coord.x; i < coord.x + inpamP->width; ++i) { in adjustDepth()
369 for (j = inpamP->depth; j < outpamP->depth; ++j) in adjustDepth()
370 tuplerow[i][j] = tuplerow[i][inpamP->depth - 1]; in adjustDepth()
379 const struct pam * const inpamP, in adjustMaxval() argument
383 if (inpamP->maxval < outpamP->maxval) { in adjustMaxval()
385 for (i = coord.x; i < coord.x + inpamP->width; ++i) { in adjustMaxval()
388 tuplerow[i][j] *= outpamP->maxval / inpamP->maxval; in adjustMaxval()
/dports/graphics/netpbm/netpbm-10.91.01/converter/other/jpeg2000/
H A Dpamtojpeg2k.c235 createJasperRaster(struct pam * const inpamP, in createJasperRaster() argument
249 MALLOCARRAY_NOFAIL(matrix, inpamP->depth); in createJasperRaster()
258 tuplerow = pnm_allocpamrow(inpamP); in createJasperRaster()
261 oddMaxval = jasperMaxval != inpamP->maxval; in createJasperRaster()
266 pnm_readpamrow(inpamP, tuplerow); in createJasperRaster()
307 createJasperImage(struct pam * const inpamP, in createJasperImage() argument
320 cmptparms[plane].width = inpamP->width; in createJasperImage()
342 createJasperImage(inpamP, &jasperP); in convertToJasperImage()
344 if (strneq(inpamP->tuple_type, "RGB", 3)) { in convertToJasperImage()
345 if (inpamP->depth < 3) in convertToJasperImage()
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/other/
H A Dpamdepth.c101 transformRaster(struct pam * const inpamP, in transformRaster() argument
108 createSampleMap(inpamP->maxval, outpamP->maxval, &sampleMap); in transformRaster()
110 assert(inpamP->height == outpamP->height); in transformRaster()
111 assert(inpamP->width == outpamP->width); in transformRaster()
112 assert(inpamP->depth == outpamP->depth); in transformRaster()
114 tuplerow = pnm_allocpamrow(inpamP); in transformRaster()
116 for (row = 0; row < inpamP->height; ++row) { in transformRaster()
118 pnm_readpamrow(inpamP, tuplerow); in transformRaster()
120 for (col = 0; col < inpamP->width; ++col) { in transformRaster()
122 for (plane = 0; plane < inpamP->depth; ++plane) in transformRaster()
H A Dpamunlookup.c156 doUnlookup(struct pam * const inpamP, in doUnlookup() argument
166 inrow = pnm_allocpamrow(inpamP); in doUnlookup()
172 outpam.height = inpamP->height; in doUnlookup()
173 outpam.width = inpamP->width; in doUnlookup()
182 for (row = 0; row < inpamP->height; ++row) { in doUnlookup()
185 pnm_readpamrow(inpamP, inrow); in doUnlookup()
187 for (col = 0; col < inpamP->width; ++col) { in doUnlookup()
190 pnm_lookuptuple(inpamP, lookupHash, inrow[col], &found, &index); in doUnlookup()
H A Dpambayer.c263 makeOutputPam(const struct pam * const inpamP, in makeOutputPam() argument
271 outpamP->width = inpamP->width; in makeOutputPam()
272 outpamP->height = inpamP->height; in makeOutputPam()
274 outpamP->maxval = inpamP->maxval; in makeOutputPam()
275 outpamP->bytes_per_sample = inpamP->bytes_per_sample; in makeOutputPam()
H A Dpamfix.c196 copyGoodRows(const struct pam * const inpamP, in copyGoodRows() argument
207 tuplerow = pnm_allocpamrow(inpamP); in copyGoodRows()
210 pnm_readpamrow(inpamP, tuplerow); in copyGoodRows()
H A Dpnmcolormap.c782 validateCompatibleImage(struct pam * const inpamP, in validateCompatibleImage() argument
786 if (inpamP->depth != firstPamP->depth) in validateCompatibleImage()
788 imageSeq, inpamP->depth, firstPamP->depth); in validateCompatibleImage()
789 if (inpamP->maxval != firstPamP->maxval) in validateCompatibleImage()
792 (unsigned)inpamP->maxval, (unsigned)firstPamP->maxval); in validateCompatibleImage()
793 if (inpamP->format != firstPamP->format) in validateCompatibleImage()
795 imageSeq, inpamP->format, firstPamP->format); in validateCompatibleImage()
796 if (!streq(inpamP->tuple_type, firstPamP->tuple_type)) in validateCompatibleImage()
798 imageSeq, inpamP->tuple_type, firstPamP->tuple_type); in validateCompatibleImage()

12