Hi Dragan,
Question 1:
The scale for rgb2rgb is = 2, it means that the coeficient will be = 2 (as in manual formula: coeficient=2^(scale-1))
The final value will be: 0x80*2/256 = 1
Question 2:
The offset format is: sxxxxxxxxxx.xx -> where s = signal and x = binary number
on code, A = 0x0200 = 0000 0010 0000 0000
applying the format: 000s00 (10000000).00
The number between () will be 0x80 = 128d
Rgds
Rogerio