from yuvtools.bdrate import *


# use 4 QPs
# set1 = [(rate1, psnr1), (rate2, psnr2), (rate3, psnr3), (rate4, psnr4)]
set1 = [(252, 31.087504953496655), (329, 33.164891041496794), (424, 35.45001800511794), (561, 37.741308089094964)]
set2 = [(251, 31.092380475841495), (326, 32.859282956658376), (459, 35.51992100116304), (599, 37.57734516548308)]

bdrate = bdrate2(set1, set2)
print(bdrate)


from yuvtools.bdrate import *


# use 4 QPs
# set1 = [(rate1, psnr1), (rate2, psnr2), (rate3, psnr3), (rate4, psnr4)]
set1 = [(252, 31.087504953496655), (329, 33.164891041496794), (424, 35.45001800511794), (561, 37.741308089094964)]
set2 = [(251, 31.092380475841495), (326, 32.859282956658376), (459, 35.51992100116304), (599, 37.57734516548308)]

bdrate = bdrate2(set1, set2)
print(bdrate)


# use 4 QPs # set1 = [(rate1, psnr1), (rate2, psnr2), (rate3, psnr3), (rate4, psnr4)]