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
- #black=(val) ⇒ Object
- #bright(val) ⇒ Object readonly
- #cropbox(x, y, w, h) ⇒ Object
- #fbdd_noiserd(val) ⇒ Object readonly
- #flip=(val) ⇒ Object
- #four_color_rgb(val) ⇒ Object readonly
- #gamma(pwr, ts) ⇒ Object
- #greybox(x, y, w, h) ⇒ Object
- #half_size(val) ⇒ Object readonly
- #highlight(val) ⇒ Object readonly
-
#initialize ⇒ Object
constructor
LibRaw::OutputParam.
- #median_filter_passes=(val) ⇒ Object
- #no_auto_bright(val) ⇒ Object readonly
- #output_bps(val) ⇒ Object readonly
- #output_color(val) ⇒ Object readonly
- #output_tiff(val) ⇒ Object readonly
- #quality=(val) ⇒ Object
- #saturation=(val) ⇒ Object
- #threshold(val) ⇒ Object readonly
- #use_auto_wb(val) ⇒ Object readonly
- #use_camera_matrix(val) ⇒ Object readonly
- #use_camera_wb(val) ⇒ Object readonly
- #use_fuji_rotate(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.sony_arw2_options = 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
#black=(val) ⇒ Object
721 722 723 724 725 726 727 728 729 730 |
# File 'ext/lib_raw/lib_raw.cpp', line 721
VALUE rb_output_param_set_black(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->user_black = NUM2LONG(val);
apply_output_param(self, params);
return self;
}
|
#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)
776 777 778 779 780 781 782 783 784 785 |
# File 'ext/lib_raw/lib_raw.cpp', line 776
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;
}
|
#flip=(val) ⇒ Object
699 700 701 702 703 704 705 706 707 708 |
# File 'ext/lib_raw/lib_raw.cpp', line 699
VALUE rb_output_param_set_flip(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->user_flip = NUM2LONG(val);
apply_output_param(self, params);
return self;
}
|
#four_color_rgb=(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_four_color_rgb(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->four_color_rgb = !(val==Qnil || val==Qfalse);
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;
}
|
#half_size=(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_half_size(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->half_size = !(val==Qnil || val==Qfalse);
apply_output_param(self, params);
return self;
}
|
#highlight=(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_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;
}
|
#median_filter_passes=(val) ⇒ Object
743 744 745 746 747 748 749 750 751 752 |
# File 'ext/lib_raw/lib_raw.cpp', line 743
VALUE rb_output_param_set_median_filter_passes(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->user_sat = NUM2LONG(val);
apply_output_param(self, params);
return self;
}
|
#no_auto_bright=(val) ⇒ Object (readonly)
754 755 756 757 758 759 760 761 762 763 |
# File 'ext/lib_raw/lib_raw.cpp', line 754
VALUE rb_output_param_set_no_auto_bright(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->no_auto_bright = !(val==Qnil || val==Qfalse);
apply_output_param(self, params);
return self;
}
|
#output_bps=(val) ⇒ Object (readonly)
677 678 679 680 681 682 683 684 685 686 |
# File 'ext/lib_raw/lib_raw.cpp', line 677
VALUE rb_output_param_set_output_bps(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->output_bps = NUM2LONG(val)==16 ? 16 : 8;
apply_output_param(self, params);
return self;
}
|
#output_color=(val) ⇒ Object (readonly)
666 667 668 669 670 671 672 673 674 675 |
# File 'ext/lib_raw/lib_raw.cpp', line 666
VALUE rb_output_param_set_output_color(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->output_color = NUM2LONG(val);
apply_output_param(self, params);
return self;
}
|
#output_tiff=(val) ⇒ Object (readonly)
688 689 690 691 692 693 694 695 696 697 |
# File 'ext/lib_raw/lib_raw.cpp', line 688
VALUE rb_output_param_set_output_tiff(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->output_tiff = !(val==Qnil || val==Qfalse);
apply_output_param(self, params);
return self;
}
|
#quality=(val) ⇒ Object
710 711 712 713 714 715 716 717 718 719 |
# File 'ext/lib_raw/lib_raw.cpp', line 710
VALUE rb_output_param_set_quality(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->user_qual = NUM2LONG(val);
apply_output_param(self, params);
return self;
}
|
#saturation=(val) ⇒ Object
732 733 734 735 736 737 738 739 740 741 |
# File 'ext/lib_raw/lib_raw.cpp', line 732
VALUE rb_output_param_set_saturation(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->user_sat = NUM2LONG(val);
apply_output_param(self, params);
return self;
}
|
#threshold=(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_threshold(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->threshold = RFLOAT_VALUE(rb_Float(val));
apply_output_param(self, params);
return self;
}
|
#use_auto_wb=(val) ⇒ Object (readonly)
633 634 635 636 637 638 639 640 641 642 |
# File 'ext/lib_raw/lib_raw.cpp', line 633
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_matrix=(val) ⇒ Object (readonly)
655 656 657 658 659 660 661 662 663 664 |
# File 'ext/lib_raw/lib_raw.cpp', line 655
VALUE rb_output_param_set_use_camera_matrix(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->use_camera_matrix = !(val==Qnil || val==Qfalse);
apply_output_param(self, params);
return self;
}
|
#use_camera_wb=(val) ⇒ Object (readonly)
644 645 646 647 648 649 650 651 652 653 |
# File 'ext/lib_raw/lib_raw.cpp', line 644
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;
}
|
#use_fuji_rotate=(val) ⇒ Object (readonly)
765 766 767 768 769 770 771 772 773 774 |
# File 'ext/lib_raw/lib_raw.cpp', line 765
VALUE rb_output_param_set_use_fuji_rotate(VALUE self, VALUE val)
{
libraw_output_params_t *params = get_output_params(self);
params->use_fuji_rotate = !(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;
}
|