#!/bin/sh # to test your new basecurve, copy/paste the following line into your shell. # note that it is a smart idea to backup your database before messing with it on this level. # (you have been warned :) ) echo "INSERT INTO presets (name,description,operation,op_version,op_params,enabled,blendop_params,blendop_version,multi_priority,multi_name,model,maker,lens,iso_min,iso_max,exposure_min,exposure_max,aperture_min,aperture_max,focal_length_min,focal_length_max,writeprotect,autoapply,filter,def,format) VALUES('DMC-GH4','','basecurve',2,X'0000000000000000d716383a000000005bd1bc3cc78cad3c7e7c093df005363d26436b3d531ce23d365c0b3ed65aa53e3eb1713e8c65043fdda5083f24b54b3fa9134e3f8b156e3f0000803f0000803f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000020000000000000000000000',1,X'00000000180000000000C842000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F',7,0,'','%','%','%',0.0,51200.0,0.0,10000000.0,0.0,100000000.0,0.0,1000.0,0,0,0,0,2);" | sqlite3 ~/.config/darktable/library.db # if it pleases you, then in iop/basecurve.c append the following line to the array basecurve_presets and modify its name # {"DMC-GH4", "Panasonic", "DMC-GH4", 0, 51200, {{{{0.000000, 0.000000}, {0.000702, 0.000000}, {0.023049, 0.021185}, {0.033566, 0.044439}, {0.057437, 0.110406}, {0.136094, 0.322959}, {0.236028, 0.517174}, {0.533781, 0.795733}, {0.804987, 0.930016}, {1.000000, 1.000000}}}, {10}, {m}}, 0, 1}, #!/bin/sh # to test your new tonecurve, copy/paste the following line into your shell. # note that it is a smart idea to backup your database before messing with it on this level. echo "INSERT INTO presets (name,description,operation,op_version,op_params,enabled,blendop_params,blendop_version,multi_priority,multi_name,model,maker,lens,iso_min,iso_max,exposure_min,exposure_max,aperture_min,aperture_max,focal_length_min,focal_length_max,writeprotect,autoapply,filter,def,format) VALUES('DMC-GH4','','tonecurve',4,X'000000000000000033a4e63c0000000034bbfa3d24109c3d14a21e3e76300f3e470ba33ee728ea3ea287cb3e03bb153f71a9063fbee83d3f84642e3f9eb75b3fedd5503f0fb36c3f0000803f0000803f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdcccc3dcdcccc3dcdcc4c3ecdcc4c3e9a99993e9a99993ecdcccc3ecdcccc3e0000003f0000003f9a99193f9a99193f3333333f3333333fcdcc4c3fcdcc4c3f6666663f6666663f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdcccc3dcdcccc3dcdcc4c3ecdcc4c3e9a99993e9a99993ecdcccc3ecdcccc3e0000003f0000003f9a99193f9a99193f3333333f3333333fcdcc4c3fcdcc4c3f6666663f6666663f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000a0000000a000000020000000200000002000000010000000000000000000000',1,X'00000000180000000000C842000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F',7,0,'','%','%','%',0.0,51200.0,0.0,10000000.0,0.0,100000000.0,0.0,1000.0,0,0,0,0,2);" | sqlite3 ~/.config/darktable/library.db # if it pleases you, then in iop/tonecurve.c append the following line to the array presets_from_basecurve and modify its name # {"DMC-GH4", {{{{0.000000, 0.000000}, {0.028154, 0.000000}, {0.122427, 0.076203}, {0.154915, 0.139833}, {0.318445, 0.457343}, {0.397519, 0.584885}, {0.526023, 0.741833}, {0.681221, 0.858271}, {0.815764, 0.924607}, {1.000000, 1.000000}, },{{0.000000, 0.000000}, {0.100000, 0.100000}, {0.200000, 0.200000}, {0.300000, 0.300000}, {0.400000, 0.400000}, {0.500000, 0.500000}, {0.600000, 0.600000}, {0.700000, 0.700000}, {0.800000, 0.800000}, {0.900000, 0.900000}, },{{0.000000, 0.000000}, {0.100000, 0.100000}, {0.200000, 0.200000}, {0.300000, 0.300000}, {0.400000, 0.400000}, {0.500000, 0.500000}, {0.600000, 0.600000}, {0.700000, 0.700000}, {0.800000, 0.800000}, {0.900000, 0.900000}, },}, {10, 10, 10}, {2, 2, 2}, 0, 0, 0}},