/external/opencv/cxcore/src/ |
D | cxlut.cpp | 51 type t0 = lut[src[i]]; \ 52 type t1 = lut[src[i+1]]; \ 56 t0 = lut[src[i+2]]; \ 57 t1 = lut[src[i+3]]; \ 64 type t0 = lut[src[i]]; \ 72 type t0 = lut[src[i]*2]; \ 73 type t1 = lut[src[i+1]*2 + 1]; \ 81 type t0 = lut[src[i]*3]; \ 82 type t1 = lut[src[i+1]*3 + 1]; \ 83 type t2 = lut[src[i+2]*3 + 2]; \ [all …]
|
D | _cxcore.h | 304 int dststep, CvSize size, const uchar* lut ); 306 int dststep, CvSize size, const ushort* lut ); 308 int dststep, CvSize size, const int* lut ); 310 int dststep, CvSize size, const double* lut ); 313 int dststep, CvSize size, const uchar* lut ); 315 int dststep, CvSize size, const uchar* lut ); 317 int dststep, CvSize size, const uchar* lut ); 320 int dststep, CvSize size, const void* lut ); 324 int dststep, CvSize size, const schar* lut ) in icvLUT_Transform8u_8s_C1R() argument 327 dststep, size, (const uchar*)lut ); in icvLUT_Transform8u_8s_C1R() [all …]
|
/external/opencv3/3rdparty/libjasper/ |
D | jas_cm.c | 81 static jas_cmreal_t jas_cmshapmatlut_lookup(jas_cmshapmatlut_t *lut, jas_cmreal_t x); 134 static void jas_cmshapmatlut_init(jas_cmshapmatlut_t *lut); 135 static int jas_cmshapmatlut_set(jas_cmshapmatlut_t *lut, jas_icccurv_t *curv); 280 lut(prof->iccprof, 0, PER, &pxformseq); in jas_cmprof_createfromiccprof() 282 lut(prof->iccprof, 1, PER, &pxformseq); in jas_cmprof_createfromiccprof() 284 lut(prof->iccprof, 0, CLR, &pxformseq); in jas_cmprof_createfromiccprof() 286 lut(prof->iccprof, 1, CLR, &pxformseq); in jas_cmprof_createfromiccprof() 288 lut(prof->iccprof, 0, SAT, &pxformseq); in jas_cmprof_createfromiccprof() 290 lut(prof->iccprof, 1, SAT, &pxformseq); in jas_cmprof_createfromiccprof() 860 static void jas_cmshapmatlut_init(jas_cmshapmatlut_t *lut) in jas_cmshapmatlut_init() argument [all …]
|
/external/pdfium/third_party/lcms2-2.6/src/ |
D | cmslut.c | 1260 void BlessLUT(cmsPipeline* lut) in BlessLUT() argument 1263 if (lut ->Elements != NULL) { in BlessLUT() 1267 First = cmsPipelineGetPtrToFirstStage(lut); in BlessLUT() 1268 Last = cmsPipelineGetPtrToLastStage(lut); in BlessLUT() 1270 if (First != NULL)lut ->InputChannels = First ->InputChannels; in BlessLUT() 1271 if (Last != NULL) lut ->OutputChannels = Last ->OutputChannels; in BlessLUT() 1280 cmsPipeline* lut = (cmsPipeline*) D; in _LUTeval16() local 1285 From16ToFloat(In, &Storage[Phase][0], lut ->InputChannels); in _LUTeval16() 1287 for (mpe = lut ->Elements; in _LUTeval16() 1297 FromFloatTo16(&Storage[Phase][0], Out, lut ->OutputChannels); in _LUTeval16() [all …]
|
D | cmsps2.c | 1051 cmsPipeline* lut = NULL; in GenerateCSA() local 1076 lut = _cmsReadInputLUT(hProfile, Intent); in GenerateCSA() 1077 if (lut == NULL) goto Error; in GenerateCSA() 1081 …if (cmsPipelineCheckAndRetreiveStages(lut, 2, cmsSigCurveSetElemType, cmsSigMatrixElemType, &Shape… in GenerateCSA() 1097 if (lut != NULL) cmsPipelineFree(lut); in GenerateCSA() 1103 if (lut != NULL) cmsPipelineFree(lut); in GenerateCSA()
|
/external/opencv3/modules/cudaimgproc/src/cuda/ |
D | clahe.cu | 57 __global__ void calcLutKernel(const PtrStepb src, PtrStepb lut, in calcLutKernel() argument 121 lut(ty * tilesX + tx, tid) = saturate_cast<uchar>(__float2int_rn(lutScale * lutVal)); in calcLutKernel() 124 …void calcLut(PtrStepSzb src, PtrStepb lut, int tilesX, int tilesY, int2 tileSize, int clipLimit, f… in calcLut() argument 129 calcLutKernel<<<grid, block, 0, stream>>>(src, lut, tileSize, tilesX, clipLimit, lutScale); in calcLut() 137 …__global__ void tranformKernel(const PtrStepSzb src, PtrStepb dst, const PtrStepb lut, const int2 … in tranformKernel() argument 163 res += lut(ty1 * tilesX + tx1, srcVal) * ((1.0f - xa) * (1.0f - ya)); in tranformKernel() 164 res += lut(ty1 * tilesX + tx2, srcVal) * ((xa) * (1.0f - ya)); in tranformKernel() 165 res += lut(ty2 * tilesX + tx1, srcVal) * ((1.0f - xa) * (ya)); in tranformKernel() 166 res += lut(ty2 * tilesX + tx2, srcVal) * ((xa) * (ya)); in tranformKernel() 171 …void transform(PtrStepSzb src, PtrStepSzb dst, PtrStepb lut, int tilesX, int tilesY, int2 tileSize… in transform() argument [all …]
|
D | hist.cu | 204 const int lut = c_lut[val]; in operator ()() local 205 return __float2int_rn(scale * lut); in operator ()() 220 void equalizeHist(PtrStepSzb src, PtrStepSzb dst, const int* lut, cudaStream_t stream) in equalizeHist() argument 223 … cudaSafeCall( cudaMemcpyToSymbol(c_lut, lut, 256 * sizeof(int), 0, cudaMemcpyDeviceToDevice) ); in equalizeHist() 225 …cudaSafeCall( cudaMemcpyToSymbolAsync(c_lut, lut, 256 * sizeof(int), 0, cudaMemcpyDeviceToDevice, … in equalizeHist()
|
/external/opencv3/modules/imgproc/src/opencl/ |
D | calc_back_project.cl | 48 __global int * lut, float scale, __constant float * ranges) 54 lut[x] = OUT_OF_RANGE; 62 lut[x] = OUT_OF_RANGE; 68 lut[x] = (int)convert_uchar_sat_rte(hist[0] * scale); 74 __constant int * lut, 85 int value = lut[src[src_index]]; 92 __kernel void calcLUT(int hist_bins, __global int * lut, int lut_offset, 99 lut += lut_offset; 102 lut[x] = OUT_OF_RANGE; 109 lut[x] = bin >= hist_bins ? OUT_OF_RANGE : bin; [all …]
|
D | clahe.cl | 143 const int src_offset, __global uchar * lut, 210 lut[(ty * tilesX + tx) * dstStep + tid + dst_offset] = 216 __global uchar * lut, const int lutStep, int lut_offset, 245 … res += lut[mad24(ty1 * tilesX + tx1, lutStep, srcVal + lut_offset)] * ((1.0f - xa) * (1.0f - ya)); 246 res += lut[mad24(ty1 * tilesX + tx2, lutStep, srcVal + lut_offset)] * ((xa) * (1.0f - ya)); 247 res += lut[mad24(ty2 * tilesX + tx1, lutStep, srcVal + lut_offset)] * ((1.0f - xa) * (ya)); 248 res += lut[mad24(ty2 * tilesX + tx2, lutStep, srcVal + lut_offset)] * ((xa) * (ya));
|
/external/opencv3/3rdparty/openexr/IlmImf/ |
D | ImfPizCompressor.cpp | 109 unsigned short lut[USHORT_RANGE]) in forwardLutFromBitmap() 116 lut[i] = k++; in forwardLutFromBitmap() 118 lut[i] = 0; in forwardLutFromBitmap() 127 unsigned short lut[USHORT_RANGE]) in reverseLutFromBitmap() 134 lut[k++] = i; in reverseLutFromBitmap() 140 lut[k++] = 0; in reverseLutFromBitmap() 147 applyLut (const unsigned short lut[USHORT_RANGE], in applyLut() 152 data[i] = lut[data[i]]; in applyLut() 432 AutoArray <unsigned short, USHORT_RANGE> lut; in compress() local 433 unsigned short maxValue = forwardLutFromBitmap (bitmap, lut); in compress() [all …]
|
/external/skia/bench/ |
D | ColorCubeBench.cpp | 80 uint8_t* lut = lutMemory.get(); in makeCubeData() local 85 lut[i] = ((maxIndex - i) * 255) / maxIndex; in makeCubeData() 91 SkColorSetARGB(0xFF, lut[r], lut[g], lut[b]); in makeCubeData()
|
/external/opencv3/modules/videostab/include/opencv2/videostab/ |
D | fast_marching_inl.hpp | 60 static const int lut[4][2] = {{-1,0}, {0,-1}, {1,0}, {0,1}}; in run() local 83 int xn = x + lut[i][0]; in run() 84 int yn = y + lut[i][1]; in run() 126 int xn = x + lut[n][0]; in run() 127 int yn = y + lut[n][1]; in run()
|
/external/opencv3/modules/cudaarithm/perf/ |
D | perf_core.cpp | 222 cv::Mat lut(1, 256, CV_8UC1); in PERF_TEST_P() local 223 declare.in(lut, WARMUP_RNG); in PERF_TEST_P() 227 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in PERF_TEST_P() 240 TEST_CYCLE() cv::LUT(src, lut, dst); in PERF_TEST_P() 259 cv::Mat lut(1, 256, CV_MAKE_TYPE(CV_8U, src.channels())); in PERF_TEST_P() local 260 declare.in(lut, WARMUP_RNG); in PERF_TEST_P() 264 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in PERF_TEST_P() 277 TEST_CYCLE() cv::LUT(src, lut, dst); in PERF_TEST_P()
|
/external/dng_sdk/source/ |
D | dng_linearization_info.cpp | 316 uint16 *lut = NULL; in dng_linearize_plane() local 323 lut = info.fLinearizationTable->Buffer_uint16 (); in dng_linearize_plane() 346 if (lut) in dng_linearize_plane() 351 x = lut [x]; in dng_linearize_plane() 403 if (lut) in dng_linearize_plane() 408 x = lut [x]; in dng_linearize_plane() 574 const uint16 *lut = fScale_buffer->Buffer_uint16 (); in Process() local 586 *dstPtr = lut [*srcPtr]; in Process() 603 *dstPtr = lut [*srcPtr]; in Process() 617 const real32 *lut = fScale_buffer->Buffer_real32 (); in Process() local [all …]
|
/external/skia/gm/ |
D | colorcube.cpp | 78 uint8_t* lut = lutMemory.get(); in make_3Dlut() local 82 lut[i] = (i * 255) / maxIndex; in make_3Dlut() 90 invR ? invLut[r] : lut[r], in make_3Dlut() 91 invG ? invLut[g] : lut[g], in make_3Dlut() 92 invB ? invLut[b] : lut[b])); in make_3Dlut()
|
/external/opencv3/modules/objdetect/src/ |
D | hog.cpp | 243 const float* const lut = &_lut(0,0); in computeGradient() local 325 dbuf[x] = (float)(lut[imgPtr[xmap[x+1]]] - lut[imgPtr[xmap[x-1]]]); in computeGradient() 326 dbuf[width + x] = (float)(lut[nextPtr[x1]] - lut[prevPtr[x1]]); in computeGradient() 342 … __m128 _dx0 = _mm_sub_ps(_mm_set_ps(lut[p32[0]], lut[p22[0]], lut[p12[0]], lut[p02[0]]), in computeGradient() 343 … _mm_set_ps(lut[p30[0]], lut[p20[0]], lut[p10[0]], lut[p00[0]])); in computeGradient() 344 … __m128 _dx1 = _mm_sub_ps(_mm_set_ps(lut[p32[1]], lut[p22[1]], lut[p12[1]], lut[p02[1]]), in computeGradient() 345 … _mm_set_ps(lut[p30[1]], lut[p20[1]], lut[p10[1]], lut[p00[1]])); in computeGradient() 346 … __m128 _dx2 = _mm_sub_ps(_mm_set_ps(lut[p32[2]], lut[p22[2]], lut[p12[2]], lut[p02[2]]), in computeGradient() 347 … _mm_set_ps(lut[p30[2]], lut[p20[2]], lut[p10[2]], lut[p00[2]])); in computeGradient() 349 …__m128 _dy0 = _mm_sub_ps(_mm_set_ps(lut[nextPtr[x3]], lut[nextPtr[x2]], lut[nextPtr[x1]], lut[next… in computeGradient() [all …]
|
/external/opencv3/modules/cudaarithm/test/ |
D | test_core.cpp | 324 cv::Mat lut = randomMat(cv::Size(256, 1), CV_8UC1); in CUDA_TEST_P() local 326 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in CUDA_TEST_P() 328 cv::cuda::GpuMat dst = createMat(size, CV_MAKE_TYPE(lut.depth(), src.channels())); in CUDA_TEST_P() 332 cv::LUT(src, lut, dst_gold); in CUDA_TEST_P() 340 cv::Mat lut = randomMat(cv::Size(256, 1), CV_MAKE_TYPE(CV_8U, src.channels())); in CUDA_TEST_P() local 342 cv::Ptr<cv::cuda::LookUpTable> lutAlg = cv::cuda::createLookUpTable(lut); in CUDA_TEST_P() 344 cv::cuda::GpuMat dst = createMat(size, CV_MAKE_TYPE(lut.depth(), src.channels()), useRoi); in CUDA_TEST_P() 348 cv::LUT(src, lut, dst_gold); in CUDA_TEST_P()
|
/external/opencv3/modules/cudaarithm/src/cuda/ |
D | lut.cu | 66 LookUpTableImpl(InputArray lut); 205 Ptr<LookUpTable> cv::cuda::createLookUpTable(InputArray lut) in createLookUpTable() argument 207 return makePtr<LookUpTableImpl>(lut); in createLookUpTable()
|
/external/opencv3/modules/core/src/ |
D | opencl_kernels_core.cpp | 1628 const struct ProgramEntry lut={"lut", variable 1740 ProgramSource lut_oclsrc(lut.programStr);
|
/external/webp/src/utils/ |
D | quant_levels_dec.c | 158 static void InitCorrectionLUT(int16_t* const lut, int min_dist) { in InitCorrectionLUT() argument 175 lut[+i] = +c; in InitCorrectionLUT() 176 lut[-i] = -c; in InitCorrectionLUT() 178 lut[0] = 0; in InitCorrectionLUT()
|
/external/llvm/test/Analysis/ScalarEvolution/ |
D | 2008-07-12-UnneededSelect1.ll | 7 @lut = common global [256 x i8] zeroinitializer, align 32 ; <[256 x i8]*> [#uses=1] 22 getelementptr [256 x i8], [256 x i8]* @lut, i32 0, i32 %2 ; <i8*>:4 [#uses=1]
|
/external/opencv3/modules/objdetect/test/ |
D | test_cascadeandhog.cpp | 1202 const float* lut = &_lut(0,0); in computeGradient() local 1248 dbuf[x] = (float)(lut[imgPtr[xmap[x+1]]] - lut[imgPtr[xmap[x-1]]]); in computeGradient() 1249 dbuf[width + x] = (float)(lut[nextPtr[x1]] - lut[prevPtr[x1]]); in computeGradient() 1261 dx0 = lut[p2[2]] - lut[p0[2]]; in computeGradient() 1262 dy0 = lut[nextPtr[x1+2]] - lut[prevPtr[x1+2]]; in computeGradient() 1265 dx = lut[p2[1]] - lut[p0[1]]; in computeGradient() 1266 dy = lut[nextPtr[x1+1]] - lut[prevPtr[x1+1]]; in computeGradient() 1276 dx = lut[p2[0]] - lut[p0[0]]; in computeGradient() 1277 dy = lut[nextPtr[x1]] - lut[prevPtr[x1]]; in computeGradient()
|
/external/opencv3/modules/imgproc/src/ |
D | clahe.cpp | 107 cv::UMat lut = _lut.getUMat(); in transform() local 115 idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(lut)); in transform() 134 …CLAHE_CalcLut_Body(const cv::Mat& src, const cv::Mat& lut, const cv::Size& tileSize, const int& ti… in CLAHE_CalcLut_Body() argument 135 …src_(src), lut_(lut), tileSize_(tileSize), tilesX_(tilesX), clipLimit_(clipLimit), lutScale_(lutSc… in CLAHE_CalcLut_Body() 234 …CLAHE_Interpolation_Body(const cv::Mat& src, const cv::Mat& dst, const cv::Mat& lut, const cv::Siz… in CLAHE_Interpolation_Body() argument 235 src_(src), dst_(dst), lut_(lut), tileSize_(tileSize), tilesX_(tilesX), tilesY_(tilesY) in CLAHE_Interpolation_Body()
|
D | distransform.cpp | 609 uchar lut[256]; in distanceATS_L1_8u() local 622 lut[x] = cv::saturate_cast<uchar>(x+1); in distanceATS_L1_8u() 629 dbase[x] = (uchar)(sbase[x] == 0 ? 0 : lut[dbase[x-1]]); in distanceATS_L1_8u() 637 a = sbase[0] == 0 ? 0 : lut[dbase[-dststep]]; in distanceATS_L1_8u() 642 a = sbase[x] == 0 ? 0 : lut[MIN(a, dbase[x - dststep])]; in distanceATS_L1_8u() 654 a = lut[a]; in distanceATS_L1_8u() 664 a = lut[dbase[width-1+dststep]]; in distanceATS_L1_8u() 670 a = lut[MIN(a, b)]; in distanceATS_L1_8u()
|
/external/opencv/cv/src/ |
D | cvdistransform.cpp | 629 uchar lut[256]; in icvDistanceATS_L1_8u() local 642 lut[x] = CV_CAST_8U(x+1); in icvDistanceATS_L1_8u() 649 dbase[x] = (uchar)(sbase[x] == 0 ? 0 : lut[dbase[x-1]]); in icvDistanceATS_L1_8u() 657 a = sbase[0] == 0 ? 0 : lut[dbase[-dststep]]; in icvDistanceATS_L1_8u() 662 a = sbase[x] == 0 ? 0 : lut[MIN(a, dbase[x - dststep])]; in icvDistanceATS_L1_8u() 674 a = lut[a]; in icvDistanceATS_L1_8u() 684 a = lut[dbase[width-1+dststep]]; in icvDistanceATS_L1_8u() 690 a = lut[MIN(a, b)]; in icvDistanceATS_L1_8u()
|