/dports/math/vtk9/VTK-9.1.0/Rendering/Volume/Testing/Cxx/ |
H A D | TestGPURayCastLargeColorTransferFunction.cxx | 51 lut->SetNumberOfTableValues(NumValues); in TestGPURayCastLargeColorTransferFunction() 52 lut->SetTableRange(0, NumValues - 1); in TestGPURayCastLargeColorTransferFunction() 55 lut->SetTableValue(i, 0.0, 0.0, 0.0, 0.0); in TestGPURayCastLargeColorTransferFunction() 58 lut->SetTableValue(0, 0 / 255.0, 0 / 255.0, 0 / 255.0, 0 / 255.0); in TestGPURayCastLargeColorTransferFunction() 61 lut->SetTableValue(4, 88 / 255.0, 106 / 255.0, 215 / 255.0, 255 / 255.0); in TestGPURayCastLargeColorTransferFunction() 62 lut->SetTableValue(5, 88 / 255.0, 106 / 255.0, 215 / 255.0, 255 / 255.0); in TestGPURayCastLargeColorTransferFunction() 64 lut->SetTableValue(8, 230 / 255.0, 150 / 255.0, 35 / 255.0, 255 / 255.0); in TestGPURayCastLargeColorTransferFunction() 398 const int numColors = lut->GetNumberOfAvailableColors(); in TestGPURayCastLargeColorTransferFunction() 399 double value = lut->GetRange()[0]; in TestGPURayCastLargeColorTransferFunction() 400 const double step = (lut->GetRange()[1] - lut->GetRange()[0] + 1.0) / numColors; in TestGPURayCastLargeColorTransferFunction() [all …]
|
/dports/math/vtk8/VTK-8.2.0/Rendering/Volume/Testing/Cxx/ |
H A D | TestGPURayCastLargeColorTransferFunction.cxx | 48 vtkSmartPointer<vtkLookupTable> lut = in TestGPURayCastLargeColorTransferFunction() local 53 lut->SetNumberOfTableValues(NumValues); in TestGPURayCastLargeColorTransferFunction() 54 lut->SetTableRange(0, NumValues-1); in TestGPURayCastLargeColorTransferFunction() 57 lut->SetTableValue(i, 0.0, 0.0, 0.0, 0.0); in TestGPURayCastLargeColorTransferFunction() 60 lut->SetTableValue(0, 0 / 255.0, 0 / 255.0, 0 / 255.0, 0 / 255.0); in TestGPURayCastLargeColorTransferFunction() 63 lut->SetTableValue(4, 88 / 255.0, 106 / 255.0, 215 / 255.0, 255 / 255.0); in TestGPURayCastLargeColorTransferFunction() 64 lut->SetTableValue(5, 88 / 255.0, 106 / 255.0, 215 / 255.0, 255 / 255.0); in TestGPURayCastLargeColorTransferFunction() 401 const int numColors = lut->GetNumberOfAvailableColors(); in TestGPURayCastLargeColorTransferFunction() 402 double value = lut->GetRange()[0]; in TestGPURayCastLargeColorTransferFunction() 403 const double step = (lut->GetRange()[1] - lut->GetRange()[0] + 1.0) / numColors; in TestGPURayCastLargeColorTransferFunction() [all …]
|
/dports/graphics/aloadimage/arcan-0.6.1/src/platform/sdl2/ |
H A D | sdl2_12_lut.h | 240 lut[SDL_SCANCODE_A] = K_a; in init_lut() 241 lut[SDL_SCANCODE_B] = K_b; in init_lut() 242 lut[SDL_SCANCODE_C] = K_c; in init_lut() 243 lut[SDL_SCANCODE_D] = K_d; in init_lut() 244 lut[SDL_SCANCODE_E] = K_e; in init_lut() 245 lut[SDL_SCANCODE_F] = K_f; in init_lut() 246 lut[SDL_SCANCODE_G] = K_g; in init_lut() 247 lut[SDL_SCANCODE_H] = K_h; in init_lut() 248 lut[SDL_SCANCODE_I] = K_i; in init_lut() 249 lut[SDL_SCANCODE_J] = K_j; in init_lut() [all …]
|
/dports/sysutils/acfgfs/arcan-0.6.1/src/platform/sdl2/ |
H A D | sdl2_12_lut.h | 240 lut[SDL_SCANCODE_A] = K_a; in init_lut() 241 lut[SDL_SCANCODE_B] = K_b; in init_lut() 242 lut[SDL_SCANCODE_C] = K_c; in init_lut() 243 lut[SDL_SCANCODE_D] = K_d; in init_lut() 244 lut[SDL_SCANCODE_E] = K_e; in init_lut() 245 lut[SDL_SCANCODE_F] = K_f; in init_lut() 246 lut[SDL_SCANCODE_G] = K_g; in init_lut() 247 lut[SDL_SCANCODE_H] = K_h; in init_lut() 248 lut[SDL_SCANCODE_I] = K_i; in init_lut() 249 lut[SDL_SCANCODE_J] = K_j; in init_lut() [all …]
|
/dports/x11/aclip/arcan-0.6.1/src/platform/sdl2/ |
H A D | sdl2_12_lut.h | 240 lut[SDL_SCANCODE_A] = K_a; in init_lut() 241 lut[SDL_SCANCODE_B] = K_b; in init_lut() 242 lut[SDL_SCANCODE_C] = K_c; in init_lut() 243 lut[SDL_SCANCODE_D] = K_d; in init_lut() 244 lut[SDL_SCANCODE_E] = K_e; in init_lut() 245 lut[SDL_SCANCODE_F] = K_f; in init_lut() 246 lut[SDL_SCANCODE_G] = K_g; in init_lut() 247 lut[SDL_SCANCODE_H] = K_h; in init_lut() 248 lut[SDL_SCANCODE_I] = K_i; in init_lut() 249 lut[SDL_SCANCODE_J] = K_j; in init_lut() [all …]
|
/dports/x11/arcan-trayicon/arcan-0.6.1/src/platform/sdl2/ |
H A D | sdl2_12_lut.h | 240 lut[SDL_SCANCODE_A] = K_a; in init_lut() 241 lut[SDL_SCANCODE_B] = K_b; in init_lut() 242 lut[SDL_SCANCODE_C] = K_c; in init_lut() 243 lut[SDL_SCANCODE_D] = K_d; in init_lut() 244 lut[SDL_SCANCODE_E] = K_e; in init_lut() 245 lut[SDL_SCANCODE_F] = K_f; in init_lut() 246 lut[SDL_SCANCODE_G] = K_g; in init_lut() 247 lut[SDL_SCANCODE_H] = K_h; in init_lut() 248 lut[SDL_SCANCODE_I] = K_i; in init_lut() 249 lut[SDL_SCANCODE_J] = K_j; in init_lut() [all …]
|
/dports/graphics/vips/vips-8.12.0/libvips/create/ |
H A D | tonelut.c | 88 double x1 = (x - lut->Lb) / (lut->Ls - lut->Lb); in shad() 89 double x2 = (x - lut->Ls) / (lut->Lm - lut->Ls); in shad() 110 double x1 = (x - lut->Ls) / (lut->Lm - lut->Ls); in mid() 111 double x2 = (x - lut->Lm) / (lut->Lh - lut->Lm); in mid() 132 double x1 = (x - lut->Lm) / (lut->Lh - lut->Lm); in high() 133 double x2 = (x - lut->Lh) / (lut->Lw - lut->Lh); in high() 158 lut->M * mid( lut, x ) + in tone_curve() 159 lut->H * high( lut, x ); in tone_curve() 181 lut->Ls = lut->Lb + lut->Ps * (lut->Lw - lut->Lb); in vips_tonelut_build() 182 lut->Lm = lut->Lb + lut->Pm * (lut->Lw - lut->Lb); in vips_tonelut_build() [all …]
|
H A D | invertlut.c | 121 if( !lut->mat || in vips_invertlut_build_init() 133 if( !(lut->buf = in vips_invertlut_build_init() 134 VIPS_ARRAY( NULL, lut->size * (lut->mat->Xsize - 1), double )) ) in vips_invertlut_build_init() 140 lut->data[y] = VIPS_MATRIX( lut->mat, 0, y ); in vips_invertlut_build_init() 187 int first = lut->data[0][b + 1] * (lut->size - 1); in vips_invertlut_build_create() 188 int last = lut->data[height - 1][b + 1] * (lut->size - 1); in vips_invertlut_build_create() 236 irange = lut->data[j + 1][b + 1] - lut->data[j][b + 1]; in vips_invertlut_build_create() 237 orange = lut->data[j + 1][0] - lut->data[j][0]; in vips_invertlut_build_create() 239 lut->buf[b + k * bands] = lut->data[j][0] + in vips_invertlut_build_create() 257 if( vips_check_matrix( class->nickname, lut->in, &lut->mat ) ) in vips_invertlut_build() [all …]
|
H A D | buildlut.c | 91 VIPS_FREE( lut->data ); in vips_buildlut_dispose() 92 VIPS_FREE( lut->buf ); in vips_buildlut_dispose() 93 VIPS_UNREF( lut->mat ); in vips_buildlut_dispose() 145 lut->xlow = xlow; in vips_buildlut_build_init() 148 if( lut->lut_size < 1 ) { in vips_buildlut_build_init() 153 if( !(lut->data = VIPS_ARRAY( NULL, lut->mat->Ysize, double * )) ) in vips_buildlut_build_init() 156 lut->data[y] = VIPS_MATRIX( lut->mat, 0, y ); in vips_buildlut_build_init() 159 lut->lut_size * (lut->mat->Xsize - 1), double )) ) in vips_buildlut_build_init() 164 qsort( lut->data, lut->mat->Ysize, in vips_buildlut_build_init() 231 if( vips_check_matrix( class->nickname, lut->in, &lut->mat ) ) in vips_buildlut_build() [all …]
|
/dports/math/vtk9/VTK-9.1.0/Views/Core/ |
H A D | vtkViewTheme.cxx | 113 lut->Build(); in SetPointHueRange() 122 lut->Build(); in SetPointHueRange() 157 lut->Build(); in SetPointSaturationRange() 166 lut->Build(); in SetPointSaturationRange() 201 lut->Build(); in SetPointValueRange() 210 lut->Build(); in SetPointValueRange() 245 lut->Build(); in SetPointAlphaRange() 254 lut->Build(); in SetPointAlphaRange() 289 lut->Build(); in SetCellHueRange() 586 if (!lut) in LookupMatchesPointTheme() [all …]
|
/dports/math/vtk6/VTK-6.2.0/Views/Core/ |
H A D | vtkViewTheme.cxx | 115 lut->Build(); in SetPointHueRange() 124 lut->Build(); in SetPointHueRange() 159 lut->Build(); in SetPointSaturationRange() 168 lut->Build(); in SetPointSaturationRange() 203 lut->Build(); in SetPointValueRange() 212 lut->Build(); in SetPointValueRange() 247 lut->Build(); in SetPointAlphaRange() 256 lut->Build(); in SetPointAlphaRange() 291 lut->Build(); in SetCellHueRange() 588 if (!lut) in LookupMatchesPointTheme() [all …]
|
/dports/math/vtk8/VTK-8.2.0/Views/Core/ |
H A D | vtkViewTheme.cxx | 115 lut->Build(); in SetPointHueRange() 124 lut->Build(); in SetPointHueRange() 159 lut->Build(); in SetPointSaturationRange() 168 lut->Build(); in SetPointSaturationRange() 203 lut->Build(); in SetPointValueRange() 212 lut->Build(); in SetPointValueRange() 247 lut->Build(); in SetPointAlphaRange() 256 lut->Build(); in SetPointAlphaRange() 291 lut->Build(); in SetCellHueRange() 588 if (!lut) in LookupMatchesPointTheme() [all …]
|
/dports/graphics/libgphoto2/libgphoto2-2.5.26/camlibs/docupen/ |
H A D | calibration.c | 34 if (lut[i] < 255 && lut[i] >= cal_points[cur_point + 1]) { in make_lut() 55 unsigned char lut[sizeof(struct lut)]; in lut_from_cal() local 57 memset(lut, 0xff, sizeof(lut)); in lut_from_cal() 60 memset(lut, 0xff, sizeof(lut)); in lut_from_cal() 63 if (fwrite(lut, 1, sizeof(lut), out) != sizeof(lut)) in lut_from_cal() 121 if (!lut) { in dp_init_calibration() 131 if (!lut) { in dp_init_calibration() 146 …if (fread(camera->pl->lut, 1, CAL_SIZE * sizeof(struct lut), lut) != (CAL_SIZE * sizeof(struct lut… in dp_init_calibration() 160 memcpy(camera->pl->lut[j].data, camera->pl->lut[i].data, 3 * sizeof(struct lut)); in dp_init_calibration() 167 memcpy(camera->pl->lut[j].data, camera->pl->lut[i].data, 3 * sizeof(struct lut)); in dp_init_calibration() [all …]
|
/dports/graphics/opencolorio/OpenColorIO-1.1.1/src/core/ |
H A D | Lut1DOp.cpp | 75 float m = lut.from_max[channel] - lut.from_min[channel]; 204 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 240 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 317 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 369 m[i] = (lut.from_max[i] - lut.from_min[i]); 423 m[i] = (lut.from_max[i] - lut.from_min[i]); 692 lut->maxerror = 1e-5f; in OIIO_ADD_TEST() 696 lut->unfinalize(); in OIIO_ADD_TEST() 697 lut->maxerror = 1e-5f; in OIIO_ADD_TEST() 703 lut->unfinalize(); in OIIO_ADD_TEST() [all …]
|
/dports/graphics/opencolorio-tools/OpenColorIO-1.1.1/src/core/ |
H A D | Lut1DOp.cpp | 75 float m = lut.from_max[channel] - lut.from_min[channel]; 204 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 240 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 317 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 369 m[i] = (lut.from_max[i] - lut.from_min[i]); 423 m[i] = (lut.from_max[i] - lut.from_min[i]); 692 lut->maxerror = 1e-5f; in OIIO_ADD_TEST() 696 lut->unfinalize(); in OIIO_ADD_TEST() 697 lut->maxerror = 1e-5f; in OIIO_ADD_TEST() 703 lut->unfinalize(); in OIIO_ADD_TEST() [all …]
|
/dports/graphics/py-opencolorio/OpenColorIO-1.1.1/src/core/ |
H A D | Lut1DOp.cpp | 75 float m = lut.from_max[channel] - lut.from_min[channel]; 204 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 240 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 317 mInv[i] = 1.0f / (lut.from_max[i] - lut.from_min[i]); 369 m[i] = (lut.from_max[i] - lut.from_min[i]); 423 m[i] = (lut.from_max[i] - lut.from_min[i]); 692 lut->maxerror = 1e-5f; in OIIO_ADD_TEST() 696 lut->unfinalize(); in OIIO_ADD_TEST() 697 lut->maxerror = 1e-5f; in OIIO_ADD_TEST() 703 lut->unfinalize(); in OIIO_ADD_TEST() [all …]
|
/dports/print/gutenprint/gutenprint-5.3.3/src/main/ |
H A D | print-color.c | 763 lut->image_width * lut->in_channels * lut->channel_depth / 8, row) in stpi_color_traditional_get_row() 868 stp_free(lut); in free_lut() 1285 !channel_is_synthesized(lut, i) && lut->invert_output; in compute_one_lut() 1365 lut->invert_output && ! channel_is_synthesized(lut, i)); in stpi_do_dump_lut_to_file() 1506 lut_t *lut; in stpi_color_traditional_init() local 1532 if (!lut->input_color_description || !lut->output_color_description) in stpi_color_traditional_init() 1535 free_lut(lut); in stpi_color_traditional_init() 1544 free_lut(lut); in stpi_color_traditional_init() 1548 lut->in_channels = lut->out_channels; in stpi_color_traditional_init() 1553 lut->in_channels = lut->input_color_description->channel_count; in stpi_color_traditional_init() [all …]
|
/dports/print/gimp-gutenprint/gutenprint-5.3.3/src/main/ |
H A D | print-color.c | 763 lut->image_width * lut->in_channels * lut->channel_depth / 8, row) in stpi_color_traditional_get_row() 868 stp_free(lut); in free_lut() 1285 !channel_is_synthesized(lut, i) && lut->invert_output; in compute_one_lut() 1365 lut->invert_output && ! channel_is_synthesized(lut, i)); in stpi_do_dump_lut_to_file() 1506 lut_t *lut; in stpi_color_traditional_init() local 1532 if (!lut->input_color_description || !lut->output_color_description) in stpi_color_traditional_init() 1535 free_lut(lut); in stpi_color_traditional_init() 1544 free_lut(lut); in stpi_color_traditional_init() 1548 lut->in_channels = lut->out_channels; in stpi_color_traditional_init() 1553 lut->in_channels = lut->input_color_description->channel_count; in stpi_color_traditional_init() [all …]
|
/dports/math/vtk9/VTK-9.1.0/Common/Core/Testing/Cxx/ |
H A D | TestScalarsToColors.cxx | 23 lut->SetRange(0.0, 255.0); in TestRange() 24 range = lut->GetRange(); in TestRange() 32 lut->SetRange(100.0, 200.0); in TestRange() 33 range = lut->GetRange(); in TestRange() 59 lut->SetAlpha(-12345.6); in TestAlpha() 60 alpha = lut->GetAlpha(); in TestAlpha() 67 lut->SetAlpha(45657.8); in TestAlpha() 68 alpha = lut->GetAlpha(); in TestAlpha() 89 lut->SetRange(0.0, 1.0); in TestGetColorAndMapValue() 90 lut->GetColor(0.5, rgb); in TestGetColorAndMapValue() [all …]
|
/dports/math/vtk8/VTK-8.2.0/Common/Core/Testing/Cxx/ |
H A D | TestScalarsToColors.cxx | 23 lut->SetRange(0.0, 255.0); in TestRange() 24 range = lut->GetRange(); in TestRange() 32 lut->SetRange(100.0, 200.0); in TestRange() 33 range = lut->GetRange(); in TestRange() 59 lut->SetAlpha(-12345.6); in TestAlpha() 60 alpha = lut->GetAlpha(); in TestAlpha() 67 lut->SetAlpha(45657.8); in TestAlpha() 68 alpha = lut->GetAlpha(); in TestAlpha() 89 lut->SetRange(0.0, 1.0); in TestGetColorAndMapValue() 90 lut->GetColor(0.5, rgb); in TestGetColorAndMapValue() [all …]
|
/dports/math/vtk6/VTK-6.2.0/Common/Core/Testing/Cxx/ |
H A D | TestScalarsToColors.cxx | 12 vtkNew<vtkScalarsToColors> lut; in TestRange() local 23 lut->SetRange(0.0, 255.0); in TestRange() 24 range = lut->GetRange(); in TestRange() 32 lut->SetRange(100.0, 200.0); in TestRange() 33 range = lut->GetRange(); in TestRange() 59 lut->SetAlpha(-12345.6); in TestAlpha() 60 alpha = lut->GetAlpha(); in TestAlpha() 67 lut->SetAlpha(45657.8); in TestAlpha() 68 alpha = lut->GetAlpha(); in TestAlpha() 89 lut->SetRange(0.0, 1.0); in TestGetColorAndMapValue() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/platform/vsp1/ |
H A D | vsp1_lut.c | 53 spin_lock_irq(&lut->lock); in lut_set_table() 54 swap(lut->lut, dlb); in lut_set_table() 63 struct vsp1_lut *lut = in lut_s_ctrl() local 168 lut_dlb = lut->lut; in lut_configure_frame() 169 lut->lut = NULL; in lut_configure_frame() 199 struct vsp1_lut *lut; in vsp1_lut_create() local 202 lut = devm_kzalloc(vsp1->dev, sizeof(*lut), GFP_KERNEL); in vsp1_lut_create() 203 if (lut == NULL) in vsp1_lut_create() 222 if (!lut->pool) in vsp1_lut_create() 229 lut->entity.subdev.ctrl_handler = &lut->ctrls; in vsp1_lut_create() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/platform/vsp1/ |
H A D | vsp1_lut.c | 53 spin_lock_irq(&lut->lock); in lut_set_table() 54 swap(lut->lut, dlb); in lut_set_table() 63 struct vsp1_lut *lut = in lut_s_ctrl() local 168 lut_dlb = lut->lut; in lut_configure_frame() 169 lut->lut = NULL; in lut_configure_frame() 199 struct vsp1_lut *lut; in vsp1_lut_create() local 202 lut = devm_kzalloc(vsp1->dev, sizeof(*lut), GFP_KERNEL); in vsp1_lut_create() 203 if (lut == NULL) in vsp1_lut_create() 222 if (!lut->pool) in vsp1_lut_create() 229 lut->entity.subdev.ctrl_handler = &lut->ctrls; in vsp1_lut_create() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/platform/vsp1/ |
H A D | vsp1_lut.c | 53 spin_lock_irq(&lut->lock); in lut_set_table() 54 swap(lut->lut, dlb); in lut_set_table() 63 struct vsp1_lut *lut = in lut_s_ctrl() local 168 lut_dlb = lut->lut; in lut_configure_frame() 169 lut->lut = NULL; in lut_configure_frame() 199 struct vsp1_lut *lut; in vsp1_lut_create() local 202 lut = devm_kzalloc(vsp1->dev, sizeof(*lut), GFP_KERNEL); in vsp1_lut_create() 203 if (lut == NULL) in vsp1_lut_create() 222 if (!lut->pool) in vsp1_lut_create() 229 lut->entity.subdev.ctrl_handler = &lut->ctrls; in vsp1_lut_create() [all …]
|
/dports/math/vtk6/VTK-6.2.0/Filters/Sources/Testing/Tcl/ |
H A D | TestPlatonicSolids.tcl | 66 vtkLookupTable lut 67 lut SetNumberOfColors 20 68 lut Build 69 lut SetTableValue 0 1 0 0 1 70 lut SetTableValue 1 0 1 0 1 71 lut SetTableValue 2 1 1 0 1 72 lut SetTableValue 3 0 0 1 1 73 lut SetTableValue 4 1 0 1 1 90 lut SetTableRange 0 19 91 tetMapper SetLookupTable lut [all …]
|