Project

General

Profile

mycameracurves.sh

Günther R., 11/09/2014 11:11 PM

 
1
#!/bin/sh
2
# to test your new basecurve, copy/paste the following line into your shell.
3
# note that it is a smart idea to backup your database before messing with it on this level.
4
# (you have been warned :) )
5

    
6
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('DSC-RX100M2','','basecurve',2,X'0000000000000000c47f773c16fa043cc4848f3dc8f2bf3d7220dc3d06d22e3ee21f443ebba3ae3e0018843e5abaea3ee95a9c3e4d8a093f9b19a73edbba113f1569e53e2147393fe376023fc828473f923f2d3f9317663f0000803f0000803f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000020000000000000000000000',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
7

    
8

    
9

    
10
# if it pleases you, then in iop/basecurve.c append the following line to the array basecurve_presets and modify its name
11
# {"DSC-RX100M2", "SONY", "DSC-RX100M2", 0, 51200, {{{{0.000000, 0.000000}, {0.015106, 0.008116}, {0.070077, 0.093725}, {0.107484, 0.170723}, {0.191528, 0.341093}, {0.257996, 0.458453}, {0.305381, 0.537267}, {0.326367, 0.569257}, {0.448067, 0.723742}, {0.509627, 0.777966}, {0.676751, 0.898797}, {1.000000, 1.000000}}}, {12}, {m}}, 0, 1},
12

    
13

    
14
#!/bin/sh
15
# to test your new tonecurve, copy/paste the following line into your shell.
16
# note that it is a smart idea to backup your database before messing with it on this level.
17

    
18
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('DSC-RX100M2','','tonecurve',4,X'00000000ff742e3be3f3443a130e113be3f3c43b40366f3bc72da63cf276ec3be3f3443d94ab963c2c56c03df58e1e3dc72d263eb07fdd3d61f1833ee2a3843ee3f3c43e362cef3ea0360c3fc181313f2c56403f0103653f0000803f4f5b7b3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000abaaaa3dabaaaa3dabaa2a3eabaa2a3e0000803e0000803eabaaaa3eabaaaa3e5555d53e5555d53e0000003f0000003f5555153f5555153fabaa2a3fabaa2a3f0000403f0000403f5555553f5555553fabaa6a3fabaa6a3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000abaaaa3dabaaaa3dabaa2a3eabaa2a3e0000803e0000803eabaaaa3eabaaaa3e5555d53e5555d53e0000003f0000003f5555153f5555153fabaa2a3fabaa2a3f0000403f0000403f5555553f5555553fabaa6a3fabaa6a3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000c0000000c000000020000000200000002000000010000000000000000000000',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
19

    
20

    
21

    
22
# if it pleases you, then in iop/tonecurve.c append the following line to the array presets_from_basecurve and modify its name
23
# {"DSC-RX100M2", {{{{0.000000, 0.002662}, {0.000751, 0.002213}, {0.006011, 0.003650}, {0.020286, 0.007216}, {0.048084, 0.018392}, {0.093914, 0.038711}, {0.162284, 0.108154}, {0.257701, 0.259063}, {0.384673, 0.467134}, {0.547709, 0.693386}, {0.751315, 0.894577}, {1.000000, 0.981862}, },{{0.000000, 0.000000}, {0.083333, 0.083333}, {0.166667, 0.166667}, {0.250000, 0.250000}, {0.333333, 0.333333}, {0.416667, 0.416667}, {0.500000, 0.500000}, {0.583333, 0.583333}, {0.666667, 0.666667}, {0.750000, 0.750000}, {0.833333, 0.833333}, {0.916667, 0.916667}, },{{0.000000, 0.000000}, {0.083333, 0.083333}, {0.166667, 0.166667}, {0.250000, 0.250000}, {0.333333, 0.333333}, {0.416667, 0.416667}, {0.500000, 0.500000}, {0.583333, 0.583333}, {0.666667, 0.666667}, {0.750000, 0.750000}, {0.833333, 0.833333}, {0.916667, 0.916667}, },}, {12, 12, 12}, {2, 2, 2}, 0, 0, 0}},
Go to top