slicetype: make b-adapt 0 set lastNonB, leadingBframes, and bLastMiniGopBFrame
collect global stats of psnr and ssim
api: use uint64_t to accumulate bits