Class: LibRaw::OutputParam
- Inherits:
-
Object
- Object
- LibRaw::OutputParam
- Defined in:
- ext/lib_raw/lib_raw.cpp
Instance Attribute Summary collapse
- #adjust_maximum_thr ⇒ Object readonly
- #auto_bright_thr ⇒ Object readonly
- #bright ⇒ Object readonly
- #ca_correc ⇒ Object readonly
- #cablue ⇒ Object readonly
- #cared ⇒ Object readonly
- #cclean ⇒ Object readonly
- #cfa_clean ⇒ Object readonly
- #cfa_green ⇒ Object readonly
- #cfaline ⇒ Object readonly
- #coolscan_nef_gamma ⇒ Object readonly
- #dcb_enhance_fl ⇒ Object readonly
- #dcb_iterations ⇒ Object readonly
- #eeci_refine ⇒ Object readonly
- #es_med_passes ⇒ Object readonly
- #exp_correc ⇒ Object readonly
- #exp_preser ⇒ Object readonly
- #exp_shift ⇒ Object readonly
- #fbdd_noiserd ⇒ Object readonly
- #force_foveon_x3f ⇒ Object readonly
- #four_color_rgb ⇒ Object readonly
- #green_matching ⇒ Object readonly
- #green_thresh ⇒ Object readonly
- #half_size ⇒ Object readonly
- #highlight ⇒ Object readonly
- #lclean ⇒ Object readonly
- #linenoise ⇒ Object readonly
- #med_passes ⇒ Object readonly
- #no_auto_bright ⇒ Object readonly
- #no_auto_scale ⇒ Object readonly
- #no_interpolation ⇒ Object readonly
- #output_bps ⇒ Object readonly
- #output_color ⇒ Object readonly
- #output_tiff ⇒ Object readonly
- #shot_select ⇒ Object readonly
- #sony_arw2_options ⇒ Object readonly
- #sony_arw2_posterization_thr ⇒ Object readonly
- #sraw_ycc ⇒ Object readonly
- #threshold ⇒ Object readonly
- #use_auto_wb ⇒ Object readonly
- #use_camera_matrix ⇒ Object readonly
- #use_camera_wb ⇒ Object readonly
- #use_fuji_rotate ⇒ Object readonly
- #use_rawspeed ⇒ Object readonly
- #user_black ⇒ Object readonly
- #user_flip ⇒ Object readonly
- #user_qual ⇒ Object readonly
- #user_sat ⇒ Object readonly
- #wf_debanding ⇒ Object readonly
- #x3f_flags ⇒ Object readonly
Instance Method Summary collapse
- #bright(val) ⇒ Object readonly
- #cropbox(x, y, w, h) ⇒ Object
- #fbdd_noiserd(val) ⇒ Object readonly
- #gamma(pwr, ts) ⇒ Object
- #greybox(x, y, w, h) ⇒ Object
- #highlight(val) ⇒ Object readonly
-
#initialize ⇒ Object
constructor
LibRaw::OutputParam.
- #use_auto_wb(val) ⇒ Object readonly
- #use_camera_wb(val) ⇒ Object readonly
- #whitebalance(r, g, b, g2) ⇒ Object
Constructor Details
#initialize ⇒ Object
LibRaw::OutputParam
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'ext/lib_raw/lib_raw.cpp', line 385 VALUE rb_output_param_initialize(VALUE self) { OutputParamNativeResource *p = ALLOC(OutputParamNativeResource); memset(&p->params, 0, sizeof(libraw_output_params_t)); double aber[4] = {1,1,1,1}; double gamm[6] = { 0.45,4.5,0,0,0,0 }; unsigned greybox[4] = { 0, 0, UINT_MAX, UINT_MAX }; unsigned cropbox[4] = { 0, 0, UINT_MAX, UINT_MAX }; memmove(&p->params.aber,&aber,sizeof(aber)); memmove(&p->params.gamm,&gamm,sizeof(gamm)); memmove(&p->params.greybox,&greybox,sizeof(greybox)); memmove(&p->params.cropbox,&cropbox,sizeof(cropbox)); p->params.bright=1; p->params.use_camera_matrix=1; p->params.user_flip=-1; p->params.user_black=-1; p->params.user_cblack[0]=p->params.user_cblack[1]=p->params.user_cblack[2]=p->params.user_cblack[3]=-1000001; p->params.user_sat=-1; p->params.user_qual=-1; p->params.output_color=1; p->params.output_bps=8; p->params.use_fuji_rotate=1; p->params.exp_shift = 1.0; p->params.auto_bright_thr = LIBRAW_DEFAULT_AUTO_BRIGHTNESS_THRESHOLD; p->params.adjust_maximum_thr= LIBRAW_DEFAULT_ADJUST_MAXIMUM_THRESHOLD; p->params.use_rawspeed = 1; p->params.no_auto_scale = 0; p->params.no_interpolation = 0; p->params.sraw_ycc = 0; p->params.force_foveon_x3f = 0; p->params.x3f_flags = LIBRAW_DP2Q_INTERPOLATERG|LIBRAW_DP2Q_INTERPOLATEAF; p->params. = 0; p->params.sony_arw2_posterization_thr = 0; p->params.green_matching = 0; p->params.coolscan_nef_gamma = 1.0f; VALUE resource = Data_Wrap_Struct(CLASS_OF(self), 0, output_param_native_resource_delete, p); rb_iv_set(self, "output_param_native_resource", resource); apply_output_param(self, &p->params); return self; } |
Instance Attribute Details
#adjust_maximum_thr ⇒ Object (readonly)
#auto_bright_thr ⇒ Object (readonly)
#bright ⇒ Object (readonly)
#ca_correc ⇒ Object (readonly)
#cablue ⇒ Object (readonly)
#cared ⇒ Object (readonly)
#cclean ⇒ Object (readonly)
#cfa_clean ⇒ Object (readonly)
#cfa_green ⇒ Object (readonly)
#cfaline ⇒ Object (readonly)
#coolscan_nef_gamma ⇒ Object (readonly)
#dcb_enhance_fl ⇒ Object (readonly)
#dcb_iterations ⇒ Object (readonly)
#eeci_refine ⇒ Object (readonly)
#es_med_passes ⇒ Object (readonly)
#exp_correc ⇒ Object (readonly)
#exp_preser ⇒ Object (readonly)
#exp_shift ⇒ Object (readonly)
#fbdd_noiserd ⇒ Object (readonly)
#force_foveon_x3f ⇒ Object (readonly)
#four_color_rgb ⇒ Object (readonly)
#green_matching ⇒ Object (readonly)
#green_thresh ⇒ Object (readonly)
#half_size ⇒ Object (readonly)
#highlight ⇒ Object (readonly)
#lclean ⇒ Object (readonly)
#linenoise ⇒ Object (readonly)
#med_passes ⇒ Object (readonly)
#no_auto_bright ⇒ Object (readonly)
#no_auto_scale ⇒ Object (readonly)
#no_interpolation ⇒ Object (readonly)
#output_bps ⇒ Object (readonly)
#output_color ⇒ Object (readonly)
#output_tiff ⇒ Object (readonly)
#shot_select ⇒ Object (readonly)
#sony_arw2_options ⇒ Object (readonly)
#sony_arw2_posterization_thr ⇒ Object (readonly)
#sraw_ycc ⇒ Object (readonly)
#threshold ⇒ Object (readonly)
#use_auto_wb ⇒ Object (readonly)
#use_camera_matrix ⇒ Object (readonly)
#use_camera_wb ⇒ Object (readonly)
#use_fuji_rotate ⇒ Object (readonly)
#use_rawspeed ⇒ Object (readonly)
#user_black ⇒ Object (readonly)
#user_flip ⇒ Object (readonly)
#user_qual ⇒ Object (readonly)
#user_sat ⇒ Object (readonly)
#wf_debanding ⇒ Object (readonly)
#x3f_flags ⇒ Object (readonly)
Instance Method Details
#bright=(val) ⇒ Object (readonly)
578 579 580 581 582 583 584 585 586 587 |
# File 'ext/lib_raw/lib_raw.cpp', line 578 VALUE rb_output_param_set_bright(VALUE self, VALUE val) { libraw_output_params_t *params = get_output_params(self); params->bright = RFLOAT_VALUE(rb_Float(val)); apply_output_param(self, params); return self; } |
#cropbox(x, y, w, h) ⇒ Object
538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'ext/lib_raw/lib_raw.cpp', line 538 VALUE rb_output_param_cropbox(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h) { libraw_output_params_t *params = get_output_params(self); params->cropbox[0]= NUM2LONG(x); params->cropbox[1]= NUM2LONG(y); params->cropbox[2]= NUM2LONG(w); params->cropbox[3]= NUM2LONG(h); apply_output_param(self, params); return self; } |
#fbdd_noiserd=(val) ⇒ Object (readonly)
622 623 624 625 626 627 628 629 630 631 |
# File 'ext/lib_raw/lib_raw.cpp', line 622 VALUE rb_output_param_set_fbdd_noiserd(VALUE self, VALUE val) { libraw_output_params_t *params = get_output_params(self); params->fbdd_noiserd = NUM2LONG(val); apply_output_param(self, params); return self; } |
#gamma(pwr, ts) ⇒ Object
552 553 554 555 556 557 558 559 560 561 562 |
# File 'ext/lib_raw/lib_raw.cpp', line 552 VALUE rb_output_param_gamma(VALUE self, VALUE pwr, VALUE ts) { libraw_output_params_t *params = get_output_params(self); params->gamm[0] = RFLOAT_VALUE(rb_Float(pwr)); params->gamm[1] = RFLOAT_VALUE(rb_Float(ts)); apply_output_param(self, params); return self; } |
#greybox(x, y, w, h) ⇒ Object
524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'ext/lib_raw/lib_raw.cpp', line 524 VALUE rb_output_param_greybox(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h) { libraw_output_params_t *params = get_output_params(self); params->greybox[0] = NUM2LONG(x); params->greybox[1] = NUM2LONG(y); params->greybox[2] = NUM2LONG(w); params->greybox[3] = NUM2LONG(h); apply_output_param(self, params); return self; } |
#highlight=(val) ⇒ Object (readonly)
589 590 591 592 593 594 595 596 597 598 |
# File 'ext/lib_raw/lib_raw.cpp', line 589 VALUE rb_output_param_set_highlight(VALUE self, VALUE val) { libraw_output_params_t *params = get_output_params(self); params->highlight = NUM2LONG(val); apply_output_param(self, params); return self; } |
#use_auto_wb=(val) ⇒ Object (readonly)
600 601 602 603 604 605 606 607 608 609 |
# File 'ext/lib_raw/lib_raw.cpp', line 600 VALUE rb_output_param_set_use_auto_wb(VALUE self, VALUE val) { libraw_output_params_t *params = get_output_params(self); params->use_auto_wb = !(val==Qnil || val==Qfalse); apply_output_param(self, params); return self; } |
#use_camera_wb=(val) ⇒ Object (readonly)
611 612 613 614 615 616 617 618 619 620 |
# File 'ext/lib_raw/lib_raw.cpp', line 611 VALUE rb_output_param_set_use_camera_wb(VALUE self, VALUE val) { libraw_output_params_t *params = get_output_params(self); params->use_camera_wb = !(val==Qnil || val==Qfalse); apply_output_param(self, params); return self; } |
#whitebalance(r, g, b, g2) ⇒ Object
564 565 566 567 568 569 570 571 572 573 574 575 576 |
# File 'ext/lib_raw/lib_raw.cpp', line 564 VALUE rb_output_param_whitebalance(VALUE self, VALUE r, VALUE g, VALUE b, VALUE g2) { libraw_output_params_t *params = get_output_params(self); params->user_mul[0] = RFLOAT_VALUE(rb_Float(r)); params->user_mul[1] = RFLOAT_VALUE(rb_Float(g)); params->user_mul[2] = RFLOAT_VALUE(rb_Float(b)); params->user_mul[3] = RFLOAT_VALUE(rb_Float(g2)); apply_output_param(self, params); return self; } |